mirror of
https://github.com/mintycube/dmenu.git
synced 2024-10-22 12:05:48 +00:00
Adding morecolor patch
This commit is contained in:
parent
478f49b1c4
commit
841a0cff2b
@ -15,7 +15,7 @@ Refer to [https://tools.suckless.org/dmenu/](https://tools.suckless.org/dmenu/)
|
|||||||
|
|
||||||
### Changelog:
|
### Changelog:
|
||||||
|
|
||||||
2020-08-08 - Added the symbols, managed and preselect patches
|
2020-08-08 - Added the symbols, managed, morecolor and preselect patches
|
||||||
|
|
||||||
2020-08-05 - Added the grid, highlight, highpriority, dynamic options and numbers patches
|
2020-08-05 - Added the grid, highlight, highpriority, dynamic options and numbers patches
|
||||||
|
|
||||||
@ -89,6 +89,9 @@ Refer to [https://tools.suckless.org/dmenu/](https://tools.suckless.org/dmenu/)
|
|||||||
- adds a `-wm` flag which sets override_redirect to false; thus letting your window manager manage the dmenu window
|
- adds a `-wm` flag which sets override_redirect to false; thus letting your window manager manage the dmenu window
|
||||||
- this may be helpful in contexts where you don't want to exclusively bind dmenu or want to treat dmenu more as a "window" rather than as an overlay
|
- this may be helpful in contexts where you don't want to exclusively bind dmenu or want to treat dmenu more as a "window" rather than as an overlay
|
||||||
|
|
||||||
|
- [morecolor](https://tools.suckless.org/dmenu/patches/morecolor/)
|
||||||
|
- adds an additional color scheme for highlighting entries adjacent to the current selection
|
||||||
|
|
||||||
- [mouse-support](https://tools.suckless.org/dmenu/patches/mouse-support/)
|
- [mouse-support](https://tools.suckless.org/dmenu/patches/mouse-support/)
|
||||||
- adds basic mouse support for dmenu
|
- adds basic mouse support for dmenu
|
||||||
|
|
||||||
@ -119,7 +122,6 @@ Refer to [https://tools.suckless.org/dmenu/](https://tools.suckless.org/dmenu/)
|
|||||||
|
|
||||||
- [preselect](https://tools.suckless.org/dmenu/patches/preselect/)
|
- [preselect](https://tools.suckless.org/dmenu/patches/preselect/)
|
||||||
- adds an option `-ps` to preselect an item by providing the index that should be pre-selected
|
- adds an option `-ps` to preselect an item by providing the index that should be pre-selected
|
||||||
*
|
|
||||||
|
|
||||||
- [printinputtext](https://tools.suckless.org/dmenu/patches/printinputtext/)
|
- [printinputtext](https://tools.suckless.org/dmenu/patches/printinputtext/)
|
||||||
- this patch adds a flag (-t) which makes Return key ignore selection and print the input text to stdout
|
- this patch adds a flag (-t) which makes Return key ignore selection and print the input text to stdout
|
||||||
|
@ -64,6 +64,9 @@ static const char *colors[][2] =
|
|||||||
[SchemeNorm] = { "#bbbbbb", "#222222" },
|
[SchemeNorm] = { "#bbbbbb", "#222222" },
|
||||||
[SchemeSel] = { "#eeeeee", "#005577" },
|
[SchemeSel] = { "#eeeeee", "#005577" },
|
||||||
[SchemeOut] = { "#000000", "#00ffff" },
|
[SchemeOut] = { "#000000", "#00ffff" },
|
||||||
|
#if MORECOLOR_PATCH
|
||||||
|
[SchemeMid] = { "#eeeeee", "#770000" },
|
||||||
|
#endif // MORECOLOR_PATCH
|
||||||
#if HIGHLIGHT_PATCH || FUZZYHIGHLIGHT_PATCH
|
#if HIGHLIGHT_PATCH || FUZZYHIGHLIGHT_PATCH
|
||||||
[SchemeSelHighlight] = { "#ffc978", "#005577" },
|
[SchemeSelHighlight] = { "#ffc978", "#005577" },
|
||||||
[SchemeNormHighlight] = { "#ffc978", "#222222" },
|
[SchemeNormHighlight] = { "#ffc978", "#222222" },
|
||||||
|
7
dmenu.c
7
dmenu.c
@ -40,6 +40,9 @@ enum {
|
|||||||
SchemeNorm,
|
SchemeNorm,
|
||||||
SchemeSel,
|
SchemeSel,
|
||||||
SchemeOut,
|
SchemeOut,
|
||||||
|
#if MORECOLOR_PATCH
|
||||||
|
SchemeMid,
|
||||||
|
#endif // MORECOLOR_PATCH
|
||||||
#if HIGHLIGHT_PATCH || FUZZYHIGHLIGHT_PATCH
|
#if HIGHLIGHT_PATCH || FUZZYHIGHLIGHT_PATCH
|
||||||
SchemeNormHighlight,
|
SchemeNormHighlight,
|
||||||
SchemeSelHighlight,
|
SchemeSelHighlight,
|
||||||
@ -237,6 +240,10 @@ drawitem(struct item *item, int x, int y, int w)
|
|||||||
else if (item->hp)
|
else if (item->hp)
|
||||||
drw_setscheme(drw, scheme[SchemeHp]);
|
drw_setscheme(drw, scheme[SchemeHp]);
|
||||||
#endif // HIGHPRIORITY_PATCH
|
#endif // HIGHPRIORITY_PATCH
|
||||||
|
#if MORECOLOR_PATCH
|
||||||
|
else if (item->left == sel || item->right == sel)
|
||||||
|
drw_setscheme(drw, scheme[SchemeMid]);
|
||||||
|
#endif // MORECOLOR_PATCH
|
||||||
else if (item->out)
|
else if (item->out)
|
||||||
drw_setscheme(drw, scheme[SchemeOut]);
|
drw_setscheme(drw, scheme[SchemeOut]);
|
||||||
else
|
else
|
||||||
|
@ -99,6 +99,12 @@
|
|||||||
*/
|
*/
|
||||||
#define MANAGED_PATCH 0
|
#define MANAGED_PATCH 0
|
||||||
|
|
||||||
|
/* This patch adds an additional color scheme for highlighting entries adjacent to the current
|
||||||
|
* selection.
|
||||||
|
* https://tools.suckless.org/dmenu/patches/morecolor/
|
||||||
|
*/
|
||||||
|
#define MORECOLOR_PATCH 0
|
||||||
|
|
||||||
/* This patch adds basic mouse support for dmenu.
|
/* This patch adds basic mouse support for dmenu.
|
||||||
* https://tools.suckless.org/dmenu/patches/mouse-support/
|
* https://tools.suckless.org/dmenu/patches/mouse-support/
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user