mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
widgets/coloredicon: move to colorization, looks worse but..., yea
This commit is contained in:
parent
12e197aefd
commit
5906ec575a
1 changed files with 8 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
pragma ComponentBehavior: Bound
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Qt5Compat.GraphicalEffects
|
import QtQuick.Effects
|
||||||
import Quickshell.Widgets
|
import Quickshell.Widgets
|
||||||
import ".."
|
import ".."
|
||||||
|
|
||||||
|
|
@ -15,11 +15,13 @@ Item {
|
||||||
implicitWidth: implicitSize
|
implicitWidth: implicitSize
|
||||||
implicitHeight: implicitSize
|
implicitHeight: implicitSize
|
||||||
|
|
||||||
layer.enabled: true
|
IconImage {
|
||||||
layer.effect: OpacityMask {
|
anchors.fill: parent
|
||||||
maskSource: IconImage {
|
source: root.source
|
||||||
implicitSize: root.actualSize
|
layer.enabled: true
|
||||||
source: root.source
|
layer.effect: MultiEffect {
|
||||||
|
colorization: 1
|
||||||
|
colorizationColor: root.color
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue