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
This commit is contained in:
Jonas Dreßler 2019-12-05 13:04:38 +01:00 committed by Florian Müllner
parent 11283339b6
commit 184f980c18
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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;