3c34b4ec25
Reboot/shutdown buttons triggered immediately on click. Now show an inline confirmation prompt, mirroring moonlock's show_power_confirm. - i18n: reboot_confirm, shutdown_confirm, confirm_yes, confirm_no (DE/EN) - greeter: confirm_area in login_box, handlers route through show_power_confirm/dismiss_power_confirm; execute_power_action drops the now-redundant button-disable guard - style: .confirm-label/-yes/-no classes
132 lines
2.6 KiB
CSS
132 lines
2.6 KiB
CSS
/* ABOUTME: GTK4 CSS stylesheet for the Moongreet greeter. */
|
|
/* ABOUTME: Uses GTK theme colors for consistency with the active desktop theme. */
|
|
|
|
/* Main window background */
|
|
window.greeter {
|
|
background-color: @theme_bg_color;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
/* Wallpaper-only window for secondary monitors */
|
|
window.wallpaper {
|
|
background-color: @theme_bg_color;
|
|
}
|
|
|
|
/* Central login area */
|
|
.login-box {
|
|
padding: 40px;
|
|
border-radius: 12px;
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Round avatar image — size is set via set_size_request() in code */
|
|
.avatar {
|
|
border-radius: 9999px;
|
|
min-width: 128px;
|
|
min-height: 128px;
|
|
background-color: @theme_selected_bg_color;
|
|
border: 3px solid alpha(@theme_fg_color, 0.3);
|
|
}
|
|
|
|
/* Username label */
|
|
.username-label {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: @theme_fg_color;
|
|
margin-top: 12px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
/* Session dropdown */
|
|
.session-dropdown {
|
|
min-width: 280px;
|
|
}
|
|
|
|
/* Password entry field */
|
|
.password-entry {
|
|
min-width: 280px;
|
|
}
|
|
|
|
/* Error message label */
|
|
.error-label {
|
|
color: @error_color;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Fingerprint prompt label */
|
|
.fingerprint-label {
|
|
color: alpha(@theme_fg_color, 0.6);
|
|
font-size: 13px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* User list on the bottom left */
|
|
.user-list {
|
|
background-color: transparent;
|
|
padding: 8px;
|
|
}
|
|
|
|
.user-list-item {
|
|
padding: 8px 16px;
|
|
border-radius: 8px;
|
|
color: @theme_fg_color;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-list-item:hover {
|
|
background-color: alpha(@theme_fg_color, 0.15);
|
|
}
|
|
|
|
.user-list-item:selected {
|
|
background-color: alpha(@theme_fg_color, 0.2);
|
|
}
|
|
|
|
/* Power confirmation prompt */
|
|
.confirm-label {
|
|
font-size: 16px;
|
|
color: @theme_fg_color;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.confirm-yes {
|
|
padding: 8px 24px;
|
|
border-radius: 8px;
|
|
background-color: @error_color;
|
|
color: @theme_bg_color;
|
|
border: none;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.confirm-yes:hover {
|
|
background-color: lighter(@error_color);
|
|
}
|
|
|
|
.confirm-no {
|
|
padding: 8px 24px;
|
|
border-radius: 8px;
|
|
background-color: alpha(@theme_fg_color, 0.15);
|
|
color: @theme_fg_color;
|
|
border: none;
|
|
}
|
|
|
|
.confirm-no:hover {
|
|
background-color: alpha(@theme_fg_color, 0.25);
|
|
}
|
|
|
|
/* Power buttons on the bottom right */
|
|
.power-button {
|
|
min-width: 48px;
|
|
min-height: 48px;
|
|
padding: 0px;
|
|
border-radius: 24px;
|
|
background-color: alpha(@theme_fg_color, 0.1);
|
|
color: @theme_fg_color;
|
|
border: none;
|
|
margin: 4px;
|
|
}
|
|
|
|
.power-button:hover {
|
|
background-color: alpha(@theme_fg_color, 0.25);
|
|
}
|