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

@ -12,7 +12,7 @@ NIconButton {
property ShellScreen screen
property real scaling: ScalingService.scale(screen)
sizeMultiplier: 0.8
sizeRatio: 0.8
colorBg: Color.mSurfaceVariant
colorFg: Color.mOnSurface
colorBorder: Color.transparent

View file

@ -14,7 +14,7 @@ NIconButton {
property real scaling: ScalingService.scale(screen)
visible: Settings.data.network.bluetoothEnabled
sizeMultiplier: 0.8
sizeRatio: 0.8
colorBg: Color.mSurfaceVariant
colorFg: Color.mOnSurface
colorBorder: Color.transparent

View file

@ -13,7 +13,7 @@ NIconButton {
property ShellScreen screen
property real scaling: ScalingService.scale(screen)
sizeMultiplier: 0.8
sizeRatio: 0.8
icon: "notifications"
tooltipText: "Notification History"
colorBg: Color.mSurfaceVariant

View file

@ -14,7 +14,7 @@ NIconButton {
property var powerProfiles: PowerProfiles
readonly property bool hasPP: powerProfiles.hasPerformanceProfile
sizeMultiplier: 0.8
sizeRatio: 0.8
visible: hasPP
function profileIcon() {

View file

@ -13,7 +13,7 @@ NIconButton {
visible: ScreenRecorderService.isRecording
icon: "videocam"
tooltipText: "Screen Recording Active\nClick To Stop Recording"
sizeMultiplier: 0.8
sizeRatio: 0.8
colorBg: Color.mPrimary
colorFg: Color.mOnPrimary
anchors.verticalCenter: parent.verticalCenter

View file

@ -11,7 +11,7 @@ NIconButton {
icon: "widgets"
tooltipText: "Open Side Panel"
sizeMultiplier: 0.8
sizeRatio: 0.8
colorBg: Color.mSurfaceVariant
colorFg: Color.mOnSurface

View file

@ -15,7 +15,7 @@ NIconButton {
visible: Settings.data.network.wifiEnabled
sizeMultiplier: 0.8
sizeRatio: 0.8
Component.onCompleted: {
Logger.log("WiFi", "Widget component completed")