diff --git a/docs/themerc b/docs/themerc index 83ea726b..195f36a0 100644 --- a/docs/themerc +++ b/docs/themerc @@ -6,7 +6,9 @@ # make sure all other lines are commented out or deleted. # general -border.width: 1 +border.width: 6 +border.beveled: yes +border.bevel_width:2 # # The global padding.{width,height} of openbox are not supported because diff --git a/include/theme.h b/include/theme.h index 6a8812f8..123558f5 100644 --- a/include/theme.h +++ b/include/theme.h @@ -61,6 +61,7 @@ struct theme_background { struct theme { int border_width; bool beveled_border; + int border_bevel_width; /* * the space between title bar border and diff --git a/src/ssd/ssd-border.c b/src/ssd/ssd-border.c index 3ea8e492..7e511381 100644 --- a/src/ssd/ssd-border.c +++ b/src/ssd/ssd-border.c @@ -57,7 +57,7 @@ ssd_border_create(struct ssd *ssd) if (theme->beveled_border) { - int bevelSize = 2; // TODO: configurable + int bevelSize = theme->border_bevel_width; // TODO: configurable /* From Pull request 3382 */ uint8_t r = color[0] * 255; diff --git a/src/theme.c b/src/theme.c index 8ba09f68..04200800 100644 --- a/src/theme.c +++ b/src/theme.c @@ -533,6 +533,7 @@ theme_builtin(struct theme *theme) { theme->border_width = 1; theme->beveled_border = FALSE; + theme->border_bevel_width=0; theme->window_titlebar_padding_height = 0; theme->window_titlebar_padding_width = 0; @@ -699,6 +700,10 @@ entry(struct theme *theme, const char *key, const char *value) if (match_glob(key, "border.beveled")) { set_bool(value, &theme->beveled_border); } + if (match_glob(key, "border.bevel_width")) { + theme->border_bevel_width = get_int_if_positive( + value, "border.bevel_width"); + } if (match_glob(key, "window.titlebar.padding.width")) { theme->window_titlebar_padding_width = get_int_if_positive( value, "window.titlebar.padding.width");