forked from Shinonome/dots-hyprland
hefty: bar: windowinfo: fix icon randomly not showing
This commit is contained in:
@@ -94,14 +94,14 @@ HBarWidgetWithPopout {
|
|||||||
diameter: appIcon.implicitSize
|
diameter: appIcon.implicitSize
|
||||||
}
|
}
|
||||||
Loader {
|
Loader {
|
||||||
|
id: renderedIconLoader
|
||||||
anchors.fill: appIcon
|
anchors.fill: appIcon
|
||||||
Colorizer {
|
visible: root.activeWindow
|
||||||
id: renderedIcon
|
sourceComponent: Colorizer {
|
||||||
implicitWidth: appIcon.implicitWidth
|
implicitWidth: appIcon.implicitWidth
|
||||||
implicitHeight: appIcon.implicitHeight
|
implicitHeight: appIcon.implicitHeight
|
||||||
colorizationColor: Appearance.colors.colOnLayer0
|
colorizationColor: Appearance.m3colors.darkmode ? Appearance.colors.colOnSecondaryContainer : Appearance.colors.colOnPrimary
|
||||||
// colorization: Config.options.bar.workspaces.monochromeIcons ? 0.8 : 0.5
|
colorization: Config.options.bar.workspaces.monochromeIcons ? 0.8 : 0.5
|
||||||
colorization: 1
|
|
||||||
brightness: 0
|
brightness: 0
|
||||||
source: appIcon
|
source: appIcon
|
||||||
|
|
||||||
@@ -110,13 +110,12 @@ HBarWidgetWithPopout {
|
|||||||
maskThresholdMin: 0.5
|
maskThresholdMin: 0.5
|
||||||
maskSpreadAtMin: 1
|
maskSpreadAtMin: 1
|
||||||
|
|
||||||
visible: root.activeWindow
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MaterialSymbol {
|
MaterialSymbol {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
visible: !renderedIcon.visible
|
visible: !renderedIconLoader.visible
|
||||||
text: "overview_key"
|
text: "overview_key"
|
||||||
iconSize: 16
|
iconSize: 16
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user