summaryrefslogtreecommitdiffstats
path: root/sxiv.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2019-01-23 21:18:12 +0100
committerBert Münnich <ber.t@posteo.de>2019-01-23 21:21:15 +0100
commit919ada11232781e3624363d834a6b9851c3a2bcb (patch)
tree517183d4f22c0047ff9841b0c42e30fc6312924b /sxiv.h
parent9d244da5124bf13046a4f9606b616ab1d8244e0e (diff)
downloadnsxiv-919ada11232781e3624363d834a6b9851c3a2bcb.tar.zst
Align compile-time color options with X resource colors
Two colors are more than enough!
Diffstat (limited to 'sxiv.h')
-rw-r--r--sxiv.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/sxiv.h b/sxiv.h
index 757674e..140132f 100644
--- a/sxiv.h
+++ b/sxiv.h
@@ -408,9 +408,10 @@ struct win {
Window xwin;
win_env_t env;
- XftColor bgcol;
- XftColor fscol;
- XftColor selcol;
+ bool light; /* bg is lighter than fg */
+ XftColor bg;
+ XftColor fg;
+ XftColor black;
int x;
int y;
@@ -430,8 +431,6 @@ struct win {
unsigned int h;
win_bar_t l;
win_bar_t r;
- XftColor bgcol;
- XftColor fgcol;
} bar;
};