From 184f980c18d376f628a8d1aff2b3985960fa4b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 5 Dec 2019 13:04:38 +0100 Subject: [PATCH] endSessionDialog: Rename "warning" css class to "battery-warning" Since this css class is specifically about the low-battery warning, make the class name a bit more specific, too. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/935 --- data/theme/gnome-shell-sass/widgets/_end-session-dialog.scss | 4 ++-- js/ui/endSessionDialog.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/theme/gnome-shell-sass/widgets/_end-session-dialog.scss b/data/theme/gnome-shell-sass/widgets/_end-session-dialog.scss index 15b975f12..73116b86a 100644 --- a/data/theme/gnome-shell-sass/widgets/_end-session-dialog.scss +++ b/data/theme/gnome-shell-sass/widgets/_end-session-dialog.scss @@ -24,7 +24,7 @@ $end_session_dialog_width: 28em; } } -.end-session-dialog-warning { +.end-session-dialog-battery-warning { width: $end_session_dialog_width; color: $warning_color; padding-top: 6px; @@ -77,4 +77,4 @@ $end_session_dialog_width: 28em; .end-session-dialog-app-list-item-description { color: darken($fg_color,5%); @include fontsize($base_font_size - 1); -} \ No newline at end of file +} diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 797239449..7c8961d3b 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -297,7 +297,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog { this._checkBox.connect('clicked', this._sync.bind(this)); messageLayout.add(this._checkBox); - this._batteryWarning = new St.Label({ style_class: 'end-session-dialog-warning', + this._batteryWarning = new St.Label({ style_class: 'end-session-dialog-battery-warning', text: _("Running on battery power: Please plug in before installing updates.") }); this._batteryWarning.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; this._batteryWarning.clutter_text.line_wrap = true;