Fix NIconButton Scaling

This commit is contained in:
ItsLemmy
2025-10-12 18:03:26 -04:00
parent 8f13afb9e9
commit 48ade771fb
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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")
+2 -2
View File
@@ -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