default indicator:use colorizer manager colors

pull/22/head
Michail Vourlakos 4 years ago
parent 36f6f73baa
commit 783ff0368c

@ -29,12 +29,12 @@ LatteComponents.IndicatorItem{
readonly property int thicknessMargin: screenEdgeMargin + thickLocalMargin + (glowEnabled ? 1 : 0) readonly property int thicknessMargin: screenEdgeMargin + thickLocalMargin + (glowEnabled ? 1 : 0)
property real textColorBrightness: colorBrightness(theme.textColor) property real textColorBrightness: colorBrightness(indicator.palette.textColor)
property color isActiveColor: theme.buttonFocusColor property color isActiveColor: indicator.palette.buttonFocusColor
property color minimizedColor: { property color minimizedColor: {
if (minimizedTaskColoredDifferently) { if (minimizedTaskColoredDifferently) {
return (textColorBrightness > 127.5 ? Qt.darker(theme.textColor, 1.7) : Qt.lighter(theme.textColor, 7)); return (textColorBrightness > 127.5 ? Qt.darker(indicator.palette.textColor, 1.7) : Qt.lighter(indicator.palette.textColor, 7));
} }
return isActiveColor; return isActiveColor;
@ -104,7 +104,7 @@ LatteComponents.IndicatorItem{
location: plasmoid.location location: plasmoid.location
glowOpacity: root.glowOpacity glowOpacity: root.glowOpacity
contrastColor: indicator.shadowColor contrastColor: indicator.shadowColor
attentionColor: theme.negativeTextColor attentionColor: indicator.palette.negativeTextColor
roundCorners: true roundCorners: true
showAttention: indicator.inAttention showAttention: indicator.inAttention

Loading…
Cancel
Save