Set corner radius to 0 for notification elements (#5872)
This commit is contained in:
@@ -51,7 +51,7 @@ Item {
|
|||||||
readonly property color colBorder: Qt.rgba(Color.foreground.r, Color.foreground.g, Color.foreground.b, 0.18)
|
readonly property color colBorder: Qt.rgba(Color.foreground.r, Color.foreground.g, Color.foreground.b, 0.18)
|
||||||
readonly property color colSurface: Qt.rgba(Color.foreground.r, Color.foreground.g, Color.foreground.b, 0.06)
|
readonly property color colSurface: Qt.rgba(Color.foreground.r, Color.foreground.g, Color.foreground.b, 0.06)
|
||||||
readonly property color colAccent: Color.accent
|
readonly property color colAccent: Color.accent
|
||||||
readonly property int cardRadius: notificationService ? notificationService.cornerRadius : 10
|
readonly property int cardRadius: notificationService ? notificationService.cornerRadius : 0
|
||||||
|
|
||||||
implicitWidth: button.implicitWidth
|
implicitWidth: button.implicitWidth
|
||||||
implicitHeight: button.implicitHeight
|
implicitHeight: button.implicitHeight
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ Item {
|
|||||||
|
|
||||||
// Corner radius is shared with omarchy-shell menu and settings panel —
|
// Corner radius is shared with omarchy-shell menu and settings panel —
|
||||||
// `omarchy style corners <sharp|round>` writes this file once and every
|
// `omarchy style corners <sharp|round>` writes this file once and every
|
||||||
// surface reads it. Default 10 keeps the popup looking like it did pre-toggle.
|
// surface reads it. Default 0 for sharp corners.
|
||||||
property int cornerRadius: 10
|
property int cornerRadius: 0
|
||||||
|
|
||||||
// Surfaces anchor relative to the omarchy bar so popups and history land
|
// Surfaces anchor relative to the omarchy bar so popups and history land
|
||||||
// alongside the other shell panels rather than on top of the bar itself.
|
// alongside the other shell panels rather than on top of the bar itself.
|
||||||
@@ -53,9 +53,9 @@ Item {
|
|||||||
try {
|
try {
|
||||||
var parsed = JSON.parse(raw || "{}")
|
var parsed = JSON.parse(raw || "{}")
|
||||||
var n = Number(parsed.radius)
|
var n = Number(parsed.radius)
|
||||||
cornerRadius = isFinite(n) && n >= 0 ? n : 10
|
cornerRadius = isFinite(n) && n >= 0 ? n : 0
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
cornerRadius = 10
|
cornerRadius = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ Rectangle {
|
|||||||
// NotificationUrgency: Low=0, Normal=1, Critical=2 (upstream).
|
// NotificationUrgency: Low=0, Normal=1, Critical=2 (upstream).
|
||||||
property int urgency: 1
|
property int urgency: 1
|
||||||
property double timestamp: 0
|
property double timestamp: 0
|
||||||
property int cornerRadius: 10
|
property int cornerRadius: 0
|
||||||
|
|
||||||
property real progress: 1.0
|
property real progress: 1.0
|
||||||
property bool showProgress: false
|
property bool showProgress: false
|
||||||
|
|||||||
Reference in New Issue
Block a user