diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-08-15 06:00:33 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-16 16:53:00 +0200 |
commit | a74f512f6b5485bc4033e60bd10503597e8eeb07 (patch) | |
tree | 7b78965ac02125d2d15ab1c58c84ce4d4a42fa39 /Userland/Services | |
parent | d286bf85e6974c309507a8a845770c306b3bdefd (diff) | |
download | serenity-a74f512f6b5485bc4033e60bd10503597e8eeb07.zip |
LibGUI+WindowServer+DisplaySettings: Add Tooltips to SystemEffects
Tooltips can now be toggled on and off system-wide.
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WindowServer/SystemEffects.h | 2 | ||||
-rw-r--r-- | Userland/Services/WindowServer/WindowManager.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/SystemEffects.h b/Userland/Services/WindowServer/SystemEffects.h index 29719b7c7d..bb686ce35f 100644 --- a/Userland/Services/WindowServer/SystemEffects.h +++ b/Userland/Services/WindowServer/SystemEffects.h @@ -24,6 +24,7 @@ enum Effects : size_t { SmoothScrolling, TabAccents, SplitterKnurls, + Tooltips, MenuShadow, WindowShadow, TooltipShadow, @@ -85,6 +86,7 @@ public: bool tab_accents() const { return m_effects[TabAccents]; } bool splitter_knurls() const { return m_effects[SplitterKnurls]; } + bool tooltips() const { return m_effects[Tooltips]; } bool menu_shadow() const { return m_effects[MenuShadow]; } bool window_shadow() const { return m_effects[WindowShadow]; } diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index ef2614269e..481121ffc0 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -2354,6 +2354,7 @@ void WindowManager::apply_system_effects(Vector<bool> effects, ShowGeometry geom m_config->write_bool_entry("Effects", "SmoothScrolling", m_system_effects.smooth_scrolling()); m_config->write_bool_entry("Effects", "TabAccents", m_system_effects.tab_accents()); m_config->write_bool_entry("Effects", "SplitterKnurls", m_system_effects.splitter_knurls()); + m_config->write_bool_entry("Effects", "Tooltips", m_system_effects.tooltips()); m_config->write_bool_entry("Effects", "MenuShadow", m_system_effects.menu_shadow()); m_config->write_bool_entry("Effects", "WindowShadow", m_system_effects.window_shadow()); m_config->write_bool_entry("Effects", "TooltipShadow", m_system_effects.tooltip_shadow()); @@ -2370,6 +2371,7 @@ void WindowManager::load_system_effects() m_config->read_bool_entry("Effects", "SmoothScrolling", true), m_config->read_bool_entry("Effects", "TabAccents", true), m_config->read_bool_entry("Effects", "SplitterKnurls", true), + m_config->read_bool_entry("Effects", "Tooltips", true), m_config->read_bool_entry("Effects", "MenuShadow", true), m_config->read_bool_entry("Effects", "WindowShadow", true), m_config->read_bool_entry("Effects", "TooltipShadow", true) |