Fixed a bunch of scaling issue in bar NIconButtons

This commit is contained in:
ItsLemmy
2025-10-09 17:31:42 -04:00
parent 075c8f08f6
commit 0989601dbc
14 changed files with 24 additions and 12 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ import qs.Widgets
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
baseSize: Style.capsuleHeight
compact: (Settings.data.bar.density === "compact")
+2 -1
View File
@@ -9,7 +9,8 @@ import qs.Services
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
// Widget properties passed from Bar.qml for per-instance settings
property string widgetId: ""
+1 -1
View File
@@ -12,7 +12,7 @@ Item {
id: root
// Widget properties passed from Bar.qml
property var screen
property ShellScreen screen
property real scaling: 1.0
// Widget properties passed from Bar.qml for per-instance settings
+2 -1
View File
@@ -6,7 +6,8 @@ import qs.Services
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
icon: "dark-mode"
tooltipText: Settings.data.colorSchemes.darkMode ? I18n.tr("tooltips.switch-to-light-mode") : I18n.tr("tooltips.switch-to-dark-mode")
+2 -1
View File
@@ -8,7 +8,8 @@ import qs.Widgets
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
baseSize: Style.capsuleHeight
compact: (Settings.data.bar.density === "compact")
+2 -1
View File
@@ -11,7 +11,8 @@ import qs.Widgets
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
compact: (Settings.data.bar.density === "compact")
baseSize: Style.capsuleHeight
+2 -1
View File
@@ -10,7 +10,8 @@ import qs.Widgets
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
// Widget properties passed from Bar.qml for per-instance settings
property string widgetId: ""
+2 -1
View File
@@ -9,7 +9,8 @@ import qs.Widgets
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
baseSize: Style.capsuleHeight
visible: PowerProfileService.available
+2 -1
View File
@@ -7,7 +7,8 @@ import qs.Widgets
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
icon: "camera-video"
tooltipText: ScreenRecorderService.isRecording ? I18n.tr("tooltips.click-to-stop-recording") : I18n.tr("tooltips.click-to-start-recording")
+1
View File
@@ -8,6 +8,7 @@ import qs.Widgets
NIconButton {
id: root
property ShellScreen screen
property real scaling: 1.0
compact: (Settings.data.bar.density === "compact")
+1 -1
View File
@@ -9,7 +9,7 @@ Item {
id: root
// Widget properties passed from Bar.qml
property var screen
property ShellScreen screen
property real scaling: 1.0
// Widget properties passed from Bar.qml for per-instance settings
+2 -1
View File
@@ -8,7 +8,8 @@ import qs.Widgets
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
baseSize: Style.capsuleHeight
compact: (Settings.data.bar.density === "compact")
+2 -1
View File
@@ -10,7 +10,8 @@ import qs.Widgets
NIconButton {
id: root
property real scaling: 1.0
// NIconButton must only define screen, not scaling
property ShellScreen screen
compact: (Settings.data.bar.density === "compact")
baseSize: Style.capsuleHeight
+1
View File
@@ -8,6 +8,7 @@ Rectangle {
id: root
property real baseSize: Style.baseWidgetSize
property real scaling: 1.0
property string icon
property string tooltipText