let you specify the padding y and x independently
This commit is contained in:
parent
29e94a9e59
commit
a5c6eb81ad
1 changed files with 3 additions and 1 deletions
|
@ -186,7 +186,9 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name,
|
|||
if (!read_int(db, "padding.width", &theme->paddingx) ||
|
||||
theme->paddingx < 0 || theme->paddingx > 100)
|
||||
theme->paddingx = 3;
|
||||
theme->paddingy = theme->paddingx;
|
||||
if (!read_int(db, "padding.height", &theme->paddingy) ||
|
||||
theme->paddingy < 0 || theme->paddingy > 100)
|
||||
theme->paddingy = theme->paddingx;
|
||||
if (!read_int(db, "border.width", &theme->fbwidth) ||
|
||||
theme->fbwidth < 0 || theme->fbwidth > 100)
|
||||
theme->fbwidth = 1;
|
||||
|
|
Loading…
Reference in a new issue