From 4abfcd016201a4c393e0df348788324ed3d9eb47 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 16 Nov 2025 00:02:57 +0100 Subject: [PATCH] wbar: animated start icon, search, and task view icons --- .../icons/fluent/start-here-pressed.svg | 24 ++++ .../ii/assets/icons/fluent/start-here.svg | 24 ++++ .../fluent/system-search-checked-dark.svg | 105 ++++++++++++++ .../fluent/system-search-checked-light.svg | 81 +++++++++++ .../icons/fluent/system-search-dark.svg | 30 +++- .../icons/fluent/task-view-pressed-dark.svg | 132 ++++++++++++++++++ .../icons/fluent/task-view-pressed-light.svg | 108 ++++++++++++++ .../ii/modules/waffle/bar/AppIcon.qml | 2 + .../ii/modules/waffle/bar/SearchButton.qml | 3 +- .../ii/modules/waffle/bar/StartButton.qml | 2 +- .../ii/modules/waffle/bar/TaskViewButton.qml | 2 +- 11 files changed, 506 insertions(+), 7 deletions(-) create mode 100644 dots/.config/quickshell/ii/assets/icons/fluent/start-here-pressed.svg create mode 100644 dots/.config/quickshell/ii/assets/icons/fluent/start-here.svg create mode 100644 dots/.config/quickshell/ii/assets/icons/fluent/system-search-checked-dark.svg create mode 100644 dots/.config/quickshell/ii/assets/icons/fluent/system-search-checked-light.svg create mode 100644 dots/.config/quickshell/ii/assets/icons/fluent/task-view-pressed-dark.svg create mode 100644 dots/.config/quickshell/ii/assets/icons/fluent/task-view-pressed-light.svg diff --git a/dots/.config/quickshell/ii/assets/icons/fluent/start-here-pressed.svg b/dots/.config/quickshell/ii/assets/icons/fluent/start-here-pressed.svg new file mode 100644 index 000000000..e6b950eca --- /dev/null +++ b/dots/.config/quickshell/ii/assets/icons/fluent/start-here-pressed.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dots/.config/quickshell/ii/assets/icons/fluent/start-here.svg b/dots/.config/quickshell/ii/assets/icons/fluent/start-here.svg new file mode 100644 index 000000000..708d5a71b --- /dev/null +++ b/dots/.config/quickshell/ii/assets/icons/fluent/start-here.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dots/.config/quickshell/ii/assets/icons/fluent/system-search-checked-dark.svg b/dots/.config/quickshell/ii/assets/icons/fluent/system-search-checked-dark.svg new file mode 100644 index 000000000..af58d933f --- /dev/null +++ b/dots/.config/quickshell/ii/assets/icons/fluent/system-search-checked-dark.svg @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/dots/.config/quickshell/ii/assets/icons/fluent/system-search-checked-light.svg b/dots/.config/quickshell/ii/assets/icons/fluent/system-search-checked-light.svg new file mode 100644 index 000000000..8d0e69fce --- /dev/null +++ b/dots/.config/quickshell/ii/assets/icons/fluent/system-search-checked-light.svg @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + diff --git a/dots/.config/quickshell/ii/assets/icons/fluent/system-search-dark.svg b/dots/.config/quickshell/ii/assets/icons/fluent/system-search-dark.svg index 2d972a7b4..8eb990cc4 100644 --- a/dots/.config/quickshell/ii/assets/icons/fluent/system-search-dark.svg +++ b/dots/.config/quickshell/ii/assets/icons/fluent/system-search-dark.svg @@ -7,10 +7,11 @@ version="1.1" viewBox="0 0 16.933 16.933" id="svg2" - sodipodi:docname="system-search.svg" + sodipodi:docname="system-search-dark.svg" inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> + + + + + + style="fill:url(#linearGradient4);fill-opacity:1;stroke:url(#linearGradient919)" /> diff --git a/dots/.config/quickshell/ii/assets/icons/fluent/task-view-pressed-dark.svg b/dots/.config/quickshell/ii/assets/icons/fluent/task-view-pressed-dark.svg new file mode 100644 index 000000000..a7e14009c --- /dev/null +++ b/dots/.config/quickshell/ii/assets/icons/fluent/task-view-pressed-dark.svg @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dots/.config/quickshell/ii/assets/icons/fluent/task-view-pressed-light.svg b/dots/.config/quickshell/ii/assets/icons/fluent/task-view-pressed-light.svg new file mode 100644 index 000000000..b1785dbd0 --- /dev/null +++ b/dots/.config/quickshell/ii/assets/icons/fluent/task-view-pressed-light.svg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dots/.config/quickshell/ii/modules/waffle/bar/AppIcon.qml b/dots/.config/quickshell/ii/modules/waffle/bar/AppIcon.qml index f70a80603..48ff26104 100644 --- a/dots/.config/quickshell/ii/modules/waffle/bar/AppIcon.qml +++ b/dots/.config/quickshell/ii/modules/waffle/bar/AppIcon.qml @@ -13,6 +13,8 @@ Kirigami.Icon { property real implicitSize: 26 implicitWidth: implicitSize implicitHeight: implicitSize + + animated: true roundToIconSize: false fallback: root.iconName source: tryCustomIcon ? `${Looks.iconsPath}/${root.iconName}${!root.separateLightDark ? "" : Looks.dark ? "-dark" : "-light"}.svg` : fallback diff --git a/dots/.config/quickshell/ii/modules/waffle/bar/SearchButton.qml b/dots/.config/quickshell/ii/modules/waffle/bar/SearchButton.qml index a86faaece..3e8dd6282 100644 --- a/dots/.config/quickshell/ii/modules/waffle/bar/SearchButton.qml +++ b/dots/.config/quickshell/ii/modules/waffle/bar/SearchButton.qml @@ -9,9 +9,10 @@ import qs.modules.waffle.looks AppButton { id: root - iconName: "system-search" + iconName: checked ? "system-search-checked" : "system-search" separateLightDark: true + checked: GlobalStates.overviewOpen onClicked: { GlobalStates.overviewOpen = !GlobalStates.overviewOpen; // For now... } diff --git a/dots/.config/quickshell/ii/modules/waffle/bar/StartButton.qml b/dots/.config/quickshell/ii/modules/waffle/bar/StartButton.qml index 1f2ed8342..f4a15cc00 100644 --- a/dots/.config/quickshell/ii/modules/waffle/bar/StartButton.qml +++ b/dots/.config/quickshell/ii/modules/waffle/bar/StartButton.qml @@ -11,7 +11,7 @@ AppButton { id: root leftInset: Config.options.waffles.bar.leftAlignApps ? 12 : 0 - iconName: "start-here" + iconName: down ? "start-here-pressed" : "start-here" onClicked: { GlobalStates.overviewOpen = !GlobalStates.overviewOpen; // For now... diff --git a/dots/.config/quickshell/ii/modules/waffle/bar/TaskViewButton.qml b/dots/.config/quickshell/ii/modules/waffle/bar/TaskViewButton.qml index cc35c8b41..ac564b7dc 100644 --- a/dots/.config/quickshell/ii/modules/waffle/bar/TaskViewButton.qml +++ b/dots/.config/quickshell/ii/modules/waffle/bar/TaskViewButton.qml @@ -9,7 +9,7 @@ import qs.modules.waffle.looks AppButton { id: root - iconName: "task-view" + iconName: (down && !checked) ? "task-view-pressed" : "task-view" separateLightDark: true checked: GlobalStates.overviewOpen