generated from wm-packages/pika-hyprland-settings
Update changelog for v1.0.0-101pika6; enhance ActiveWindow icon retrieval with improved fallbacks for better app integration
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 37s
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 37s
This commit is contained in:
parent
132c3fef20
commit
bc894da4a9
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
||||
2
|
||||
1
|
@ -1,6 +1,6 @@
|
||||
pikabar (1.0.0-101pika5) pika; urgency=medium
|
||||
pikabar (1.0.0-101pika6) pika; urgency=medium
|
||||
|
||||
* Font fixes
|
||||
* Font fixes and icon fixes
|
||||
|
||||
-- ferrreo <harderthanfire@gmail.com> Sat, 01 Oct 2022 14:50:00 +0300
|
||||
|
||||
|
@ -7,11 +7,28 @@ import "root:/"
|
||||
Row {
|
||||
spacing: 10
|
||||
|
||||
function getIcon() {
|
||||
var icon = Quickshell.iconPath(ToplevelManager.activeToplevel.appId.toLowerCase())
|
||||
if (!icon) {
|
||||
icon = Quickshell.iconPath(ToplevelManager.activeToplevel.appId)
|
||||
}
|
||||
if (!icon) {
|
||||
icon = Quickshell.iconPath(ToplevelManager.activeToplevel.title)
|
||||
}
|
||||
if (!icon) {
|
||||
icon = Quickshell.iconPath(ToplevelManager.activeToplevel.title.toLowerCase())
|
||||
}
|
||||
if (!icon) {
|
||||
icon = Quickshell.iconPath("application-x-executable")
|
||||
}
|
||||
return icon
|
||||
}
|
||||
|
||||
SimpleImage {
|
||||
height: 42
|
||||
Layout.fillHeight: true
|
||||
implicitWidth: parent.height / 2
|
||||
source: ToplevelManager.activeToplevel ? Quickshell.iconPath(ToplevelManager.activeToplevel.appId.toLowerCase()) || Quickshell.iconPath(ToplevelManager.activeToplevel.appId) : ""
|
||||
source: ToplevelManager.activeToplevel ? getIcon() : ""
|
||||
}
|
||||
|
||||
Text {
|
||||
|
Loading…
x
Reference in New Issue
Block a user