mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-17 16:28:06 +03:00
Ladybird: Use the correct theme file for the current AppKit theme
This commit is contained in:
parent
1e1c3e5a34
commit
e981c13a4f
Notes:
sideshowbarker
2024-07-17 09:49:48 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/e981c13a4f Pull-request: https://github.com/SerenityOS/serenity/pull/20824 Reviewed-by: https://github.com/ADKaster ✅
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user