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
@@ -50,7 +50,7 @@ NPanel {
NIconButton {
icon: "close"
tooltipText: "Close"
sizeMultiplier: 0.8
sizeRatio: 0.8
onClicked: root.close()
}
}
+1 -1
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
+1 -1
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
+1 -1
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
+1 -1
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() {
@@ -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
+1 -1
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
+1 -1
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")
+2 -2
View File
@@ -45,7 +45,7 @@ NPanel {
NIconButton {
icon: BluetoothService.adapter && BluetoothService.adapter.discovering ? "stop_circle" : "refresh"
tooltipText: "Refresh Devices"
sizeMultiplier: 0.8
sizeRatio: 0.8
onClicked: {
if (BluetoothService.adapter) {
BluetoothService.adapter.discovering = !BluetoothService.adapter.discovering
@@ -56,7 +56,7 @@ NPanel {
NIconButton {
icon: "close"
tooltipText: "Close"
sizeMultiplier: 0.8
sizeRatio: 0.8
onClicked: {
root.close()
}
+1 -1
View File
@@ -211,7 +211,7 @@ Variants {
NIconButton {
icon: "close"
tooltipText: "Close"
sizeMultiplier: 0.8
sizeRatio: 0.8
anchors.top: parent.top
anchors.right: parent.right
anchors.margins: Style.marginS * scaling
@@ -46,14 +46,14 @@ NPanel {
NIconButton {
icon: "delete"
tooltipText: "Clear History"
sizeMultiplier: 0.8
sizeRatio: 0.8
onClicked: NotificationService.clearHistory()
}
NIconButton {
icon: "close"
tooltipText: "Close"
sizeMultiplier: 0.8
sizeRatio: 0.8
onClicked: {
root.close()
}
@@ -159,7 +159,7 @@ NPanel {
NIconButton {
icon: "delete"
tooltipText: "Delete Notification"
sizeMultiplier: 0.7
sizeRatio: 0.7
onClicked: {
Logger.log("NotificationHistory", "Removing notification:", summary)
+2 -2
View File
@@ -52,7 +52,7 @@ NPanel {
NIconButton {
icon: "refresh"
tooltipText: "Refresh Networks"
sizeMultiplier: 0.8
sizeRatio: 0.8
enabled: Settings.data.network.wifiEnabled && !NetworkService.isLoading
onClicked: {
NetworkService.refreshNetworks()
@@ -62,7 +62,7 @@ NPanel {
NIconButton {
icon: "close"
tooltipText: "Close"
sizeMultiplier: 0.8
sizeRatio: 0.8
onClicked: {
root.close()
}