Skip to content

Commit 8d26d3f

Browse files
authored
windowManager: Give the resize popup it's own style class (#12450)
Reusing the info-osd class is convenient but doesn't always give what we want. Add a unique style class to allow theming this independently
1 parent 16b5f6b commit 8d26d3f

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

data/theme/cinnamon-sass/widgets/_osd.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ $ws_dot_inactive: $ws_indicator_height / 6;
9292
.resize-popup {
9393
@extend %osd_base;
9494

95-
padding: $base_padding;
95+
padding: $base_padding * 2;
9696
}

js/ui/windowManager.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,14 @@ var ResizePopup = GObject.registerClass(
275275
class ResizePopup extends St.Widget {
276276
_init() {
277277
super._init({ layout_manager: new Clutter.BinLayout() });
278-
this._label = new St.Label({ style_class: 'info-osd',
279-
x_align: Clutter.ActorAlign.CENTER,
280-
y_align: Clutter.ActorAlign.CENTER,
281-
x_expand: true, y_expand: true });
278+
this._label = new St.Label({
279+
style_class: 'resize-popup',
280+
important: true,
281+
x_align: Clutter.ActorAlign.CENTER,
282+
y_align: Clutter.ActorAlign.CENTER,
283+
x_expand: true,
284+
y_expand: true
285+
});
282286
this.add_child(this._label);
283287
Main.uiGroup.add_actor(this);
284288
}

0 commit comments

Comments
 (0)