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
parent 332d05f3fd
commit 3c5da01f94
Notes: sideshowbarker 2024-07-19 01:47:22 +09:00
14 changed files with 28 additions and 1 deletions

View file

@ -64,6 +64,8 @@ SyntaxControlKeyword=orchid
SyntaxIdentifier=white
SyntaxPreprocessorStatement=#ffafff
SyntaxPreprocessorValue=orange
Tooltip=#ffffe1
TooltipText=black
[Metrics]
TitleHeight=24

View file

@ -56,3 +56,5 @@ SyntaxControlKeyword=orchid
SyntaxIdentifier=lightskyblue
SyntaxPreprocessorStatement=darkgray
SyntaxPreprocessorValue=orange
Tooltip=#ffffe1
TooltipText=black

View file

@ -64,6 +64,8 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
Tooltip=#ffffe1
TooltipText=black
[Metrics]
TitleHeight=19

View file

@ -57,3 +57,5 @@ SyntaxControlKeyword=#021766
SyntaxIdentifier=#333333
SyntaxPreprocessorStatement=darkgray
SyntaxPreprocessorValue=#320073
Tooltip=#ffffe1
TooltipText=black

View file

@ -56,3 +56,5 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
Tooltip=#ffffe1
TooltipText=black

View file

@ -56,3 +56,5 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
Tooltip=#ffffe1
TooltipText=black

View file

@ -56,3 +56,5 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
Tooltip=#ffffe1
TooltipText=black

View file

@ -56,3 +56,5 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
Tooltip=#ffffe1
TooltipText=black

View file

@ -60,6 +60,8 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
Tooltip=#ffffe1
TooltipText=black
[Metrics]
TitleButtonWidth=17

View file

@ -60,6 +60,8 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
Tooltip=#ffffe1
TooltipText=black
[Metrics]
TitleButtonWidth=17

View file

@ -56,3 +56,5 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
Tooltip=#ffffe1
TooltipText=black

View file

@ -56,3 +56,5 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
Tooltip=#ffffe1
TooltipText=black

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

View file

@ -96,6 +96,8 @@ namespace Gfx {
C(ThreedHighlight) \
C(ThreedShadow1) \
C(ThreedShadow2) \
C(Tooltip) \
C(TooltipText) \
C(VisitedLink) \
C(Window) \
C(WindowText)