21 lines
633 B
QML
21 lines
633 B
QML
import Quickshell
|
|
import Quickshell.Widgets
|
|
import QtQuick
|
|
import QtQuick.Effects
|
|
import qs
|
|
import qs.settings
|
|
|
|
IconImage {
|
|
id: root
|
|
required property string iconName
|
|
property bool fill: true
|
|
source: Qt.resolvedUrl(fill ? Quickshell.shellDir + "/assets/phosphor-icons/fill/" + iconName + "-fill.svg" : Quickshell.shellDir + "/assets/phosphor-icons/regular/" + iconName + ".svg")
|
|
width: Config.cfg.appearance.iconSize
|
|
height: Config.cfg.appearance.iconSize
|
|
layer.enabled: true
|
|
layer.effect: MultiEffect {
|
|
colorization: 1.0
|
|
colorizationColor: Colors.font
|
|
brightness: 1.0
|
|
}
|
|
}
|