about summary refs log tree commit diff
path: root/config.h
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-13 14:32:27 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-13 14:32:27 +0200
commit03e59e72baf1c43ce6c773d831d78535348f6410 (patch)
treeebea718617b67d6195cd8b771c697e2af45207fa /config.h
parentFixed a line in the opacity patch (diff)
downloaddmenu-03e59e72baf1c43ce6c773d831d78535348f6410.tar.gz
dmenu-03e59e72baf1c43ce6c773d831d78535348f6410.tar.bz2
dmenu-03e59e72baf1c43ce6c773d831d78535348f6410.zip
Revamped opacity patch
Diffstat (limited to 'config.h')
-rw-r--r--config.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/config.h b/config.h
index 7e7ab67..351f762 100644
--- a/config.h
+++ b/config.h
@@ -20,13 +20,21 @@ static const char col_cyan[]        = "#005577";
 static const char col_black[]       = "#000000";
 static const char col_aqua[]        = "#00ffff";
 
-static double opacity = 1.0;         /* -o  option; 0 being transparent and 1 being opaque */
+static const unsigned int baralpha = 0xd0;
+static const unsigned int borderalpha = OPAQUE;
 
 static const char *colors[SchemeLast][2] = {
-	/*                  fg          bg    */
+	/*                  fg          bg   */
 	[SchemeNorm] = { col_gray3,  col_gray1},
-	[SchemeSel] =  { col_gray4,  col_cyan },
-	[SchemeOut] =  { col_black,  col_aqua },
+	[SchemeSel]  = { col_gray4,  col_cyan },
+	[SchemeOut]  = { col_black,  col_aqua },
+};
+
+static const unsigned int alphas[][2]      = {
+	/*                 fg       bg    */
+	[SchemeNorm] = { OPAQUE, baralpha },
+	[SchemeSel]  = { OPAQUE, baralpha },
+	[SchemeOut]  = { OPAQUE, baralpha },
 };
 /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
 static unsigned int lines      = 0;