mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
Window bevel depth is now configurable
This commit is contained in:
parent
939b339a8e
commit
effc16fc05
4 changed files with 10 additions and 2 deletions
|
|
@ -6,7 +6,9 @@
|
||||||
# make sure all other lines are commented out or deleted.
|
# make sure all other lines are commented out or deleted.
|
||||||
|
|
||||||
# general
|
# 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
|
# The global padding.{width,height} of openbox are not supported because
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ struct theme_background {
|
||||||
struct theme {
|
struct theme {
|
||||||
int border_width;
|
int border_width;
|
||||||
bool beveled_border;
|
bool beveled_border;
|
||||||
|
int border_bevel_width;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* the space between title bar border and
|
* the space between title bar border and
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ ssd_border_create(struct ssd *ssd)
|
||||||
if (theme->beveled_border) {
|
if (theme->beveled_border) {
|
||||||
|
|
||||||
|
|
||||||
int bevelSize = 2; // TODO: configurable
|
int bevelSize = theme->border_bevel_width; // TODO: configurable
|
||||||
|
|
||||||
/* From Pull request 3382 */
|
/* From Pull request 3382 */
|
||||||
uint8_t r = color[0] * 255;
|
uint8_t r = color[0] * 255;
|
||||||
|
|
|
||||||
|
|
@ -533,6 +533,7 @@ theme_builtin(struct theme *theme)
|
||||||
{
|
{
|
||||||
theme->border_width = 1;
|
theme->border_width = 1;
|
||||||
theme->beveled_border = FALSE;
|
theme->beveled_border = FALSE;
|
||||||
|
theme->border_bevel_width=0;
|
||||||
theme->window_titlebar_padding_height = 0;
|
theme->window_titlebar_padding_height = 0;
|
||||||
theme->window_titlebar_padding_width = 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")) {
|
if (match_glob(key, "border.beveled")) {
|
||||||
set_bool(value, &theme->beveled_border);
|
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")) {
|
if (match_glob(key, "window.titlebar.padding.width")) {
|
||||||
theme->window_titlebar_padding_width = get_int_if_positive(
|
theme->window_titlebar_padding_width = get_int_if_positive(
|
||||||
value, "window.titlebar.padding.width");
|
value, "window.titlebar.padding.width");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue