mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 07:30:42 -05:00
core: Use b/w unicode for tablet mode OSD
This unicode was initially meant to be b/w, but fonts and pango
eventually had another plan and we ended up with color glyphs
being used here, so we get strings like "⚫⚪⚪⚪". Change the
unicode used to ensure these are simpler b/w glyhps like
"● ○ ○ ○" that are easier to read on the OSD (and maybe even a
bit less ugly).
Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4733
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2064>
(cherry picked from commit 5125f66afa
)
This commit is contained in:
parent
2f5c4bfc86
commit
fd826632e8
@ -3135,9 +3135,13 @@ meta_display_notify_pad_group_switch (MetaDisplay *display,
|
|||||||
pretty_name = clutter_input_device_get_device_name (pad);
|
pretty_name = clutter_input_device_get_device_name (pad);
|
||||||
|
|
||||||
message = g_string_new (pretty_name);
|
message = g_string_new (pretty_name);
|
||||||
g_string_append_c (message, '\n');
|
g_string_append (message, "\n\n");
|
||||||
for (i = 0; i < n_modes; i++)
|
for (i = 0; i < n_modes; i++)
|
||||||
g_string_append (message, (i == n_mode) ? "⚫" : "⚪");
|
{
|
||||||
|
if (i > 0)
|
||||||
|
g_string_append_c (message, ' ');
|
||||||
|
g_string_append (message, (i == n_mode) ? "●" : "○");
|
||||||
|
}
|
||||||
|
|
||||||
meta_display_show_osd (display, lookup_tablet_monitor (display, pad),
|
meta_display_show_osd (display, lookup_tablet_monitor (display, pad),
|
||||||
"input-tablet-symbolic", message->str);
|
"input-tablet-symbolic", message->str);
|
||||||
|
Loading…
Reference in New Issue
Block a user