From 485372ee56b667c3fa64147ad3bb0c10ae31e71b Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 8 Mar 2026 18:14:38 +0100 Subject: [PATCH] hefty: bar: fix ws icons sometimes not showing --- .../topLayer/bar/widgets/HWorkspaces.qml | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml index cf28e9232..da2b6a8bc 100644 --- a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml @@ -242,30 +242,33 @@ HBarWidgetContainer { diameter: appIcon.implicitSize } - Colorizer { + Loader { // Somehow putting this multieffect in a loader prevents it from not showing up + id: colorizer anchors.fill: appIcon - implicitWidth: appIcon.implicitWidth - implicitHeight: appIcon.implicitHeight - colorizationColor: Appearance.m3colors.darkmode ? Appearance.colors.colOnSecondaryContainer : Appearance.colors.colOnPrimary - colorization: Config.options.bar.workspaces.monochromeIcons ? 0.8 : 0.5 - brightness: 0 - source: appIcon + sourceComponent: Colorizer { + implicitWidth: appIcon.implicitWidth + implicitHeight: appIcon.implicitHeight + colorizationColor: Appearance.m3colors.darkmode ? Appearance.colors.colOnSecondaryContainer : Appearance.colors.colOnPrimary + colorization: Config.options.bar.workspaces.monochromeIcons ? 0.8 : 0.5 + brightness: 0 + source: appIcon - opacity: !Config.options?.bar.workspaces.showAppIcons ? 0 : (wsApp.biggestWindow && !root.superPressAndHeld && Config.options?.bar.workspaces.showAppIcons) ? 1 : wsApp.biggestWindow ? root.workspaceIconOpacityShrinked : 0 - visible: opacity > 0 - scale: ((!root.superPressAndHeld && Config.options?.bar.workspaces.showAppIcons) ? root.workspaceIconSize : root.workspaceIconSizeShrinked) / root.workspaceIconSize + opacity: !Config.options?.bar.workspaces.showAppIcons ? 0 : (wsApp.biggestWindow && !root.superPressAndHeld && Config.options?.bar.workspaces.showAppIcons) ? 1 : wsApp.biggestWindow ? root.workspaceIconOpacityShrinked : 0 + visible: opacity > 0 + scale: ((!root.superPressAndHeld && Config.options?.bar.workspaces.showAppIcons) ? root.workspaceIconSize : root.workspaceIconSizeShrinked) / root.workspaceIconSize - Behavior on opacity { - animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) + Behavior on opacity { + animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) + } + Behavior on scale { + animation: Appearance.animation.elementMoveSmall.numberAnimation.createObject(this) + } + + maskEnabled: true + maskSource: iconMask + maskThresholdMin: 0.5 + maskSpreadAtMin: 1 } - Behavior on scale { - animation: Appearance.animation.elementMoveSmall.numberAnimation.createObject(this) - } - - maskEnabled: true - maskSource: iconMask - maskThresholdMin: 0.5 - maskSpreadAtMin: 1 } } }