mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +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
|
@ -64,6 +64,8 @@ SyntaxControlKeyword=orchid
|
||||||
SyntaxIdentifier=white
|
SyntaxIdentifier=white
|
||||||
SyntaxPreprocessorStatement=#ffafff
|
SyntaxPreprocessorStatement=#ffafff
|
||||||
SyntaxPreprocessorValue=orange
|
SyntaxPreprocessorValue=orange
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
||||||
[Metrics]
|
[Metrics]
|
||||||
TitleHeight=24
|
TitleHeight=24
|
||||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=orchid
|
||||||
SyntaxIdentifier=lightskyblue
|
SyntaxIdentifier=lightskyblue
|
||||||
SyntaxPreprocessorStatement=darkgray
|
SyntaxPreprocessorStatement=darkgray
|
||||||
SyntaxPreprocessorValue=orange
|
SyntaxPreprocessorValue=orange
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
|
@ -64,6 +64,8 @@ SyntaxControlKeyword=black
|
||||||
SyntaxIdentifier=#092e64
|
SyntaxIdentifier=#092e64
|
||||||
SyntaxPreprocessorStatement=#008080
|
SyntaxPreprocessorStatement=#008080
|
||||||
SyntaxPreprocessorValue=#800000
|
SyntaxPreprocessorValue=#800000
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
||||||
[Metrics]
|
[Metrics]
|
||||||
TitleHeight=19
|
TitleHeight=19
|
||||||
|
|
|
@ -57,3 +57,5 @@ SyntaxControlKeyword=#021766
|
||||||
SyntaxIdentifier=#333333
|
SyntaxIdentifier=#333333
|
||||||
SyntaxPreprocessorStatement=darkgray
|
SyntaxPreprocessorStatement=darkgray
|
||||||
SyntaxPreprocessorValue=#320073
|
SyntaxPreprocessorValue=#320073
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
||||||
SyntaxIdentifier=#092e64
|
SyntaxIdentifier=#092e64
|
||||||
SyntaxPreprocessorStatement=#008080
|
SyntaxPreprocessorStatement=#008080
|
||||||
SyntaxPreprocessorValue=#800000
|
SyntaxPreprocessorValue=#800000
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
||||||
SyntaxIdentifier=#092e64
|
SyntaxIdentifier=#092e64
|
||||||
SyntaxPreprocessorStatement=#008080
|
SyntaxPreprocessorStatement=#008080
|
||||||
SyntaxPreprocessorValue=#800000
|
SyntaxPreprocessorValue=#800000
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
||||||
SyntaxIdentifier=#092e64
|
SyntaxIdentifier=#092e64
|
||||||
SyntaxPreprocessorStatement=#008080
|
SyntaxPreprocessorStatement=#008080
|
||||||
SyntaxPreprocessorValue=#800000
|
SyntaxPreprocessorValue=#800000
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
||||||
SyntaxIdentifier=#092e64
|
SyntaxIdentifier=#092e64
|
||||||
SyntaxPreprocessorStatement=#008080
|
SyntaxPreprocessorStatement=#008080
|
||||||
SyntaxPreprocessorValue=#800000
|
SyntaxPreprocessorValue=#800000
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
|
@ -60,6 +60,8 @@ SyntaxControlKeyword=black
|
||||||
SyntaxIdentifier=#092e64
|
SyntaxIdentifier=#092e64
|
||||||
SyntaxPreprocessorStatement=#008080
|
SyntaxPreprocessorStatement=#008080
|
||||||
SyntaxPreprocessorValue=#800000
|
SyntaxPreprocessorValue=#800000
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
||||||
[Metrics]
|
[Metrics]
|
||||||
TitleButtonWidth=17
|
TitleButtonWidth=17
|
||||||
|
|
|
@ -60,6 +60,8 @@ SyntaxControlKeyword=black
|
||||||
SyntaxIdentifier=#092e64
|
SyntaxIdentifier=#092e64
|
||||||
SyntaxPreprocessorStatement=#008080
|
SyntaxPreprocessorStatement=#008080
|
||||||
SyntaxPreprocessorValue=#800000
|
SyntaxPreprocessorValue=#800000
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
||||||
[Metrics]
|
[Metrics]
|
||||||
TitleButtonWidth=17
|
TitleButtonWidth=17
|
||||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
||||||
SyntaxIdentifier=#092e64
|
SyntaxIdentifier=#092e64
|
||||||
SyntaxPreprocessorStatement=#008080
|
SyntaxPreprocessorStatement=#008080
|
||||||
SyntaxPreprocessorValue=#800000
|
SyntaxPreprocessorValue=#800000
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
||||||
SyntaxIdentifier=#092e64
|
SyntaxIdentifier=#092e64
|
||||||
SyntaxPreprocessorStatement=#008080
|
SyntaxPreprocessorStatement=#008080
|
||||||
SyntaxPreprocessorValue=#800000
|
SyntaxPreprocessorValue=#800000
|
||||||
|
Tooltip=#ffffe1
|
||||||
|
TooltipText=black
|
||||||
|
|
|
@ -125,7 +125,8 @@ private:
|
||||||
{
|
{
|
||||||
set_window_type(WindowType::Tooltip);
|
set_window_type(WindowType::Tooltip);
|
||||||
m_label = set_main_widget<Label>();
|
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_fill_with_background_color(true);
|
||||||
m_label->set_frame_thickness(1);
|
m_label->set_frame_thickness(1);
|
||||||
m_label->set_frame_shape(Gfx::FrameShape::Container);
|
m_label->set_frame_shape(Gfx::FrameShape::Container);
|
||||||
|
|
|
@ -96,6 +96,8 @@ namespace Gfx {
|
||||||
C(ThreedHighlight) \
|
C(ThreedHighlight) \
|
||||||
C(ThreedShadow1) \
|
C(ThreedShadow1) \
|
||||||
C(ThreedShadow2) \
|
C(ThreedShadow2) \
|
||||||
|
C(Tooltip) \
|
||||||
|
C(TooltipText) \
|
||||||
C(VisitedLink) \
|
C(VisitedLink) \
|
||||||
C(Window) \
|
C(Window) \
|
||||||
C(WindowText)
|
C(WindowText)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue