plasmoid:fix monochromized icons implementation

work/spdx
Michail Vourlakos 4 years ago
parent f2e46382c3
commit 117d68749b

@ -106,6 +106,7 @@ Item{
property Item abilities: null
property Item contentItem: null
property Item monochromizedItem: null
readonly property bool isHorizontal: !isVertical
readonly property bool isVertical: plasmoid.formFactor === PlasmaCore.Types.Vertical

@ -190,20 +190,20 @@ Item{
}
}
}
} //_contentItemContainer
//! Latte Side Painting-style if the user chose it
Loader{
anchors.fill: _contentItemContainer
active: abilityItem.isMonochromaticForcedContentItem
//! Latte Side Painting-style if the user chose it
Loader{
anchors.fill: _contentItemContainer
active: abilityItem.isMonochromaticForcedContentItem && abilityItem.monochromizedItem
sourceComponent: ColorOverlay {
anchors.fill: parent
color: latteBridge ? latteBridge.palette.textColor : "transparent"
source: _contentItemContainer.contentItem
}
sourceComponent: ColorOverlay {
anchors.fill: parent
color: latteBridge ? latteBridge.palette.textColor : "transparent"
source: abilityItem.monochromizedItem
}
//! Latte Side Painting-style if the user chose it
} //_contentItemContainer
}
//! Latte Side Painting-style if the user chose it
ShortcutBadge{
id: shortcutBadge

@ -45,6 +45,8 @@ Item {
readonly property real progress: smartLauncherItem && smartLauncherItem.progress ? smartLauncherItem.progress : 0
readonly property QtObject smartLauncherItem: smartLauncherLoader.active ? smartLauncherLoader.item : null
readonly property Item monochromizedItem: badgesLoader.active ? badgesLoader.item : taskIconItem
Rectangle{
id: draggedRectangle
width: parent.width + 2

@ -50,6 +50,7 @@ AbilityItem.BasicItem {
|| (taskItem.containsMouse && inAttentionAnimation && taskItem.parabolicItem.zoom!==taskItem.abilities.parabolic.factor.zoom)
isMonochromaticForcedContentItem: plasmoid.configuration.forceMonochromaticIcons
monochromizedItem: taskIcon.monochromizedItem
isSeparatorHidden: isSeparator && (lastValidIndex > taskItem.abilities.indexer.lastVisibleItemIndex)
isSeparatorInRealLength: isSeparator && root.dragSource

Loading…
Cancel
Save