add style changes to clock and volume

This commit is contained in:
lucy 2026-01-19 22:20:11 +01:00
parent 31dd09baff
commit 58b9530361
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Loader {
sourceComponent: Rectangle { sourceComponent: Rectangle {
id: container id: container
border.color: Colors.color7 border.color: clickHandler.containsMouse ? Colors.color8 : Colors.color7
border.width: 1 border.width: 1
radius: implicitHeight / 2 radius: implicitHeight / 2
color: Colors.color0 color: Colors.color0
@ -102,9 +102,11 @@ Loader {
} }
} }
MouseArea { MouseArea {
id: clickHandler
anchors.fill: parent anchors.fill: parent
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton | Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.RightButton
hoverEnabled: true
onClicked: mouse => { onClicked: mouse => {
const modes = [PowerProfile.PowerSaver, PowerProfile.Balanced, PowerProfile.Performance]; const modes = [PowerProfile.PowerSaver, PowerProfile.Balanced, PowerProfile.Performance];
let current = PowerProfiles.profile; let current = PowerProfiles.profile;

View File

@ -7,7 +7,7 @@ import qs.reusables
Rectangle { Rectangle {
id: container id: container
border.color: Colors.color7 border.color: formatSwitch.containsMouse ? Colors.color8 : Colors.color7
border.width: 1 border.width: 1
radius: implicitHeight / 2 radius: implicitHeight / 2
color: Colors.color0 color: Colors.color0