summaryrefslogtreecommitdiff
path: root/pidgin/gtkconv.h
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2021-01-18 00:05:05 -0600
committerGary Kramlich <grim@reaperworld.com>2021-01-18 00:05:05 -0600
commitb10f630883b7bc02fda6465cbc1c2e1b691717c1 (patch)
tree419f714c902852f2e468de8e42664f62e4571470 /pidgin/gtkconv.h
parent0534df604d9190d02e6ff16bca302f4405d67f68 (diff)
downloadpidgin-b10f630883b7bc02fda6465cbc1c2e1b691717c1.tar.gz
Greatly simplify the nick color generation and properly detect dark themes.
Instead of randomly adjusting colors based on some seed colors we now hash a user's name and use the first 2 bytes of the digest to determine the hue to color their nick. We then adjust it according to the background color. This isn't perfect as you can see in the screen shot, but there are some tweaks we can do later to account for that. I skipped them for now as this gets us 90% of the way there with like 50% of the work. Testing Done: Compiled and ran locally with Adwaita, Adwaita-Dark, and Arc-Dark themes. Bugs closed: PIDGIN-17463 Reviewed at https://reviews.imfreedom.org/r/423/
Diffstat (limited to 'pidgin/gtkconv.h')
-rw-r--r--pidgin/gtkconv.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/pidgin/gtkconv.h b/pidgin/gtkconv.h
index bae121d22f..0e76259097 100644
--- a/pidgin/gtkconv.h
+++ b/pidgin/gtkconv.h
@@ -100,7 +100,6 @@ struct _PidginConversation
GtkWidget *tabby;
GtkWidget *menu_tabby;
- GArray *nick_colors;
PurpleMessageFlags last_flags;
GtkWidget *history_sw;
GtkWidget *history;