diff options
author | explosion-mental <explosion0mental@gmail.com> | 2023-03-16 05:32:20 +0100 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2023-06-23 18:08:51 +0200 |
commit | 3097037624881791cc544d0d0dab384a2af43bf6 (patch) | |
tree | d6cfbd255a5b13dd110f7949933a26898b834a5b /config.def.h | |
parent | 28018e92d3e2fa47d58a216bab489cbd81d8e974 (diff) | |
download | nsxiv-3097037624881791cc544d0d0dab384a2af43bf6.tar.zst |
make xresources class name configurable in config.h
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h index 5d4e97a..c49a5eb 100644 --- a/config.def.h +++ b/config.def.h @@ -6,14 +6,14 @@ static const int WIN_HEIGHT = 600; /* colors and font can be overwritten via X resource properties. * See nsxiv(1), X(7) section Resources and xrdb(1) for more information. - */ -static const char *DEFAULT_WIN_BG = "white"; -static const char *DEFAULT_WIN_FG = "black"; -static const char *DEFAULT_MARK_COLOR = NULL; /* NULL means it will default to window foreground */ + * X resource default value */ +static const char *WIN_BG[] = { "Nsxiv.window.background", "white" }; +static const char *WIN_FG[] = { "Nsxiv.window.foreground", "black" }; +static const char *MARK_FG[] = { "Nsxiv.mark.foreground", NULL }; /* NULL means it will default to window foreground */ #if HAVE_LIBFONTS -static const char *DEFAULT_BAR_BG = NULL; /* NULL means it will default to window background */ -static const char *DEFAULT_BAR_FG = NULL; /* NULL means it will default to window foreground */ -static const char *DEFAULT_FONT = "monospace-8"; +static const char *BAR_BG[] = { "Nsxiv.bar.background", NULL }; /* NULL means it will default to window background */ +static const char *BAR_FG[] = { "Nsxiv.bar.foreground", NULL }; /* NULL means it will default to window foreground */ +static const char *BAR_FONT[] = { "Nsxiv.bar.font", "monospace-8" }; /* if true, statusbar appears on top of the window */ static const bool TOP_STATUSBAR = false; |