Font size markup bug workaround
The "small" font size attribute was applied to the whole text. https://gitlab.gnome.org/GNOME/mutter/-/issues/1467
This commit is contained in:
parent
80b49f2a1d
commit
cddfa3172f
|
|
@ -407,8 +407,9 @@ const AreaManager = new Lang.Class({
|
||||||
|
|
||||||
this.activeArea.enterDrawingMode();
|
this.activeArea.enterDrawingMode();
|
||||||
this.osdDisabled = Me.settings.get_boolean('osd-disabled');
|
this.osdDisabled = Me.settings.get_boolean('osd-disabled');
|
||||||
|
// <span size="medium"> is a clutter/mutter 3.38 bug workaround: https://gitlab.gnome.org/GNOME/mutter/-/issues/1467
|
||||||
// Translators: %s is a key label
|
// Translators: %s is a key label
|
||||||
let label = "<small>" + _("Press <i>%s</i> for help").format(this.activeArea.helper.helpKeyLabel) + "</small>\n\n" + _("Entering drawing mode");
|
let label = `<small>${_("Press <i>%s</i> for help").format(this.activeArea.helper.helpKeyLabel)}</small>\n\n<span size="medium">${_("Entering drawing mode")}</span>`;
|
||||||
this.showOsd(null, Files.Icons.ENTER, label, null, null, true);
|
this.showOsd(null, Files.Icons.ENTER, label, null, null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue