feat(wlogout): new visual, pretty!

This commit is contained in:
retrozinndev
2024-11-10 13:01:06 -03:00
parent 0c297bb9ff
commit 7d4ba5ddfd
2 changed files with 33 additions and 23 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
} }
{ {
"label" : "logout", "label" : "logout",
"action" : "loginctl terminate-user $USER && killall sddm", "action" : "loginctl kill-user $(whoami)",
"text" : "Logout", "text" : "Logout",
"keybind" : "e" "keybind" : "e"
} }
+32 -22
View File
@@ -3,52 +3,62 @@
* { * {
all: unset;
background-image: none; background-image: none;
box-shadow: none;
outline: none;
background-repeat: no-repeat; background-repeat: no-repeat;
transition: 100ms ease-in-out;
} }
window { window {
background-color: alpha(shade(@background, .6), .6); background: transparent;
}
window > * > * {
border: 2px solid @color2;
border-radius: 18.8px;
}
button:first-child {
border-radius: 16px 0 0 16px;
} }
button { button {
border-radius: 0; border-radius: 16px;
color: @foreground; background-position: center 40%;
background-color: @background; background-size: 35%;
background-position: center; margin: 0 6px;
background-size: 40%;
transition: 150ms linear;
font-size: 1.25em; font-size: 1.25em;
font-weight: 700; font-weight: 700;
} }
button:last-child { window > * > * {
border-radius: 0 16px 16px 0; padding: 140px 60px;
} }
button:focus, button:hover { button:first-child {
margin-right: 6px;
}
button:last-child {
margin-left: 6px;
}
button:focus,
button:hover {
background-color: shade(@color1, .75); background-color: shade(@color1, .75);
background-size: 40%;
background-position: center;
} }
button:focus:hover { button:focus:hover {
background-color: @color3; background-color: @color2;
} }
button:active { button:active {
background-color: @color1; background-color: @color1;
} }
button > label {
font-size: 1.8em;
color: transparent;
}
button:hover > label,
button:focus > label {
color: @foreground;
}
#lock { #lock {
background-image: image(url("/usr/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png")); background-image: image(url("/usr/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png"));
} }