diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-23 12:00:18 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-23 12:01:14 +0200 |
commit | 3c5da01f948caf298eb83d3ec6d8ff0192880d07 (patch) | |
tree | 7bd0b59a811c8ef285d7a50add8e95691a83b802 /Libraries/LibGUI/Application.cpp | |
parent | 332d05f3fd40ca11e1c659c963b2598a87817147 (diff) | |
download | serenity-3c5da01f948caf298eb83d3ec6d8ff0192880d07.zip |
LibGUI+LibGfx+Base: Make tooltips color theme aware :^)
Also tweak the default tooltip color to be more bright and yellow!
Diffstat (limited to 'Libraries/LibGUI/Application.cpp')
-rw-r--r-- | Libraries/LibGUI/Application.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibGUI/Application.cpp b/Libraries/LibGUI/Application.cpp index 259f0ffe4d..94fb0b3c44 100644 --- a/Libraries/LibGUI/Application.cpp +++ b/Libraries/LibGUI/Application.cpp @@ -125,7 +125,8 @@ private: { set_window_type(WindowType::Tooltip); m_label = set_main_widget<Label>(); - m_label->set_background_color(Color::from_rgb(0xdac7b5)); + m_label->set_background_role(Gfx::ColorRole::Tooltip); + m_label->set_foreground_role(Gfx::ColorRole::TooltipText); m_label->set_fill_with_background_color(true); m_label->set_frame_thickness(1); m_label->set_frame_shape(Gfx::FrameShape::Container); |