Compare commits

...

3 commits

Author SHA1 Message Date
Benjamin Palko
160cd3c1d5 notifications to icon button 2025-08-29 16:53:28 -04:00
Benjamin Palko
2762c7952a move styled button 2025-08-29 16:38:23 -04:00
Benjamin Palko
cda3334296 hover cursor changes 2025-08-29 16:20:14 -04:00
8 changed files with 27 additions and 25 deletions

View file

@ -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

View file

@ -4,6 +4,11 @@ import QtQuick.Controls
Switch {
id: control
HoverHandler {
cursorShape: Qt.PointingHandCursor
}
indicator: Item {
implicitWidth: 48
implicitHeight: 22

View file

@ -1,3 +1,4 @@
import qs.components
import qs.config
import qs.constants
import qs.services

View file

@ -1,3 +1,4 @@
import qs.components
import qs.config
import qs.constants
import qs.services

View file

@ -1,3 +1,4 @@
import qs.components
import qs.config
import qs.services
import qs.widgets

View file

@ -1,33 +1,22 @@
import qs.config
import qs.components
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
}
}
}

View file

@ -1,3 +1,4 @@
import qs.components
import qs.widgets
import Quickshell