Commit 4d32efa4 authored by Nate Graham's avatar Nate Graham 🔩

[applets/notifications] Use Header colors for notifications, if available

This brings the PlasmoidHeading used in the notification item into
visual consistency with other PlasmoidHeadings, once we merge
frameworks/plasma-framework!98.

When using a color scheme that lacks Header colors, there is no visual
change whatsoever.
parent 020c4da7
......@@ -119,6 +119,9 @@ ColumnLayout {
Layout.preferredWidth: notificationHeading.implicitWidth
Layout.bottomMargin: -parent.spacing
PlasmaCore.ColorScope.colorGroup: PlasmaCore.Theme.HeaderColorGroup
PlasmaCore.ColorScope.inherit: false
PlasmaCore.FrameSvgItem {
imagePath: "widgets/plasmoidheading"
prefix: "header"
......@@ -128,6 +131,8 @@ ColumnLayout {
rightMargin: -margins.right
}
visible: !notificationItem.inHistory && fromCurrentTheme
colorGroup: parent.PlasmaCore.ColorScope.colorGroup
PlasmaCore.ColorScope.inherit: false
}
NotificationHeader {
......@@ -138,6 +143,9 @@ ColumnLayout {
rightMargin: notificationItem.headingRightPadding
}
PlasmaCore.ColorScope.colorGroup: parent.PlasmaCore.ColorScope.colorGroup
PlasmaCore.ColorScope.inherit: false
inGroup: notificationItem.inGroup
notificationType: notificationItem.notificationType
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment