mirror of
https://github.com/luneko/SweetTokyoNight.git
synced 2025-12-13 15:29:53 +01:00
KDE: Improve logout screen buttons appearance
This commit is contained in:
@@ -30,6 +30,7 @@ Item {
|
||||
property alias labelRendering: label.renderType
|
||||
property alias circleOpacity: iconCircle.opacity
|
||||
property alias circleVisiblity: iconCircle.visible
|
||||
property alias border_color: iconCircle.border.color
|
||||
property int fontSize: config.fontSize
|
||||
readonly property bool softwareRendering: GraphicsInfo.api === GraphicsInfo.Software
|
||||
signal clicked
|
||||
@@ -56,6 +57,8 @@ Item {
|
||||
height: width
|
||||
radius: width / 2
|
||||
color: "#08080C"
|
||||
border.color: "#c50ed2"
|
||||
border.width: 1
|
||||
opacity: activeFocus || containsMouse ? (softwareRendering ? 0.8 : 0.15) : (softwareRendering ? 0.6 : 0)
|
||||
Behavior on opacity {
|
||||
PropertyAnimation { // OpacityAnimator makes it turn black at random intervals
|
||||
|
||||
@@ -175,6 +175,7 @@ PlasmaCore.ColorScope {
|
||||
id: suspendButton
|
||||
iconSource: "system-suspend"
|
||||
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Suspend to RAM", "Sleep")
|
||||
border_color: "#43e97b"
|
||||
action: root.sleepRequested
|
||||
KeyNavigation.left: logoutButton
|
||||
KeyNavigation.right: hibernateButton
|
||||
@@ -184,6 +185,7 @@ PlasmaCore.ColorScope {
|
||||
id: hibernateButton
|
||||
iconSource: "system-suspend-hibernate"
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Hibernate")
|
||||
border_color: "#ff9966"
|
||||
action: root.hibernateRequested
|
||||
KeyNavigation.left: suspendButton
|
||||
KeyNavigation.right: rebootButton
|
||||
@@ -193,6 +195,7 @@ PlasmaCore.ColorScope {
|
||||
id: rebootButton
|
||||
iconSource: "system-reboot"
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Restart")
|
||||
border_color: "#c50ed2"
|
||||
action: root.rebootRequested
|
||||
KeyNavigation.left: hibernateButton
|
||||
KeyNavigation.right: shutdownButton
|
||||
@@ -203,6 +206,7 @@ PlasmaCore.ColorScope {
|
||||
id: shutdownButton
|
||||
iconSource: "system-shutdown"
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Shut Down")
|
||||
border_color: "#ffe031"
|
||||
action: root.haltRequested
|
||||
KeyNavigation.left: rebootButton
|
||||
KeyNavigation.right: logoutButton
|
||||
@@ -213,6 +217,7 @@ PlasmaCore.ColorScope {
|
||||
id: logoutButton
|
||||
iconSource: "system-log-out"
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log Out")
|
||||
border_color: "#00ffa9"
|
||||
action: root.logoutRequested
|
||||
KeyNavigation.left: shutdownButton
|
||||
KeyNavigation.right: suspendButton
|
||||
|
||||
Reference in New Issue
Block a user