osd: Restyle OSD display popup

- remove class from label box
- new style for label itself

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2277>
This commit is contained in:
Sam Hewitt 2022-04-19 14:08:37 -02:30 committed by Florian Müllner
parent 851a1e30fa
commit cb2ee0cf1f
2 changed files with 11 additions and 3 deletions

View File

@ -14,8 +14,6 @@ $osd_levelbar_height:6px;
StIcon { icon-size:$large_icon_size;}
.osd-monitor-label { font-size: 3em; }
StLabel {
&:ltr { margin-right: 6px; }
&:rtl { margin-left: 6px; }
@ -37,6 +35,17 @@ $osd_levelbar_height:6px;
}
}
// Monitor number label
.osd-monitor-label {
@extend %osd_panel;
border-radius: $modal_radius;
font-size: 3em;
font-weight: bold;
margin: $base_margin * 3;
text-align: center;
min-width: 1.3em;
}
/* Pad OSD */
.pad-osd-window {
padding: 32px;

View File

@ -13,7 +13,6 @@ class OsdMonitorLabel extends St.Widget {
this._monitor = monitor;
this._box = new St.BoxLayout({
style_class: 'osd-window',
vertical: true,
});
this.add_actor(this._box);