Show theme colour value

This commit is contained in:
James Booth
2016-01-21 02:00:12 +00:00
parent 6b65a9be15
commit 37171fe692
4 changed files with 106 additions and 85 deletions

View File

@@ -557,6 +557,20 @@ _theme_prep_fgnd(char *setting, char *def, GString *lookup_str, gboolean *bold)
g_free(val);
}
char*
theme_get_string(char *str)
{
return g_key_file_get_string(theme, "colours", str, NULL);
}
void
theme_free_string(char *str)
{
if (str) {
g_free(str);
}
}
int
theme_attrs(theme_item_t attrs)
{