Use accent border for popup surfaces
This commit is contained in:
@@ -73,7 +73,7 @@ base-size = 12
|
|||||||
# Shared by every bar flyout. Body text inside flyouts is not separately
|
# Shared by every bar flyout. Body text inside flyouts is not separately
|
||||||
# themable — it follows [bar].text.
|
# themable — it follows [bar].text.
|
||||||
background = "{{ background }}"
|
background = "{{ background }}"
|
||||||
border = "{{ foreground }}"
|
border = "{{ accent }}"
|
||||||
|
|
||||||
[notifications]
|
[notifications]
|
||||||
background = "{{ background }}"
|
background = "{{ background }}"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ QtObject {
|
|||||||
}
|
}
|
||||||
readonly property QtObject popups: QtObject {
|
readonly property QtObject popups: QtObject {
|
||||||
property color background: root.pick("popups.background", root.background)
|
property color background: root.pick("popups.background", root.background)
|
||||||
property color border: root.pick("popups.border", root.foreground)
|
property color border: root.pick("popups.border", root.pick("notifications.border", root.accent))
|
||||||
}
|
}
|
||||||
readonly property QtObject notifications: QtObject {
|
readonly property QtObject notifications: QtObject {
|
||||||
property color background: root.pick("notifications.background", root.background)
|
property color background: root.pick("notifications.background", root.background)
|
||||||
|
|||||||
@@ -324,7 +324,6 @@ Item {
|
|||||||
triggerMode: "click"
|
triggerMode: "click"
|
||||||
contentWidth: popup.fittedContentWidth(Style.space(480))
|
contentWidth: popup.fittedContentWidth(Style.space(480))
|
||||||
contentHeight: popup.fittedContentHeight(weatherColumn.implicitHeight)
|
contentHeight: popup.fittedContentHeight(weatherColumn.implicitHeight)
|
||||||
borderColor: Color.notifications.border
|
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
id: weatherScroll
|
id: weatherScroll
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ Item {
|
|||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: Style.space(67)
|
anchors.bottomMargin: Style.space(67)
|
||||||
color: Color.alpha(Color.background, 0.97)
|
color: Color.alpha(Color.background, 0.97)
|
||||||
border.color: Color.foreground
|
border.color: Color.popups.border
|
||||||
border.width: Math.max(1, Style.space(2))
|
border.width: Math.max(1, Style.space(2))
|
||||||
radius: Style.cornerRadius
|
radius: Style.cornerRadius
|
||||||
opacity: root.opened ? 1 : 0
|
opacity: root.opened ? 1 : 0
|
||||||
|
|||||||
Reference in New Issue
Block a user