diff options
author | James Booth <boothj5@gmail.com> | 2016-01-21 00:50:55 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-21 00:50:55 +0000 |
commit | adb470c454338fd6e52528c22d44a26eb246732d (patch) | |
tree | b64c8b82726188c43de574b509aea5788291be6e /src/command | |
parent | 5bccee93cc0c8c2426d5f5acc462dca15467cb08 (diff) | |
download | profani-tty-adb470c454338fd6e52528c22d44a26eb246732d.tar.gz |
WIP: Add /theme properties command
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/command.c | 7 | ||||
-rw-r--r-- | src/command/commands.c | 2 |
2 files changed, 7 insertions, 2 deletions
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>", - "/theme colours") + "/theme colours", + "/theme properties") CMD_DESC( "Load a theme, includes colours and UI options.") CMD_ARGS( { "list", "List all available themes." }, { "load <theme>", "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); } |