diff options
| author | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2021-12-19 19:56:13 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2021-12-19 19:56:13 -0500 |
| commit | 7d3bbd5e04685934acef976f1b4258e86a394fa5 (patch) | |
| tree | 729471366186b4aac60c8e95afed2f7efd9ab9a6 /config.def.h | |
| parent | 4c9b7b419f9fa49f8685d0e86744aee32427acee (diff) | |
| download | dmenu-7d3bbd5e04685934acef976f1b4258e86a394fa5.tar.gz | |
Applied alpha patch
https://tools.suckless.org/dmenu/patches/alpha/
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index cfff3e4..5f405ea 100644 --- a/config.def.h +++ b/config.def.h @@ -2,6 +2,7 @@ /* Default settings; can be overriden by command line. */ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ +static const unsigned int alpha = 0xf0; static int centered = 0; /* -c option; centers dmenu on screen */ static int min_width = 500; /* minimum width when centered */ /* -fn option overrides fonts[0]; default X11 font or font set */ @@ -15,6 +16,13 @@ static const char *colors[SchemeLast][2] = { [SchemeSel] = { "#eeeeee", "#005577" }, [SchemeOut] = { "#000000", "#00ffff" }, }; + +static const unsigned int alphas[SchemeLast][2] = { + [SchemeNorm] = { OPAQUE, alpha }, + [SchemeSel] = { OPAQUE, alpha }, + [SchemeOut] = { OPAQUE, alpha }, +}; + /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0; |