[gnome-initial-setup/wip/pwithnall/misc-fixes: 51/70] Change generated avatar for empty name
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/wip/pwithnall/misc-fixes: 51/70] Change generated avatar for empty name
- Date: Fri, 11 Sep 2020 13:29:14 +0000 (UTC)
commit 12935d60fc9f4228fa51c4954dca9cca2986a489
Author: Philip Chimento <philip endlessm com>
Date: Mon Aug 5 17:41:48 2019 -0700
Change generated avatar for empty name
By default while the user name is empty the generated avatar is a "bust
in silhouette" on a green background. Change the background to orange.
(Note: Before the 3.36 rebase, we had to also make the default avatar a
bust instead of an empty white circle, but this is now upstream.)
https://phabricator.endlessm.com/T27460
gnome-initial-setup/pages/account/um-utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnome-initial-setup/pages/account/um-utils.c b/gnome-initial-setup/pages/account/um-utils.c
index 04977502..108fd219 100644
--- a/gnome-initial-setup/pages/account/um-utils.c
+++ b/gnome-initial-setup/pages/account/um-utils.c
@@ -617,7 +617,7 @@ get_color_for_name (const gchar *name)
gint idx;
if (name == NULL || name[0] == '\0') {
- idx = 5;
+ idx = 14; /* Orange 4 */
} else {
hash = g_str_hash (name);
number_of_colors = G_N_ELEMENTS (gnome_color_palette);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]