about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-23 21:47:23 +0000
committerJames Booth <boothj5@gmail.com>2016-01-23 21:47:23 +0000
commit6ec3f71a5450c81a10d699fb6df67d19119f8ac8 (patch)
tree749d77ca989508a79d1cc619254511e9f0e25370 /src
parent3666eb4fd7709d927de0dbdfc827c39d4ba39ca1 (diff)
downloadprofani-tty-6ec3f71a5450c81a10d699fb6df67d19119f8ac8.tar.gz
Pad theme settings
Diffstat (limited to 'src')
-rw-r--r--src/ui/console.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index e087ae79..a25e55df 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -2012,7 +2012,7 @@ _cons_theme_bar_prop(theme_item_t theme, char *prop)
     ProfWin *console = wins_get_console();
     GString *str = g_string_new(" ");
     char *setting = theme_get_string(prop);
-    g_string_append_printf(str, "%s=%s ", prop, setting);
+    g_string_append_printf(str, "%-24s%s ", prop, setting);
     theme_free_string(setting);
     win_print(console, '-', 0, NULL, NO_EOL, theme, "", str->str);
     win_print(console, '-', 0, NULL, NO_DATE, THEME_TEXT, "", "");
@@ -2023,9 +2023,9 @@ void
 _cons_theme_prop(theme_item_t theme, char *prop)
 {
     ProfWin *console = wins_get_console();
-    GString *str = g_string_new(prop);
+    GString *str = g_string_new(" ");
     char *setting = theme_get_string(prop);
-    g_string_append_printf(str, "=%s", setting);
+    g_string_append_printf(str, "%-24s%s", prop, setting);
     theme_free_string(setting);
     win_print(console, '-', 0, NULL, 0, theme, "", str->str);
     g_string_free(str, TRUE);
@@ -2034,6 +2034,7 @@ _cons_theme_prop(theme_item_t theme, char *prop)
 void
 cons_theme_properties(void)
 {
+    cons_show("Current colours:");
     _cons_theme_bar_prop(THEME_TITLE_TEXT, "titlebar.text");
     _cons_theme_bar_prop(THEME_TITLE_BRACKET, "titlebar.brackets");
 
@@ -2133,7 +2134,7 @@ cons_theme_colours(void)
      */
 
     ProfWin *console = wins_get_console();
-    cons_show("Theme colours:");
+    cons_show("Available colours:");
     win_print(console, '-', 0, NULL, NO_EOL, THEME_WHITE, "",         " white   ");
     win_print(console, '-', 0, NULL, NO_DATE, THEME_WHITE_BOLD, "",   " bold_white");
     win_print(console, '-', 0, NULL, NO_EOL, THEME_GREEN, "",         " green   ");