about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config/theme.c6
-rw-r--r--src/config/theme.h1
-rw-r--r--src/ui/window.c4
3 files changed, 11 insertions, 0 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index 04074f15..c76de248 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -671,6 +671,12 @@ theme_free_string(char *str)
 }
 
 int
+theme_hash_attrs(const char *str)
+{
+    return COLOR_PAIR(color_pair_cache_hash_str(str));
+}
+
+int
 theme_attrs(theme_item_t attrs)
 {
     int result = 0;
diff --git a/src/config/theme.h b/src/config/theme.h
index edf6e6af..bdca6cf6 100644
--- a/src/config/theme.h
+++ b/src/config/theme.h
@@ -147,6 +147,7 @@ gboolean theme_load(const char *const theme_name);
 gboolean theme_exists(const char *const theme_name);
 GSList* theme_list(void);
 void theme_close(void);
+int theme_hash_attrs(const char *str);
 int theme_attrs(theme_item_t attrs);
 char* theme_get_string(char *str);
 void theme_free_string(char *str);
diff --git a/src/ui/window.c b/src/ui/window.c
index 12bf40f5..47230150 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1453,6 +1453,10 @@ _win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim
             colour = theme_attrs(THEME_THEM);
         }
 
+        if (prefs_get_boolean(PREF_COLOR_NICK)) {
+            colour = theme_hash_attrs(from);
+        }
+
         if (flags & NO_COLOUR_FROM) {
             colour = 0;
         }
p;id=ee9a9237d6324f1de1bb7150083eacf7b9af5f70'>ee9a9237 ^
33352536 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
71eb22a5 ^
33352536 ^




7dac9ade ^
871d2227 ^
71eb22a5 ^
7a583220 ^
33352536 ^

cdfb2dbf ^
33352536 ^

c98d4b1c ^
33352536 ^
686a52bd ^
f75f333f ^
33352536 ^
7dac9ade ^
33352536 ^


71eb22a5 ^
33352536 ^
71eb22a5 ^
33352536 ^

cf02c20b ^
cdfb2dbf ^
33352536 ^

7a583220 ^
33352536 ^

6030d7e2 ^
871d2227 ^

e5cbbea4 ^
871d2227 ^
f1eade72 ^
6030d7e2 ^
9b16f190 ^
686a52bd ^
6030d7e2 ^
9b16f190 ^
6030d7e2 ^
9b16f190 ^
6030d7e2 ^
9b16f190 ^
6030d7e2 ^
9b16f190 ^
6030d7e2 ^
9b16f190 ^
871d2227 ^
ee9a9237 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88