1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Merge pull request #1674 from paulfertser/allow-bold-for-default-colours

Allow bold for default colours
This commit is contained in:
Michael Vetter 2022-04-04 23:38:31 +02:00 committed by GitHub
commit db154f226e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -666,20 +666,21 @@ theme_get_bkgnd(void)
static void
_theme_prep_fgnd(char* setting, GString* lookup_str, gboolean* bold)
{
gchar* val = g_key_file_get_string(theme, "colours", setting, NULL);
if (!val) {
char* def = g_hash_table_lookup(defaults, setting);
g_string_append(lookup_str, def);
gchar* conf_str = g_key_file_get_string(theme, "colours", setting, NULL);
gchar* val = conf_str;
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 {
if (g_str_has_prefix(val, "bold_")) {
g_string_append(lookup_str, &val[5]);
*bold = TRUE;
} else {
g_string_append(lookup_str, val);
*bold = FALSE;
}
g_string_append(lookup_str, val);
*bold = FALSE;
}
g_free(val);
g_free(conf_str);
}
char*