kconfig: lxdialog: fix button color for blackbg theme
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 10 Mar 2024 13:32:57 +0000 (22:32 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 18 Mar 2024 17:30:51 +0000 (02:30 +0900)
For MENUCONFIG_COLOR=blackbg, the text in inactive buttons is invisible
because both the foreground and background are black.

Change the foreground color to white and remove the highlighting.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/lxdialog/util.c

index 3f78fb265136381c8b4dbdc1b611f2d4d47d7548..d5315315b066748ec881c0939b612d2bc9162ff6 100644 (file)
@@ -101,7 +101,7 @@ static void set_blackbg_theme(void)
        DLG_COLOR(button_key_active,     COLOR_YELLOW, COLOR_RED,   true);
        DLG_COLOR(button_key_inactive,   COLOR_RED,    COLOR_BLACK, false);
        DLG_COLOR(button_label_active,   COLOR_WHITE,  COLOR_RED,   false);
-       DLG_COLOR(button_label_inactive, COLOR_BLACK,  COLOR_BLACK, true);
+       DLG_COLOR(button_label_inactive, COLOR_WHITE,  COLOR_BLACK, false);
 
        DLG_COLOR(inputbox,         COLOR_YELLOW, COLOR_BLACK, false);
        DLG_COLOR(inputbox_border,  COLOR_YELLOW, COLOR_BLACK, false);