Use Header colors in PlasmoidHeading headers

This brings applets with distinct heading areas into visual consistency
with windows, once the Tools Area MR lands.

When using a color scheme that lacks Header colors, there is no visual
change whatsoever.
This commit is contained in:
Nate Graham 2020-09-25 10:43:31 -06:00
parent f47f98da0b
commit b40a1fbdf0

View File

@ -55,6 +55,10 @@ import QtQuick.Templates 2.12 as T
visible: fromCurrentTheme
imagePath: "widgets/plasmoidheading"
prefix: location == PlasmoidHeading.Location.Header? 'header' : 'footer'
colorGroup: location == PlasmoidHeading.Location.Header ? PlasmaCore.Theme.HeaderColorGroup : PlasmaCore.Theme.WindowColorGroup
PlasmaCore.ColorScope.inherit: false
enabledBorders: {
var borders = 0
borders |= PlasmaCore.FrameSvg.LeftBorder