[gnome-shell] endSessionDialog: Rename "warning" css class to "battery-warning"
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] endSessionDialog: Rename "warning" css class to "battery-warning"
- Date: Mon, 20 Jan 2020 14:15:42 +0000 (UTC)
commit 184f980c18d376f628a8d1aff2b3985960fa4b58
Author: Jonas Dreßler <verdre v0yd nl>
Date: Thu Dec 5 13:04:38 2019 +0100
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 15b975f12d..73116b86aa 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 797239449c..7c8961d3b1 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]