mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Allow bold for default colours
This commit is contained in:
parent
cef0c5e927
commit
4217105ff0
@ -663,20 +663,21 @@ theme_get_bkgnd(void)
|
|||||||
static void
|
static void
|
||||||
_theme_prep_fgnd(char* setting, GString* lookup_str, gboolean* bold)
|
_theme_prep_fgnd(char* setting, GString* lookup_str, gboolean* bold)
|
||||||
{
|
{
|
||||||
gchar* val = g_key_file_get_string(theme, "colours", setting, NULL);
|
gchar* conf_str = g_key_file_get_string(theme, "colours", setting, NULL);
|
||||||
if (!val) {
|
gchar* val = conf_str;
|
||||||
char* def = g_hash_table_lookup(defaults, setting);
|
|
||||||
g_string_append(lookup_str, def);
|
if (!val)
|
||||||
|
val = g_hash_table_lookup(defaults, setting);
|
||||||
|
|
||||||
|
if (g_str_has_prefix(val, "bold_")) {
|
||||||
|
g_string_append(lookup_str, &val[5]);
|
||||||
|
*bold = TRUE;
|
||||||
} else {
|
} else {
|
||||||
if (g_str_has_prefix(val, "bold_")) {
|
g_string_append(lookup_str, val);
|
||||||
g_string_append(lookup_str, &val[5]);
|
*bold = FALSE;
|
||||||
*bold = TRUE;
|
|
||||||
} else {
|
|
||||||
g_string_append(lookup_str, val);
|
|
||||||
*bold = FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
g_free(val);
|
|
||||||
|
g_free(conf_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
char*
|
char*
|
||||||
|
Loading…
Reference in New Issue
Block a user