gterm: Default to transparent bg if wallpaper is set

This commit is contained in:
mintsuki 2022-03-30 03:19:05 +02:00
parent 5045a266ee
commit abc3b309a4
2 changed files with 4 additions and 1 deletions

View File

@ -725,6 +725,10 @@ bool gterm_init(size_t *_rows, size_t *_cols, size_t width, size_t height) {
if (background == NULL) {
margin = 0;
margin_gradient = 0;
} else {
if (theme_background == NULL) {
default_bg = 0x68000000;
}
}
char *theme_margin = config_get_value(NULL, 0, "TERM_MARGIN");

View File

@ -7,7 +7,6 @@ TIMEOUT=3
VERBOSE=yes
# Terminal related settings
TERM_BACKGROUND=68000000
TERM_WALLPAPER=${WALLPAPER_PATH}
TERM_BACKDROP=008080