add style changes to clock and volume
This commit is contained in:
parent
31dd09baff
commit
58b9530361
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user