Ladybird: Use the correct theme file for the current AppKit theme

This commit is contained in:
Timothy Flynn 2023-08-28 15:28:35 -04:00 committed by Tim Flynn
parent 1e1c3e5a34
commit e981c13a4f
Notes: sideshowbarker 2024-07-17 09:49:48 +09:00

View File

@ -30,7 +30,7 @@ Core::AnonymousBuffer create_system_palette()
{
auto is_dark = is_using_dark_system_theme();
auto theme_file = is_dark ? "Default"sv : "Dark"sv;
auto theme_file = is_dark ? "Dark"sv : "Default"sv;
auto theme_path = DeprecatedString::formatted("{}/res/themes/{}.ini", s_serenity_resource_root, theme_file);
auto theme = MUST(Gfx::load_system_theme(theme_path));