Bar widgets: fixed bg colors when used with showCapsule=false

This commit is contained in:
LemmyCook
2025-09-16 22:20:42 -04:00
parent cdca7c1d83
commit 3a6bf8d299
10 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ NIconButton {
compact: (Settings.data.bar.density === "compact")
icon: IdleInhibitorService.isInhibited ? "keep-awake-on" : "keep-awake-off"
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake" : "Enable keep awake"
colorBg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mSurfaceVariant
colorBg: IdleInhibitorService.isInhibited ? Color.mPrimary : (Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent)
colorFg: IdleInhibitorService.isInhibited ? Color.mOnPrimary : Color.mOnSurface
colorBorder: Color.transparent
onClicked: IdleInhibitorService.manualToggle()