[mutter/wip/carlosg/tablet-mode-osd] core: Use b/w unicode for tablet mode OSD
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/tablet-mode-osd] core: Use b/w unicode for tablet mode OSD
- Date: Wed, 27 Oct 2021 13:39:10 +0000 (UTC)
commit 89f28be8e562d4dcd807d314ee9b5c4f4a5318c8
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
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]