about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-11-17 21:10:08 +0000
committerJames Booth <boothj5@gmail.com>2014-11-17 21:10:08 +0000
commit1d5ac1b4742bbd782a43da02a01f7e50476022b4 (patch)
treecd179cf541601d7b83dc8237968ecf32513caa16 /src/ui
parent74d99375730f3be30ed8070c84148c6c1902ad7c (diff)
downloadprofani-tty-1d5ac1b4742bbd782a43da02a01f7e50476022b4.tar.gz
Added /theme colours command
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c37
-rw-r--r--src/ui/ui.h1
2 files changed, 38 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 32f040e0..9d397268 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1480,6 +1480,42 @@ _cons_alert(void)
 }
 
 static void
+_cons_theme_colours(void)
+{
+    /*
+     *     { "default", -1 },
+    { "white", COLOR_WHITE },
+    { "green", COLOR_GREEN },
+    { "red", COLOR_RED },
+    { "yellow", COLOR_YELLOW },
+    { "blue", COLOR_BLUE },
+    { "cyan", COLOR_CYAN },
+    { "black", COLOR_BLACK },
+    { "magenta", COLOR_MAGENTA },
+
+     */
+
+    ProfWin *console = wins_get_console();
+    cons_show("Theme colours:");
+    win_save_print(console, '-', NULL, NO_EOL, THEME_WHITE, "",         " white   ");
+    win_save_print(console, '-', NULL, NO_DATE, THEME_WHITE_BOLD, "",   " bold_white");
+    win_save_print(console, '-', NULL, NO_EOL, THEME_GREEN, "",         " green   ");
+    win_save_print(console, '-', NULL, NO_DATE, THEME_GREEN_BOLD, "",   " bold_green");
+    win_save_print(console, '-', NULL, NO_EOL, THEME_RED, "",           " red     ");
+    win_save_print(console, '-', NULL, NO_DATE, THEME_RED_BOLD, "",     " bold_red");
+    win_save_print(console, '-', NULL, NO_EOL, THEME_YELLOW, "",        " yellow  ");
+    win_save_print(console, '-', NULL, NO_DATE, THEME_YELLOW_BOLD, "",  " bold_yellow");
+    win_save_print(console, '-', NULL, NO_EOL, THEME_BLUE, "",          " blue    ");
+    win_save_print(console, '-', NULL, NO_DATE, THEME_BLUE_BOLD, "",    " bold_blue");
+    win_save_print(console, '-', NULL, NO_EOL, THEME_CYAN, "",          " cyan    ");
+    win_save_print(console, '-', NULL, NO_DATE, THEME_CYAN_BOLD, "",    " bold_cyan");
+    win_save_print(console, '-', NULL, NO_EOL, THEME_MAGENTA, "",       " magenta ");
+    win_save_print(console, '-', NULL, NO_DATE, THEME_MAGENTA_BOLD, "", " bold_magenta");
+    win_save_print(console, '-', NULL, NO_EOL, THEME_BLACK, "",         " black   ");
+    win_save_print(console, '-', NULL, NO_DATE, THEME_BLACK_BOLD, "",   " bold_black");
+}
+
+static void
 _cons_splash_logo(void)
 {
     ProfWin *console = wins_get_console();
@@ -1651,4 +1687,5 @@ console_init_module(void)
     cons_show_contact_online = _cons_show_contact_online;
     cons_show_contact_offline = _cons_show_contact_offline;
     cons_show_aliases = _cons_show_aliases;
+    cons_theme_colours = _cons_theme_colours;
 }
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 3f8ed7ca..2b74f38c 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -325,6 +325,7 @@ void (*cons_priority_setting)(void);
 void (*cons_autoconnect_setting)(void);
 void (*cons_show_contact_online)(PContact contact, Resource *resource, GDateTime *last_activity);
 void (*cons_show_contact_offline)(PContact contact, char *resource, char *status);
+void (*cons_theme_colours)(void);
 
 // desktop notifier actions
 void (*notifier_uninit)(void);