diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-11-01 16:24:50 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-05 23:34:22 +0100 |
commit | d68268f791c770f024fc376f5dc615becdcabd37 (patch) | |
tree | fc48e3d4f8ce1effe200f3e536003f18e38e6d3d /Userland/Libraries/LibGfx/SystemTheme.cpp | |
parent | 5e9cf476273728c82e5ce6a97be04891d4a6d854 (diff) | |
download | serenity-d68268f791c770f024fc376f5dc615becdcabd37.zip |
LibGfx: Use `read_bool_entry()` to read theme flags
I didn't notice this function existed the first time around. Oops!
Diffstat (limited to 'Userland/Libraries/LibGfx/SystemTheme.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/SystemTheme.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/SystemTheme.cpp b/Userland/Libraries/LibGfx/SystemTheme.cpp index db2c4ae3e4..d1c7db8018 100644 --- a/Userland/Libraries/LibGfx/SystemTheme.cpp +++ b/Userland/Libraries/LibGfx/SystemTheme.cpp @@ -42,8 +42,7 @@ Core::AnonymousBuffer load_system_theme(Core::ConfigFile const& file) }; auto get_flag = [&](auto& name) { - auto flag_string = file.read_entry("Flags", name); - return flag_string.equals_ignoring_case("true"); + return file.read_bool_entry("Flags", name, false); }; auto get_metric = [&](auto& name, auto role) { |