about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-12 10:14:55 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-12 10:14:55 +0200
commit50b4c5b7d891b9597d42c9d0299dedf714c2f4e9 (patch)
treeb575383d3d1f36d22b8ac3ed91e586344c275264
parentAdded more extensive X window info [Patch] (diff)
downloaddmenu-50b4c5b7d891b9597d42c9d0299dedf714c2f4e9.tar.gz
dmenu-50b4c5b7d891b9597d42c9d0299dedf714c2f4e9.tar.bz2
dmenu-50b4c5b7d891b9597d42c9d0299dedf714c2f4e9.zip
Added easier color switching
-rw-r--r--config.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/config.h b/config.h
index b664617..11d6688 100644
--- a/config.h
+++ b/config.h
@@ -7,11 +7,20 @@ static const char *fonts[] = {
 	"Noto Sans Display Nerd Font:size=10"
 };
 static const char *prompt      = NULL;      /* -p  option; prompt to the left of input field */
+
+static const char col_gray1[]       = "#222222";
+static const char col_gray2[]       = "#444444";
+static const char col_gray3[]       = "#bbbbbb";
+static const char col_gray4[]       = "#eeeeee";
+static const char col_cyan[]        = "#005577";
+static const char col_black[]       = "#000000";
+static const char col_aqua[]        = "#00ffff";
+
 static const char *colors[SchemeLast][2] = {
-	/*     fg         bg       */
-	[SchemeNorm] = { "#bbbbbb", "#222222" },
-	[SchemeSel] = { "#eeeeee", "#005577" },
-	[SchemeOut] = { "#000000", "#00ffff" },
+	/*                  fg          bg    */
+	[SchemeNorm] = { col_gray3,  col_gray1},
+	[SchemeSel] =  { col_gray4,  col_cyan },
+	[SchemeOut] =  { col_black,  col_aqua },
 };
 /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
 static unsigned int lines      = 0;