forked from Shinonome/dots-hyprland
wbar: animated start icon, search, and task view icons
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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...
|
||||
}
|
||||
|
||||
@@ -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...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user