From 8e72264916f5ce023a5d0a56cc4a7a384191b08f Mon Sep 17 00:00:00 2001 From: stkhan Date: Sat, 5 Jun 2021 22:41:19 +0000 Subject: Added more configuration in theme files --- st/boxdraw.o | Bin 7728 -> 0 bytes st/config.h | 30 ++++-------------------------- st/hb.o | Bin 4592 -> 0 bytes st/st | Bin 120816 -> 0 bytes st/st.o | Bin 79496 -> 0 bytes st/x.o | Bin 87784 -> 0 bytes themes/theme.h | 41 +++++++++++++++++++++++++++++++++++++++-- themes/themes/blue | 35 +++++++++++++++++++++++++++++++++++ themes/themes/default | 34 ++++++++++++++++++++++++++++++++++ themes/themes/dracula | 37 +++++++++++++++++++++++++++++++++++++ themes/themes/green | 34 ++++++++++++++++++++++++++++++++++ themes/themes/nord | 38 ++++++++++++++++++++++++++++++++++++++ themes/themes/purple | 35 +++++++++++++++++++++++++++++++++++ themes/themes/red | 34 ++++++++++++++++++++++++++++++++++ 14 files changed, 290 insertions(+), 28 deletions(-) delete mode 100644 st/boxdraw.o delete mode 100644 st/hb.o delete mode 100755 st/st delete mode 100644 st/st.o delete mode 100644 st/x.o diff --git a/st/boxdraw.o b/st/boxdraw.o deleted file mode 100644 index 3080fdc..0000000 Binary files a/st/boxdraw.o and /dev/null differ diff --git a/st/config.h b/st/config.h index 8d67a8d..0669220 100644 --- a/st/config.h +++ b/st/config.h @@ -1,3 +1,5 @@ +#include "../themes/theme.h" + /* See LICENSE file for copyright and license details. */ /* @@ -156,32 +158,8 @@ static unsigned int defaultattr = 11; * modifier, set to 0 to not use it. */ static uint forcemousemod = ShiftMask; -float alpha = 0.6; - -static const char *colorname[] = { - "#282828", /* hard contrast: #1d2021 / soft contrast: #32302f */ - "#a80600", - "#06b500", - "#d79921", - "#042e88", - "#b16286", - "#689d6a", - "#a89984", - "#928374", - "#fb4934", - "#55ff4f", - "#fabd2f", - "#83a598", - "#d3869b", - "#8ec07c", - "#ebdbb2", - [255] = 0, - /* more colors can be added after 255 to use with DefaultXX */ - "#cfcfcf", /* 256 -> cursor */ - "#555555", /* 257 -> rev cursor*/ - "#000000", /* 258 -> bg */ - "#cfcfcf", /* 259 -> fg */ -}; + + /* * Xresources preferences to load at startup */ diff --git a/st/hb.o b/st/hb.o deleted file mode 100644 index 346d766..0000000 Binary files a/st/hb.o and /dev/null differ diff --git a/st/st b/st/st deleted file mode 100755 index f5c7ccf..0000000 Binary files a/st/st and /dev/null differ diff --git a/st/st.o b/st/st.o deleted file mode 100644 index 095c6ed..0000000 Binary files a/st/st.o and /dev/null differ diff --git a/st/x.o b/st/x.o deleted file mode 100644 index c6348a1..0000000 Binary files a/st/x.o and /dev/null differ diff --git a/themes/theme.h b/themes/theme.h index dfca57e..f7353de 100644 --- a/themes/theme.h +++ b/themes/theme.h @@ -6,11 +6,48 @@ /* primary color */ -static const char col_cyan[] = "#0a0063"; +static const char col_cyan[] = "#6272a4"; /* secondary colors */ -static const char col_gray1[] = "#222222"; +static const char col_gray1[] = "#282a36"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; + +/* st config */ + +float alpha = 0.9; + + +static const char *colorname[] = { + /* 8 normal colors */ + "#000000", + "#ff5555", + "#50fa7b", + "#f1fa8c", + "#bd93f9", + "#ff79c6", + "#8be9fd", + "#bfbfbf", + + /* 8 bright colors */ + "#4d4d4d", + "#ff6e67", + "#5af78e", + "#f4f99d", + "#caa9fa", + "#ff92d0", + "#9aedfe", + "#e6e6e6", + + [255] = 0, + + /* more colors can be added after 255 to use with DefaultXX */ + "#cccccc", + "#555555", + "#282a36", /* 258 -> bg */ + "#f8f8f2", /* 259 -> fg */ +}; + + diff --git a/themes/themes/blue b/themes/themes/blue index dfca57e..648208b 100644 --- a/themes/themes/blue +++ b/themes/themes/blue @@ -14,3 +14,38 @@ static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; + +/* st config */ + +float alpha = 0.6; + + +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", + "#000000", /* 258 -> bg */ + "#cfcfcf", /* 259 -> fg */ +}; diff --git a/themes/themes/default b/themes/themes/default index 641ce27..b81f7bd 100644 --- a/themes/themes/default +++ b/themes/themes/default @@ -14,3 +14,37 @@ static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#005577"; + +/* st config */ + +float alpha = 0.6; + +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", + "#000000", /* 258 -> bg */ + "#cfcfcf", /* 259 -> fg */ +}; diff --git a/themes/themes/dracula b/themes/themes/dracula index f4ad3e3..f7353de 100644 --- a/themes/themes/dracula +++ b/themes/themes/dracula @@ -14,3 +14,40 @@ static const char col_gray1[] = "#282a36"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; + +/* st config */ + +float alpha = 0.9; + + +static const char *colorname[] = { + /* 8 normal colors */ + "#000000", + "#ff5555", + "#50fa7b", + "#f1fa8c", + "#bd93f9", + "#ff79c6", + "#8be9fd", + "#bfbfbf", + + /* 8 bright colors */ + "#4d4d4d", + "#ff6e67", + "#5af78e", + "#f4f99d", + "#caa9fa", + "#ff92d0", + "#9aedfe", + "#e6e6e6", + + [255] = 0, + + /* more colors can be added after 255 to use with DefaultXX */ + "#cccccc", + "#555555", + "#282a36", /* 258 -> bg */ + "#f8f8f2", /* 259 -> fg */ +}; + + diff --git a/themes/themes/green b/themes/themes/green index b2df992..1c182f6 100644 --- a/themes/themes/green +++ b/themes/themes/green @@ -14,3 +14,37 @@ static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; + +/* st config */ + +float alpha = 0.6; + +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", + "#000000", /* 258 -> bg */ + "#cfcfcf", /* 259 -> fg */ +}; diff --git a/themes/themes/nord b/themes/themes/nord index ae77542..25fb5b0 100644 --- a/themes/themes/nord +++ b/themes/themes/nord @@ -14,3 +14,41 @@ static const char col_gray1[] = "#2e3440"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; + +/* st config */ + +float alpha = 0.9; + +static const char *colorname[] = { + + /* 8 normal colors */ + + "#3b4252", /* black */ + "#bf616a", /* red */ + "#a3be8c", /* green */ + "#ebcb8b", /* yellow */ + "#81a1c1", /* blue */ + "#b48ead", /* magenta */ + "#88c0d0", /* cyan */ + "#e5e9f0", /* white */ + + /* 8 bright colors */ + + "#4c566a", /* black */ + "#bf616a", /* red */ + "#a3be8c", /* green */ + "#ebcb8b", /* yellow */ + "#81a1c1", /* blue */ + "#b48ead", /* magenta */ + "#8fbcbb", /* cyan */ + "#eceff4", /* white */ + + [255] = 0, + + /* more colors can be added after 255 to use with DefaultXX */ + + "#cccccc", + "#555555", + "#2e3440", /* background */ + "#d8dee9", /* foreground */ + }; diff --git a/themes/themes/purple b/themes/themes/purple index 162087c..c2e1c75 100644 --- a/themes/themes/purple +++ b/themes/themes/purple @@ -14,3 +14,38 @@ static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; + + +/* st config */ + +float alpha = 0.6; + +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", + "#000000", /* 258 -> bg */ + "#cfcfcf", /* 259 -> fg */ +}; diff --git a/themes/themes/red b/themes/themes/red index 6a861e5..e46a25c 100644 --- a/themes/themes/red +++ b/themes/themes/red @@ -14,3 +14,37 @@ static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; + +/* st config */ + +float alpha = 0.6; + +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", + "#000000", /* 258 -> bg */ + "#cfcfcf", /* 259 -> fg */ +}; -- cgit v1.2.3