find a way to apply LatteSideColoring for Tasks

pull/7/head
Michail Vourlakos 6 years ago
parent ef08dbff96
commit 780d807cc8

@ -114,6 +114,10 @@
<label>Delay in order to show previews or highlight windows. Values lower than 150ms are ignored because previews do not work correctly</label>
<default>600</default>
</entry>
<entry name="forceMonochromaticIcons" type="Bool">
<default>false</default>
<label>When "true" Latte color palette is used in order to provide monochromatic icons at all times. It is not needed in general and can be used only with specific icon themes</label>
</entry>
</group>
</kcfg>

@ -200,6 +200,19 @@ Item{
return Math.max(basicScalingWidth, basicScalingHeight)
}
//! Latte Side Painting-style if the user chose it
Loader{
anchors.fill: iconImageBuffer
active: plasmoid.configuration.forceMonochromaticIcons
sourceComponent: ColorOverlay {
anchors.fill: parent
color: latteBridge ? latteBridge.palette.textColor : "transparent"
source: iconImageBuffer
}
}
//! Latte Side Painting-style if the user chose it
///states for launcher animation
states: [
State{
@ -310,6 +323,17 @@ Item{
width: iconImageBuffer.width
height: iconImageBuffer.height
source: iconImageBuffer.source
Loader{
anchors.fill: parent
active: plasmoid.configuration.forceMonochromaticIcons
sourceComponent: ColorOverlay {
anchors.fill: parent
color: latteBridge ? latteBridge.palette.textColor : "transparent"
source: iconImageBuffer
}
}
}
}
property var mask: ShaderEffectSource {

Loading…
Cancel
Save