mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 11:36:54 +00:00
workspace label: react to changes in top bar font changes
This commit is contained in:
@@ -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'});
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user