From d140e6844390fbef781a90ad5c73e08f07fad764 Mon Sep 17 00:00:00 2001 From: ferreo Date: Sun, 17 Nov 2024 22:44:29 +0000 Subject: [PATCH] Update changelog for v1.0.0-101pika8; refine ActiveWindow icon retrieval and remove unused SimpleImage widget for improved performance --- .github/release-nest-v3 | 2 +- pikabar/debian/changelog | 7 +++++- .../share/pikabar/widgets/ActiveWindow.qml | 11 ++++------ .../usr/share/pikabar/widgets/SimpleImage.qml | 22 ------------------- 4 files changed, 11 insertions(+), 31 deletions(-) delete mode 100644 pikabar/usr/share/pikabar/widgets/SimpleImage.qml diff --git a/.github/release-nest-v3 b/.github/release-nest-v3 index d8263ee..56a6051 100644 --- a/.github/release-nest-v3 +++ b/.github/release-nest-v3 @@ -1 +1 @@ -2 \ No newline at end of file +1 \ No newline at end of file diff --git a/pikabar/debian/changelog b/pikabar/debian/changelog index 9f205ef..822dd6d 100644 --- a/pikabar/debian/changelog +++ b/pikabar/debian/changelog @@ -1,10 +1,15 @@ +pikabar (1.0.0-101pika8) pika; urgency=medium + + * Another round of icon fixes + + -- ferrreo Sat, 01 Oct 2022 14:50:00 +0300 + pikabar (1.0.0-101pika7) pika; urgency=medium * Font fixes and icon fixes -- ferrreo Sat, 01 Oct 2022 14:50:00 +0300 - pikabar (1.0.0-101pika2) pika; urgency=medium * Pika 4 Inital Release diff --git a/pikabar/usr/share/pikabar/widgets/ActiveWindow.qml b/pikabar/usr/share/pikabar/widgets/ActiveWindow.qml index f1f819d..8186d75 100644 --- a/pikabar/usr/share/pikabar/widgets/ActiveWindow.qml +++ b/pikabar/usr/share/pikabar/widgets/ActiveWindow.qml @@ -9,18 +9,15 @@ Row { spacing: 10 function getIcon() { - var icon = Quickshell.iconPath(ToplevelManager.activeToplevel.appId.toLowerCase()); + var icon = Quickshell.iconPath(ToplevelManager.activeToplevel.appId.toLowerCase(), true); if (!icon) { - icon = Quickshell.iconPath(ToplevelManager.activeToplevel.appId); + icon = Quickshell.iconPath(ToplevelManager.activeToplevel.appId, true); } if (!icon) { - icon = Quickshell.iconPath(ToplevelManager.activeToplevel.title); + icon = Quickshell.iconPath(ToplevelManager.activeToplevel.title, true); } if (!icon) { - icon = Quickshell.iconPath(ToplevelManager.activeToplevel.title.toLowerCase()); - } - if (!icon) { - icon = Quickshell.iconPath("application-x-executable"); + icon = Quickshell.iconPath(ToplevelManager.activeToplevel.title.toLowerCase(), "application-x-executable"); } return icon; diff --git a/pikabar/usr/share/pikabar/widgets/SimpleImage.qml b/pikabar/usr/share/pikabar/widgets/SimpleImage.qml deleted file mode 100644 index e71f55d..0000000 --- a/pikabar/usr/share/pikabar/widgets/SimpleImage.qml +++ /dev/null @@ -1,22 +0,0 @@ -import QtQuick - -Item { - id: root - - property alias source: image.source - property alias asynchronous: image.asynchronous - property alias status: image.status - property alias cache: image.cache - property alias image: image - - property real size: Math.min(width, height) - - Image { - id: image - anchors.fill: parent - fillMode: Image.PreserveAspectFit - - sourceSize.width: root.size - sourceSize.height: root.size - } -}