Commit 2cccf230 authored by Marco Martin's avatar Marco Martin
Browse files

show the header if both this and dialog background fallback

to be correctly disaplayed the header needs to come from te same theme
as the dialog background.
but if both the header and background do fallback, it is safe to use it
parent 33954af4
Pipeline #143374 passed with stage
in 1 minute and 49 seconds
......@@ -63,9 +63,16 @@ T.ToolBar {
background: PlasmaCore.FrameSvgItem {
id: headingSvg
visible: fromCurrentTheme
// This graphics has to back with the dialog background, so it can be used if:
// * both this and the dialog background are from the current theme
// * both this and the dialog background are from fallback
visible: fromCurrentTheme === backgroundSvg.fromCurrentTheme
imagePath: "widgets/plasmoidheading"
prefix: position === T.ToolBar.Header ? "header" : "footer"
PlasmaCore.Svg {
id: backgroundSvg
imagePath: "dialogs/background"
}
colorGroup: control.PlasmaCore.ColorScope.colorGroup
PlasmaCore.ColorScope.inherit: false
......
Supports Markdown
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