make osdvalueindicator more customizable (internally)

This commit is contained in:
end-4
2025-05-18 00:50:25 +02:00
parent b9fe3da1e3
commit 9385961fb8
2 changed files with 3 additions and 1 deletions
@@ -106,6 +106,7 @@ Scope {
value: root.brightnessMonitor.brightness
icon: "light_mode"
rotateIcon: true
scaleIcon: true
name: qsTr("Brightness")
}
}
@@ -14,6 +14,7 @@ Item {
required property string icon
required property string name
property bool rotateIcon: false
property bool scaleIcon: false
property real valueIndicatorVerticalPadding: 9
property real valueIndicatorLeftPadding: 10
@@ -47,7 +48,7 @@ Item {
renderType: Text.QtRendering
text: root.icon
iconSize: 20 + 10 * (root.rotateIcon ? value : 1)
iconSize: 20 + 10 * (root.scaleIcon ? value : 1)
rotation: 180 * (root.rotateIcon ? value : 0)
Behavior on iconSize {