From 4845f271d9531aa718ee835b6a9645a67101261d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 11 May 2007 22:47:09 +0000 Subject: [PATCH] add support for these... menu.border.color window.active.border.color window.inactive.border.color Bear2 has a menu color now, the old themerc had that specified --- themes/Bear2/openbox-3/themerc.xml | 2 +- tools/themetoxml/themetoxml.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/themes/Bear2/openbox-3/themerc.xml b/themes/Bear2/openbox-3/themerc.xml index 8885c4cd..68b0adac 100644 --- a/themes/Bear2/openbox-3/themerc.xml +++ b/themes/Bear2/openbox-3/themerc.xml @@ -122,7 +122,7 @@ center - + center 2 diff --git a/tools/themetoxml/themetoxml.c b/tools/themetoxml/themetoxml.c index ae9972e2..ace17bf8 100644 --- a/tools/themetoxml/themetoxml.c +++ b/tools/themetoxml/themetoxml.c @@ -346,12 +346,20 @@ int main(int argc, char **argv) CONT3("dimensions", "window", "border", NUM(i)); CONT3("dimensions", "menu", "border", NUM(i)); } + if (read_int(db, "menu.border.width", &i)) + CONT3("dimensions", "menu", "border", NUM(i)); if (read_color(db, "border.color", &i, &j, &k)) { COLOR3("window", "active", "border", i, j, k, 255); COLOR3("window", "inactive", "border", i, j, k, 255); COLOR2("menu", "border", i, j, k, 255); } + if (read_color(db, "window.active.border.color", &i, &j, &k)) + COLOR3("window", "active", "border", i, j, k, 255); + if (read_color(db, "window.inactive.border.color", &i, &j, &k)) + COLOR3("window", "inactive", "border", i, j, k, 255); + if (read_color(db, "menu.border.color", &i, &j, &k)) + COLOR2("menu", "border", i, j, k, 255); if (read_int(db, "window.client.padding.width", &i)) { ATTR3("dimensions", "window", "clientpadding", "x", NUM(i)); -- 2.44.0