workspace label: react to changes in top bar font changes

This commit is contained in:
Tor Hedin Brønner
2019-02-20 11:15:14 +01:00
parent 48adf04ae7
commit 5f20007ff2
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -155,8 +155,8 @@ class Space extends Array {
let label = new St.Label();
this.label = label;
label.set_style('font-weight: bold; font-feature-settings: "tnum"; height: 1.86em;');
label.hide();
label.set_style('font-feature-settings: "tnum";');
let selection = new St.Widget({name: 'selection',
style_class: 'tile-preview'});
+2
View File
@@ -398,6 +398,8 @@ function enable () {
for (let [workspace, space] of Tiling.spaces) {
space.label.set_position(Math.round(r.x), Math.round(r.y));
let fontDescription = label.clutter_text.font_description;
space.label.clutter_text.set_font_description(fontDescription);
}
});
Main.panel.addToStatusArea('WorkspaceMenu', menu, 0, 'left');