From 5125f66afa2927a368fc1ef1229b3bf86e81b303 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 27 Oct 2021 13:04:15 +0200 Subject: [PATCH] core: Use b/w unicode for tablet mode OSD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: --- src/core/display.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index 37b8f04ca..532d024f8 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -3139,9 +3139,13 @@ meta_display_notify_pad_group_switch (MetaDisplay *display, pretty_name = clutter_input_device_get_device_name (pad); 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++) - 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), "input-tablet-symbolic", message->str);