theme: Move caps-lock warning to entry widget stylesheet
The caps-lock warning is more related to entries than dialogs and is also used in gdm, which is not realated to dialogs at all. Rename the css class to caps-lock-warning-label and move it to the entry stylesheet. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/952
This commit is contained in:
parent
056f5e5100
commit
eee0657727
@ -133,11 +133,6 @@
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.prompt-dialog-caps-lock-warning {
|
||||
@extend .prompt-dialog-error-label;
|
||||
padding-left: 6.2em;
|
||||
}
|
||||
|
||||
|
||||
/* Polkit Dialog */
|
||||
|
||||
|
@ -25,3 +25,9 @@ StEntry {
|
||||
color: transparentize($fg_color, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.caps-lock-warning-label {
|
||||
padding-left: 6.2em;
|
||||
@include fontsize($base_font_size - 1);
|
||||
color: $warning_color;
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ function addContextMenu(entry, params) {
|
||||
var CapsLockWarning = GObject.registerClass(
|
||||
class CapsLockWarning extends St.Label {
|
||||
_init(params) {
|
||||
let defaultParams = { style_class: 'prompt-dialog-error-label' };
|
||||
let defaultParams = { style_class: 'caps-lock-warning-label' };
|
||||
super._init(Object.assign(defaultParams, params));
|
||||
|
||||
this.text = _('Caps lock is on.');
|
||||
|
Loading…
Reference in New Issue
Block a user