Files
dots-hyprland/dots/.config/quickshell/ii/modules/waffle/bar/TaskViewButton.qml
T
2025-11-16 00:10:55 +01:00

26 lines
637 B
QML

import QtQuick
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
import qs
import qs.services
import qs.modules.common
import qs.modules.waffle.looks
AppButton {
id: root
iconName: (down && !checked) ? "task-view-pressed" : "task-view"
pressedScale: checked ? 5/6 : 1
separateLightDark: true
checked: GlobalStates.overviewOpen
onClicked: {
GlobalStates.overviewOpen = !GlobalStates.overviewOpen;
}
BarToolTip {
extraVisibleCondition: root.shouldShowTooltip
text: Translation.tr("Task View") // Should be a preview of workspaces, but we'll have this for now...
}
}