From adb470c454338fd6e52528c22d44a26eb246732d Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 21 Jan 2016 00:50:55 +0000 Subject: WIP: Add /theme properties command --- src/command/command.c | 7 +++++-- src/command/commands.c | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/command') diff --git a/src/command/command.c b/src/command/command.c index 8bda6d4b..3f4e4a7d 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1727,13 +1727,15 @@ static struct cmd_t command_defs[] = CMD_SYN( "/theme list", "/theme load ", - "/theme colours") + "/theme colours", + "/theme properties") CMD_DESC( "Load a theme, includes colours and UI options.") CMD_ARGS( { "list", "List all available themes." }, { "load ", "Load the specified theme. 'default' will reset to the default theme." }, - { "colours", "Show the colour values as rendered by the terminal." }) + { "colours", "Show the colour values as rendered by the terminal." }, + { "properties", "Show each themed property." }) CMD_EXAMPLES( "/theme list", "/theme load forest") @@ -2106,6 +2108,7 @@ cmd_init(void) autocomplete_add(theme_ac, "load"); autocomplete_add(theme_ac, "list"); autocomplete_add(theme_ac, "colours"); + autocomplete_add(theme_ac, "properties"); disco_ac = autocomplete_new(); autocomplete_add(disco_ac, "info"); diff --git a/src/command/commands.c b/src/command/commands.c index ba84b4bc..7679acb4 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1401,6 +1401,8 @@ cmd_theme(ProfWin *window, const char *const command, gchar **args) // show colours } else if (g_strcmp0(args[0], "colours") == 0) { cons_theme_colours(); + } else if (g_strcmp0(args[0], "properties") == 0) { + cons_theme_properties(); } else { cons_bad_cmd_usage(command); } -- cgit 1.4.1-2-gfad0