Widgets: renamed SizeMultiplier => SizeRatio. Enforced read-only on size property

This commit is contained in:
LemmyCook 2025-08-25 22:43:02 -04:00
parent 269b2765cd
commit 1ab3463e6d
16 changed files with 27 additions and 23 deletions

View file

@ -8,8 +8,9 @@ Rectangle {
id: root
// Multiplier to control how large the button container is relative to Style.baseWidgetSize
property real sizeMultiplier: 1.0
property real size: Style.baseWidgetSize * sizeMultiplier * scaling
property real sizeRatio: 1.0
readonly property real size: Style.baseWidgetSize * sizeRatio * scaling
property string icon
property string tooltipText
property bool enabled: true
@ -27,6 +28,9 @@ Rectangle {
signal exited
signal clicked
implicitWidth: size
implicitHeight: size