aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorArthur Williams <taaparthur@gmail.com>2021-10-09 21:04:08 +0200
committerNRK <nrk@disroot.org>2021-10-29 08:53:49 +0200
commit8934744c60a3ef34eb65a6082d59da8ad2234d6c (patch)
tree6c436959a7cd35459055204009ec2c71c0526cf2 /config.def.h
parent850bc788c3fd4bb96f425ceedfe4237754cabe46 (diff)
downloadnsxiv-8934744c60a3ef34eb65a6082d59da8ad2234d6c.tar.zst
Add colors and fonts to config.h (#115)
Adds a set of config vars to control window fg/bg, bar fg/bg, mark color and bar font. This allows everything that can be done from .Xresources to be configurable from config.h. Co-authored-by: N-R-K <79544946+N-R-K@users.noreply.github.com>
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 1085a39..75c5eed 100644
--- a/config.def.h
+++ b/config.def.h
@@ -4,9 +4,17 @@
static const int WIN_WIDTH = 800;
static const int WIN_HEIGHT = 600;
-/* colors and font are configured via X resource properties.
+/* 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 */
+#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";
+#endif
#endif
#ifdef _TITLE_CONFIG