28 lines
661 B
QML
28 lines
661 B
QML
import Quickshell
|
|
import Quickshell.Widgets
|
|
import QtQuick
|
|
import QtQuick.Effects
|
|
import qs
|
|
import qs.settings
|
|
|
|
|
|
Image {
|
|
id: root
|
|
required property string iconName
|
|
source: Quickshell.iconPath(iconName)
|
|
width: Config.cfg.appearance.iconSize
|
|
height: Config.cfg.appearance.iconSize
|
|
sourceSize.width: Config.cfg.appearance.iconSize
|
|
sourceSize.height: Config.cfg.appearance.iconSize
|
|
fillMode: Image.PreserveAspectFit
|
|
smooth: true
|
|
mipmap: true
|
|
|
|
layer.enabled: true
|
|
layer.smooth: true
|
|
layer.effect: MultiEffect {
|
|
colorization: 1.0
|
|
colorizationColor: Colors.c.base05
|
|
brightness: 1.0
|
|
}
|
|
}
|