From 48ade771fb191758b20c66d84cdf159398da125a Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Sun, 12 Oct 2025 18:03:26 -0400 Subject: [PATCH] Fix NIconButton Scaling --- Modules/Bar/Widgets/Bluetooth.qml | 2 +- Modules/Bar/Widgets/DarkMode.qml | 2 +- Modules/Bar/Widgets/KeepAwake.qml | 2 +- Widgets/NIconButton.qml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/Bar/Widgets/Bluetooth.qml b/Modules/Bar/Widgets/Bluetooth.qml index 55346b899..039c10dce 100644 --- a/Modules/Bar/Widgets/Bluetooth.qml +++ b/Modules/Bar/Widgets/Bluetooth.qml @@ -13,7 +13,7 @@ NIconButton { property ShellScreen screen baseSize: Style.capsuleHeight - applyUiScale: false + applyUiScale: false compact: (Settings.data.bar.density === "compact") || (Settings.data.bar.density === "mini") colorBg: Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent colorFg: Color.mOnSurface diff --git a/Modules/Bar/Widgets/DarkMode.qml b/Modules/Bar/Widgets/DarkMode.qml index 3523eac68..8506001ba 100644 --- a/Modules/Bar/Widgets/DarkMode.qml +++ b/Modules/Bar/Widgets/DarkMode.qml @@ -13,7 +13,7 @@ NIconButton { tooltipDirection: BarService.getTooltipDirection() compact: (Settings.data.bar.density === "compact") || (Settings.data.bar.density === "mini") baseSize: Style.capsuleHeight - applyUiScale: false + applyUiScale: false colorBg: Settings.data.colorSchemes.darkMode ? (Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent) : Color.mPrimary colorFg: Settings.data.colorSchemes.darkMode ? Color.mOnSurface : Color.mOnPrimary colorBorder: Color.transparent diff --git a/Modules/Bar/Widgets/KeepAwake.qml b/Modules/Bar/Widgets/KeepAwake.qml index 4612360bf..3a30652eb 100644 --- a/Modules/Bar/Widgets/KeepAwake.qml +++ b/Modules/Bar/Widgets/KeepAwake.qml @@ -11,7 +11,7 @@ NIconButton { property ShellScreen screen baseSize: Style.capsuleHeight - applyUiScale: false + applyUiScale: false compact: (Settings.data.bar.density === "compact") || (Settings.data.bar.density === "mini") icon: IdleInhibitorService.isInhibited ? "keep-awake-on" : "keep-awake-off" tooltipText: IdleInhibitorService.isInhibited ? I18n.tr("tooltips.disable-keep-awake") : I18n.tr("tooltips.enable-keep-awake") diff --git a/Widgets/NIconButton.qml b/Widgets/NIconButton.qml index 5bfee0355..7976e4496 100644 --- a/Widgets/NIconButton.qml +++ b/Widgets/NIconButton.qml @@ -31,8 +31,8 @@ Rectangle { signal rightClicked signal middleClicked - implicitWidth: applyUiScale ? Math.round(baseSize * applyUiScale) : Math.round(baseSize) - implicitHeight: applyUiScale ? Math.round(baseSize * applyUiScale) : Math.round(baseSize) + implicitWidth: applyUiScale ? Math.round(baseSize * Style.uiScaleRatio) : Math.round(baseSize) + implicitHeight: applyUiScale ? Math.round(baseSize * Style.uiScaleRatio) : Math.round(baseSize) opacity: root.enabled ? Style.opacityFull : Style.opacityMedium color: root.enabled && root.hovering ? colorBgHover : colorBg