All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 3s
Use @theme_bg_color, @theme_fg_color, @error_color and @success_color instead of hardcoded hex values and 'white'. Makes moonlock respect the active GTK theme instead of assuming Catppuccin Mocha colors. Note: moongreet and moonset still use hardcoded colors and should be updated to match.
115 lines
2.2 KiB
CSS
115 lines
2.2 KiB
CSS
/* ABOUTME: GTK4 CSS stylesheet for the Moonlock lockscreen. */
|
|
/* ABOUTME: Uses GTK theme colors for consistency with the active desktop theme. */
|
|
|
|
/* Main window background */
|
|
window.lockscreen {
|
|
background-color: @theme_bg_color;
|
|
background-size: cover;
|
|
background-position: center;
|
|
opacity: 0;
|
|
transition: opacity 350ms ease-in;
|
|
}
|
|
|
|
window.lockscreen.visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Central login area */
|
|
.login-box {
|
|
padding: 40px;
|
|
border-radius: 12px;
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Round avatar image */
|
|
.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;
|
|
}
|
|
|
|
/* Password entry field */
|
|
.password-entry {
|
|
min-width: 280px;
|
|
}
|
|
|
|
/* Error message label */
|
|
.error-label {
|
|
color: @error_color;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Fingerprint status indicator */
|
|
.fingerprint-label {
|
|
color: alpha(@theme_fg_color, 0.6);
|
|
font-size: 13px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.fingerprint-label.success {
|
|
color: @success_color;
|
|
}
|
|
|
|
.fingerprint-label.failed {
|
|
color: @error_color;
|
|
}
|
|
|
|
/* 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: @theme_unfocused_bg_color;
|
|
color: @theme_fg_color;
|
|
border: none;
|
|
}
|
|
|
|
.confirm-no:hover {
|
|
background-color: @theme_selected_bg_color;
|
|
}
|
|
|
|
/* 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);
|
|
}
|