From a2ac0f921d6a9b33d0e70449ca2160c6ffc06855 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 29 Oct 2023 20:15:41 +0530 Subject: applied alpha patch --- config.def.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index f49c9d3..37a5b96 100644 --- a/config.def.h +++ b/config.def.h @@ -1,9 +1,10 @@ /* See LICENSE file for copyright and license details. */ /* Default settings; can be overriden by command line. */ +static const unsigned int alpha = 0x80; /* Amount of opacity. 0xff is opaque */ static int topbar = 0; /* -b option; if 0, dmenu appears at bottom */ static int centered = 1; /* -c option; centers dmenu on screen */ -static int min_width = 600; /* minimum width when centered */ +static int min_width = 500; /* minimum width when centered */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { "Sauce Code Pro:size=11" @@ -11,18 +12,29 @@ static const char *fonts[] = { static const char *prompt = "RUN: ";//NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { /* fg bg */ - [SchemeNorm] = { "#cccccc", "#282c34" }, + //[SchemeNorm] = { "#cccccc", "#282c34" }, + [SchemeNorm] = { "#cccccc", "#0e0911" }, [SchemeSel] = { "#1c1f24", "#c678dd" }, [SchemeSelHighlight] = { "#000000", "#51afef" }, [SchemeNormHighlight] = { "#000000", "#51afef" }, //[SchemeMid] = { "#000000", "#51afef" }, - [SchemeMid] = { "#cccccc", "#282c34" }, + //[SchemeMid] = { "#cccccc", "#282c34" }, + [SchemeMid] = { "#cccccc", "#0e0911" }, [SchemeOut] = { "#d7d7d7", "#1c1f24" }, }; +static const unsigned int alphas[SchemeLast][2] = { + [SchemeNorm] = { OPAQUE, alpha }, + [SchemeSel] = { OPAQUE, OPAQUE }, + [SchemeSelHighlight] = { OPAQUE, OPAQUE }, + [SchemeNormHighlight] = { OPAQUE, OPAQUE }, + [SchemeMid] = { OPAQUE, OPAQUE }, + [SchemeOut] = { OPAQUE, OPAQUE }, +}; + /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 12; -static unsigned int columns = 3; +static unsigned int columns = 1; /* -h option; minimum height of a menu line */ static unsigned int lineheight = 24; static unsigned int min_lineheight = 24; -- cgit v1.2.3