diff --git a/draw.js b/draw.js
index 28669f6..54ee05b 100644
--- a/draw.js
+++ b/draw.js
@@ -397,7 +397,7 @@ var DrawingArea = new Lang.Class({
this.currentElement.color = this.currentColor.to_string();
this._redisplay();
}
- this.emitter.emit('show-osd', this.currentColor.to_string(), null);
+ this.emitter.emit('show-osd', `${this.currentColor.to_string()}`, null);
},
selectShape: function(shape) {
@@ -435,7 +435,7 @@ var DrawingArea = new Lang.Class({
this.currentElement.font.weight = this.currentFontWeight;
this._redisplay();
}
- this.emitter.emit('show-osd', FontWeightNames[this.currentFontWeight], null);
+ this.emitter.emit('show-osd', `${FontWeightNames[this.currentFontWeight]}`, null);
},
toggleFontStyle: function() {
@@ -444,7 +444,7 @@ var DrawingArea = new Lang.Class({
this.currentElement.font.style = this.currentFontStyle;
this._redisplay();
}
- this.emitter.emit('show-osd', FontStyleNames[this.currentFontStyle], null);
+ this.emitter.emit('show-osd', `${FontStyleNames[this.currentFontStyle]}`, null);
},
toggleFontFamily: function() {
@@ -454,7 +454,7 @@ var DrawingArea = new Lang.Class({
this.currentElement.font.family = currentFontFamily;
this._redisplay();
}
- this.emitter.emit('show-osd',currentFontFamily , null);
+ this.emitter.emit('show-osd', `${currentFontFamily}`, null);
},
toggleHelp: function() {
diff --git a/extension.js b/extension.js
index 552864c..c1bbe44 100644
--- a/extension.js
+++ b/extension.js
@@ -292,8 +292,10 @@ var AreaManager = new Lang.Class({
showOsd: function(emitter, label, level, maxLevel) {
let activeIndex = this.areas.indexOf(this.activeArea);
- if (activeIndex != -1)
+ if (activeIndex != -1) {
Main.osdWindowManager.show(activeIndex, this.enterGicon, label, level, maxLevel);
+ Main.osdWindowManager._osdWindows[activeIndex]._label.get_clutter_text().set_use_markup(true);
+ }
},
removeAreas: function() {