LibGUI+LibGfx+Base: Make tooltips color theme aware :^)

Also tweak the default tooltip color to be more bright and yellow!
This commit is contained in:
Andreas Kling 2020-10-23 12:00:18 +02:00
commit 3c5da01f94
Notes: sideshowbarker 2024-07-19 01:47:22 +09:00
14 changed files with 28 additions and 1 deletions

View file

@ -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);