[gnome-shell] theme: Move caps-lock warning to entry widget stylesheet
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] theme: Move caps-lock warning to entry widget stylesheet
- Date: Thu, 30 Jan 2020 14:42:52 +0000 (UTC)
commit eee0657727232e90b1af8127db30d4bf80c45703
Author: Jonas Dreßler <verdre v0yd nl>
Date: Thu Jan 23 23:26:45 2020 +0100
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
data/theme/gnome-shell-sass/widgets/_dialogs.scss | 5 -----
data/theme/gnome-shell-sass/widgets/_entries.scss | 6 ++++++
js/ui/shellEntry.js | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_dialogs.scss
b/data/theme/gnome-shell-sass/widgets/_dialogs.scss
index bd49e7393f..f1960dba7f 100644
--- a/data/theme/gnome-shell-sass/widgets/_dialogs.scss
+++ b/data/theme/gnome-shell-sass/widgets/_dialogs.scss
@@ -133,11 +133,6 @@
padding: 8px;
}
-.prompt-dialog-caps-lock-warning {
- @extend .prompt-dialog-error-label;
- padding-left: 6.2em;
-}
-
/* Polkit Dialog */
diff --git a/data/theme/gnome-shell-sass/widgets/_entries.scss
b/data/theme/gnome-shell-sass/widgets/_entries.scss
index 0a43e86f37..70875b0854 100644
--- a/data/theme/gnome-shell-sass/widgets/_entries.scss
+++ b/data/theme/gnome-shell-sass/widgets/_entries.scss
@@ -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;
+}
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
index 77e3a185ba..f8f2f12fd1 100644
--- a/js/ui/shellEntry.js
+++ b/js/ui/shellEntry.js
@@ -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.');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]