KDE: Improve logout screen buttons appearance

This commit is contained in:
EliverLara
2020-11-07 15:15:15 -06:00
parent df2373ea1a
commit b8230c5d31
2 changed files with 8 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ Item {
property alias labelRendering: label.renderType property alias labelRendering: label.renderType
property alias circleOpacity: iconCircle.opacity property alias circleOpacity: iconCircle.opacity
property alias circleVisiblity: iconCircle.visible property alias circleVisiblity: iconCircle.visible
property alias border_color: iconCircle.border.color
property int fontSize: config.fontSize property int fontSize: config.fontSize
readonly property bool softwareRendering: GraphicsInfo.api === GraphicsInfo.Software readonly property bool softwareRendering: GraphicsInfo.api === GraphicsInfo.Software
signal clicked signal clicked
@@ -56,6 +57,8 @@ Item {
height: width height: width
radius: width / 2 radius: width / 2
color: "#08080C" color: "#08080C"
border.color: "#c50ed2"
border.width: 1
opacity: activeFocus || containsMouse ? (softwareRendering ? 0.8 : 0.15) : (softwareRendering ? 0.6 : 0) opacity: activeFocus || containsMouse ? (softwareRendering ? 0.8 : 0.15) : (softwareRendering ? 0.6 : 0)
Behavior on opacity { Behavior on opacity {
PropertyAnimation { // OpacityAnimator makes it turn black at random intervals PropertyAnimation { // OpacityAnimator makes it turn black at random intervals

View File

@@ -175,6 +175,7 @@ PlasmaCore.ColorScope {
id: suspendButton id: suspendButton
iconSource: "system-suspend" iconSource: "system-suspend"
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Suspend to RAM", "Sleep") text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Suspend to RAM", "Sleep")
border_color: "#43e97b"
action: root.sleepRequested action: root.sleepRequested
KeyNavigation.left: logoutButton KeyNavigation.left: logoutButton
KeyNavigation.right: hibernateButton KeyNavigation.right: hibernateButton
@@ -184,6 +185,7 @@ PlasmaCore.ColorScope {
id: hibernateButton id: hibernateButton
iconSource: "system-suspend-hibernate" iconSource: "system-suspend-hibernate"
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Hibernate") text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Hibernate")
border_color: "#ff9966"
action: root.hibernateRequested action: root.hibernateRequested
KeyNavigation.left: suspendButton KeyNavigation.left: suspendButton
KeyNavigation.right: rebootButton KeyNavigation.right: rebootButton
@@ -193,6 +195,7 @@ PlasmaCore.ColorScope {
id: rebootButton id: rebootButton
iconSource: "system-reboot" iconSource: "system-reboot"
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Restart") text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Restart")
border_color: "#c50ed2"
action: root.rebootRequested action: root.rebootRequested
KeyNavigation.left: hibernateButton KeyNavigation.left: hibernateButton
KeyNavigation.right: shutdownButton KeyNavigation.right: shutdownButton
@@ -203,6 +206,7 @@ PlasmaCore.ColorScope {
id: shutdownButton id: shutdownButton
iconSource: "system-shutdown" iconSource: "system-shutdown"
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Shut Down") text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Shut Down")
border_color: "#ffe031"
action: root.haltRequested action: root.haltRequested
KeyNavigation.left: rebootButton KeyNavigation.left: rebootButton
KeyNavigation.right: logoutButton KeyNavigation.right: logoutButton
@@ -213,6 +217,7 @@ PlasmaCore.ColorScope {
id: logoutButton id: logoutButton
iconSource: "system-log-out" iconSource: "system-log-out"
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log Out") text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log Out")
border_color: "#00ffa9"
action: root.logoutRequested action: root.logoutRequested
KeyNavigation.left: shutdownButton KeyNavigation.left: shutdownButton
KeyNavigation.right: suspendButton KeyNavigation.right: suspendButton