mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
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:
parent
332d05f3fd
commit
3c5da01f94
14 changed files with 28 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -96,6 +96,8 @@ namespace Gfx {
|
|||
C(ThreedHighlight) \
|
||||
C(ThreedShadow1) \
|
||||
C(ThreedShadow2) \
|
||||
C(Tooltip) \
|
||||
C(TooltipText) \
|
||||
C(VisitedLink) \
|
||||
C(Window) \
|
||||
C(WindowText)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue