[mutter/wip/carlosg/tablet-mode-osd: 2/2] core: Use b/w unicode for tablet mode OSD




commit 5125f66afa2927a368fc1ef1229b3bf86e81b303
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Oct 27 13:04:15 2021 +0200

    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>

 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 37b8f04caa..532d024f80 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]