]> git.armaanb.net Git - dmenu.git/blobdiff - dmenu.c
Switch to dark theme
[dmenu.git] / dmenu.c
diff --git a/dmenu.c b/dmenu.c
index e22e054d4a4b8b04bdb6674dcf4ac1666c46dd74..1560b60466856fb86992f7f727bed73fd0dbb71e 100644 (file)
--- a/dmenu.c
+++ b/dmenu.c
@@ -29,8 +29,7 @@
 #define NUMBERSBUFSIZE        (NUMBERSMAXDIGITS * 2) + 1
 
 /* enums */
-enum { SchemeNorm, SchemeSel, SchemeNormHighlight, SchemeSelHighlight,
-       SchemeOut, SchemeLast }; /* color schemes */
+enum { SchemeNorm, SchemeSel, SchemeOut, SchemeLast }; /* color schemes */
 
 
 struct item {
@@ -130,9 +129,7 @@ drawhighlights(struct item *item, int x, int y, int maxw)
        if (!(strlen(item->text) && strlen(text)))
                return;
 
-       drw_setscheme(drw, scheme[item == sel
-                          ? SchemeSelHighlight
-                          : SchemeNormHighlight]);
+       drw_setscheme(drw, scheme[item == sel ? SchemeSel : SchemeNorm]);
        for (i = 0, highlight = item->text; *highlight && text[i];) {
                if (*highlight == text[i]) {
                        /* get indentation */
@@ -854,7 +851,7 @@ usage(void)
 {
        fputs("usage: dmenu [-bfivP] [-l lines] [-p prompt] [-fn font] [-m monitor]\n"
              "             [-nb color] [-nf color] [-sb color] [-sf color]\n"
-             "             [-nhb color] [-nhf color] [-shb color] [-shf color] [-w windowid]\n", stderr);
+             "             [-w windowid]\n", stderr);
        exit(1);
 }
 
@@ -899,14 +896,6 @@ main(int argc, char *argv[])
                        colors[SchemeSel][ColBg] = argv[++i];
                else if (!strcmp(argv[i], "-sf"))  /* selected foreground color */
                        colors[SchemeSel][ColFg] = argv[++i];
-               else if (!strcmp(argv[i], "-nhb")) /* normal hi background color */
-                       colors[SchemeNormHighlight][ColBg] = argv[++i];
-               else if (!strcmp(argv[i], "-nhf")) /* normal hi foreground color */
-                       colors[SchemeNormHighlight][ColFg] = argv[++i];
-               else if (!strcmp(argv[i], "-shb")) /* selected hi background color */
-                       colors[SchemeSelHighlight][ColBg] = argv[++i];
-               else if (!strcmp(argv[i], "-shf")) /* selected hi foreground color */
-                       colors[SchemeSelHighlight][ColFg] = argv[++i];
                else if (!strcmp(argv[i], "-w"))   /* embedding window id */
                        embed = argv[++i];
                else