From cda33342963fd153d106d18b60329ca937751d95 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Fri, 29 Aug 2025 16:19:52 -0400 Subject: [PATCH 1/3] hover cursor changes --- components/StyledSlider.qml | 14 +++++++++----- components/StyledSwitch.qml | 5 +++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/components/StyledSlider.qml b/components/StyledSlider.qml index 644d024..e0b0fca 100644 --- a/components/StyledSlider.qml +++ b/components/StyledSlider.qml @@ -7,6 +7,10 @@ Slider { height: 24 + HoverHandler { + cursorShape: Qt.PointingHandCursor + } + background: Rectangle { x: control.leftPadding y: control.topPadding + control.availableHeight / 2 - height / 2 @@ -18,12 +22,12 @@ Slider { color: Theme.palette.base100 Rectangle { - width: control.visualPosition * parent.width - Behavior on width { - NumberAnimation { - duration: 75 + width: control.visualPosition * parent.width + Behavior on width { + NumberAnimation { + duration: 75 + } } - } height: parent.height color: Theme.palette.primary radius: 8 diff --git a/components/StyledSwitch.qml b/components/StyledSwitch.qml index b17c6d2..6e5b726 100644 --- a/components/StyledSwitch.qml +++ b/components/StyledSwitch.qml @@ -4,6 +4,11 @@ import QtQuick.Controls Switch { id: control + + HoverHandler { + cursorShape: Qt.PointingHandCursor + } + indicator: Item { implicitWidth: 48 implicitHeight: 22 From 2762c7952a1f9efb8a276cc4c729b3b82d74e566 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Fri, 29 Aug 2025 16:38:23 -0400 Subject: [PATCH 2/3] move styled button --- {widgets => components}/StyledButton.qml | 0 modules/bar/components/Cpu.qml | 1 + modules/bar/components/Gpu.qml | 1 + modules/bar/components/Pipewire.qml | 1 + modules/bar/components/notifications/Notifications.qml | 1 + modules/bar/components/tray/menu/MenuItem.qml | 3 ++- 6 files changed, 6 insertions(+), 1 deletion(-) rename {widgets => components}/StyledButton.qml (100%) diff --git a/widgets/StyledButton.qml b/components/StyledButton.qml similarity index 100% rename from widgets/StyledButton.qml rename to components/StyledButton.qml diff --git a/modules/bar/components/Cpu.qml b/modules/bar/components/Cpu.qml index 2156c6b..3cde9e1 100644 --- a/modules/bar/components/Cpu.qml +++ b/modules/bar/components/Cpu.qml @@ -1,3 +1,4 @@ +import qs.components import qs.config import qs.constants import qs.services diff --git a/modules/bar/components/Gpu.qml b/modules/bar/components/Gpu.qml index 1d65dc6..dbccc2e 100644 --- a/modules/bar/components/Gpu.qml +++ b/modules/bar/components/Gpu.qml @@ -1,3 +1,4 @@ +import qs.components import qs.config import qs.constants import qs.services diff --git a/modules/bar/components/Pipewire.qml b/modules/bar/components/Pipewire.qml index a06afba..d65f67a 100644 --- a/modules/bar/components/Pipewire.qml +++ b/modules/bar/components/Pipewire.qml @@ -1,3 +1,4 @@ +import qs.components import qs.config import qs.services import qs.widgets diff --git a/modules/bar/components/notifications/Notifications.qml b/modules/bar/components/notifications/Notifications.qml index 6896f9b..07a226b 100644 --- a/modules/bar/components/notifications/Notifications.qml +++ b/modules/bar/components/notifications/Notifications.qml @@ -1,3 +1,4 @@ +import qs.components import qs.config import qs.constants import qs.services diff --git a/modules/bar/components/tray/menu/MenuItem.qml b/modules/bar/components/tray/menu/MenuItem.qml index bdf866c..1a54f02 100644 --- a/modules/bar/components/tray/menu/MenuItem.qml +++ b/modules/bar/components/tray/menu/MenuItem.qml @@ -1,3 +1,4 @@ +import qs.components import qs.widgets import Quickshell @@ -7,6 +8,6 @@ StyledButton { onClicked: menuEntry.triggered() content: StyledText { font.pixelSize: 14 - text: root.menuEntry.text + text: root.menuEntry.text } } From 160cd3c1d503c79ff1519992b6701f0b03b91a6a Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Fri, 29 Aug 2025 16:53:28 -0400 Subject: [PATCH 3/3] notifications to icon button --- .../notifications/Notifications.qml | 26 +++++-------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/modules/bar/components/notifications/Notifications.qml b/modules/bar/components/notifications/Notifications.qml index 07a226b..a33b673 100644 --- a/modules/bar/components/notifications/Notifications.qml +++ b/modules/bar/components/notifications/Notifications.qml @@ -1,34 +1,22 @@ import qs.components -import qs.config import qs.constants import qs.services -import qs.widgets import QtQuick -StyledButton { +StyledIconButton { id: root onClicked: { menu.toggle(); } - content: StyledText { - id: text + text: Notifications.hasNotifications ? Icons.bell : Icons.bellRing - font.family: Theme.lucide.font.family - font.pixelSize: Dimensions.notifications.fontSize - font.bold: true - text: Icons.bell - - color: root.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent - - states: State { - when: Notifications.hasNotifications - PropertyChanges { - text { - text: Icons.bellRing - color: root.containsMouse ? Theme.palette.base300 : Theme.palette.secondary - } + states: State { + when: Notifications.hasNotifications + PropertyChanges { + root { + text: Icons.bellRing } } }