From abc3b309a4e2af9bead3ec465aacbb62ef09ab64 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Wed, 30 Mar 2022 03:19:05 +0200 Subject: [PATCH] gterm: Default to transparent bg if wallpaper is set --- common/lib/gterm.c | 4 ++++ test/limine.cfg | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/lib/gterm.c b/common/lib/gterm.c index 865e37c2..803af10a 100644 --- a/common/lib/gterm.c +++ b/common/lib/gterm.c @@ -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"); diff --git a/test/limine.cfg b/test/limine.cfg index e23faa98..1fe115b4 100644 --- a/test/limine.cfg +++ b/test/limine.cfg @@ -7,7 +7,6 @@ TIMEOUT=3 VERBOSE=yes # Terminal related settings -TERM_BACKGROUND=68000000 TERM_WALLPAPER=${WALLPAPER_PATH} TERM_BACKDROP=008080