mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59: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
|
||||
|
||||
import QtQuick
|
||||
import Qt5Compat.GraphicalEffects
|
||||
import QtQuick.Effects
|
||||
import Quickshell.Widgets
|
||||
import ".."
|
||||
|
||||
|
|
@ -15,11 +15,13 @@ Item {
|
|||
implicitWidth: implicitSize
|
||||
implicitHeight: implicitSize
|
||||
|
||||
layer.enabled: true
|
||||
layer.effect: OpacityMask {
|
||||
maskSource: IconImage {
|
||||
implicitSize: root.actualSize
|
||||
source: root.source
|
||||
IconImage {
|
||||
anchors.fill: parent
|
||||
source: root.source
|
||||
layer.enabled: true
|
||||
layer.effect: MultiEffect {
|
||||
colorization: 1
|
||||
colorizationColor: root.color
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue