diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-10-25 22:22:40 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-10-25 22:22:40 +0530 |
commit | aa039b2700e4420a63b5882ea5fcfda347731def (patch) | |
tree | 83fd86f229a1188cc1febbd107ce336e89b278fa | |
parent | 6bf591b22c52af1d953f436b57483e27ac2eccb5 (diff) |
making patch for consistent colorscheme
-rw-r--r-- | patches/1a.consistent-colorscheme.diff | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/patches/1a.consistent-colorscheme.diff b/patches/1a.consistent-colorscheme.diff new file mode 100644 index 0000000..3fe9e02 --- /dev/null +++ b/patches/1a.consistent-colorscheme.diff @@ -0,0 +1,38 @@ +diff --git a/dmenu.c b/dmenu.c +index a97e6a6..1d2a3e2 100644 +--- a/dmenu.c ++++ b/dmenu.c +@@ -738,6 +738,8 @@ readxresources(void) { + fonts[0] = strdup(xval.addr); + else + fonts[0] = strdup(fonts[0]); ++ /* ++ Default Colorscheme + if (XrmGetResource(xdb, "dmenu.background", "*", &type, &xval)) + colors[SchemeNorm][ColBg] = strdup(xval.addr); + else +@@ -754,7 +756,23 @@ readxresources(void) { + colors[SchemeSel][ColFg] = strdup(xval.addr); + else + colors[SchemeSel][ColFg] = strdup(colors[SchemeSel][ColFg]); +- ++ */ ++ if (XrmGetResource(xdb, "dmenu.color0", "*", &type, &xval)) ++ colors[SchemeNorm][ColBg] = strdup(xval.addr); ++ else ++ colors[SchemeNorm][ColBg] = strdup(colors[SchemeNorm][ColBg]); ++ if (XrmGetResource(xdb, "dmenu.color6", "*", &type, &xval)) ++ colors[SchemeNorm][ColFg] = strdup(xval.addr); ++ else ++ colors[SchemeNorm][ColFg] = strdup(colors[SchemeNorm][ColFg]); ++ if (XrmGetResource(xdb, "dmenu.color14", "*", &type, &xval)) ++ colors[SchemeSel][ColBg] = strdup(xval.addr); ++ else ++ colors[SchemeSel][ColBg] = strdup(colors[SchemeSel][ColBg]); ++ if (XrmGetResource(xdb, "dmenu.color0", "*", &type, &xval)) ++ colors[SchemeSel][ColFg] = strdup(xval.addr); ++ else ++ colors[SchemeSel][ColFg] = strdup(colors[SchemeSel][ColFg]); + XrmDestroyDatabase(xdb); + } + } |