load config values right. load the bool shadow option too now.
This commit is contained in:
parent
6cebd34855
commit
9ff6ea27b1
1 changed files with 9 additions and 3 deletions
|
@ -314,12 +314,18 @@ gboolean load()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* load the font, not from the theme file tho, its in the config */
|
/* load the font, not from the theme file tho, its in the config */
|
||||||
s_winfont_shadow = 1; /* XXX read from themrc */
|
|
||||||
|
if (!config_get("font.shadow", Config_Bool, &shadow)) {
|
||||||
|
shadow.bool = TRUE; /* default */
|
||||||
|
config_set("font.shadow", Config_Bool, shadow);
|
||||||
|
}
|
||||||
|
s_winfont_shadow = shadow.bool;
|
||||||
if (!config_get("font.shadow.offset", Config_Integer, &offset) ||
|
if (!config_get("font.shadow.offset", Config_Integer, &offset) ||
|
||||||
offset.integer < 0 || offset.integer >= 10) {
|
offset.integer < 0 || offset.integer >= 10) {
|
||||||
s_winfont_shadow_offset = 1; /* default */
|
offset.integer = 1; /* default */
|
||||||
|
config_set("font.shadow.offset", Config_Integer, offset);
|
||||||
}
|
}
|
||||||
|
s_winfont_shadow_offset = offset.integer;
|
||||||
if (!config_get("font", Config_String, &font)) {
|
if (!config_get("font", Config_String, &font)) {
|
||||||
font.string = DEFAULT_FONT;
|
font.string = DEFAULT_FONT;
|
||||||
config_set("font", Config_String, font);
|
config_set("font", Config_String, font);
|
||||||
|
|
Loading…
Reference in a new issue