From 40907efc06544720bc5fd0b0948c51984546a642 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Sat, 26 Mar 2022 05:45:26 +0000 Subject: [PATCH] move theme to theme folder --- config.h | 41 ++--------------------------------------- themes/default.h | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 39 deletions(-) create mode 100644 themes/default.h diff --git a/config.h b/config.h index 5705f8e..b4a569f 100644 --- a/config.h +++ b/config.h @@ -95,45 +95,8 @@ char *termname = "st-256color"; */ unsigned int tabspaces = 8; -/* Terminal colors (16 first used in escape sequence) */ -static const char *colorname[] = { - /* 8 normal colors */ - "black", - "red3", - "green3", - "yellow3", - "blue2", - "magenta3", - "cyan3", - "gray90", - - /* 8 bright colors */ - "gray50", - "red", - "green", - "yellow", - "#5c5cff", - "magenta", - "cyan", - "white", - - [255] = 0, - - /* more colors can be added after 255 to use with DefaultXX */ - "#cccccc", - "#555555", - "#140328", -}; - - -/* - * Default colors (colorname index) - * foreground, background, cursor, reverse cursor - */ -unsigned int defaultfg = 7; -unsigned int defaultbg = 258; -unsigned int defaultcs = 256; -static unsigned int defaultrcs = 257; +// theme +#include "themes/default.h" /* * Default shape of cursor diff --git a/themes/default.h b/themes/default.h new file mode 100644 index 0000000..a1256cc --- /dev/null +++ b/themes/default.h @@ -0,0 +1,39 @@ +/* Terminal colors (16 first used in escape sequence) */ +static const char *colorname[] = { + /* 8 normal colors */ + "black", + "red3", + "green3", + "yellow3", + "blue2", + "magenta3", + "cyan3", + "gray90", + + /* 8 bright colors */ + "gray50", + "red", + "green", + "yellow", + "#5c5cff", + "magenta", + "cyan", + "white", + + [255] = 0, + + /* more colors can be added after 255 to use with DefaultXX */ + "#cccccc", + "#555555", + "#140328", +}; + + +/* + * Default colors (colorname index) + * foreground, background, cursor, reverse cursor + */ +unsigned int defaultfg = 7; +unsigned int defaultbg = 258; +unsigned int defaultcs = 256; +static unsigned int defaultrcs = 257;