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:
abakkk 2020-10-11 13:09:28 +02:00
parent 80b49f2a1d
commit cddfa3172f
1 changed files with 2 additions and 1 deletions

View File

@ -407,8 +407,9 @@ const AreaManager = new Lang.Class({
this.activeArea.enterDrawingMode();
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
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);
}