1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

core: auto-detect terminal background and apply light theme on first start

Detect the terminal background (via COLORFGBG or an OSC 11 query) before
GUI init and, on the first start, automatically apply the built-in
"light" theme when a light terminal is detected.

The function gui_term_theme_is_light returns an int (1 if light, 0 otherwise,
0 being the safe value when detection is unsure).
This commit is contained in:
Sébastien Helleu
2026-05-29 11:23:56 +02:00
parent fb220e1afd
commit deedaed1f9
8 changed files with 274 additions and 13 deletions
+1
View File
@@ -119,6 +119,7 @@ IMPORT_TEST_GROUP(GuiNick);
IMPORT_TEST_GROUP(GuiNicklist);
/* GUI - Curses */
IMPORT_TEST_GROUP(GuiCursesMouse);
IMPORT_TEST_GROUP(GuiCursesTerm);
/* scripts */
IMPORT_TEST_GROUP(Scripts);