mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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
Notes:
sideshowbarker
2024-07-19 01:47:22 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3c5da01f948
14 changed files with 28 additions and 1 deletions
|
@ -64,6 +64,8 @@ SyntaxControlKeyword=orchid
|
|||
SyntaxIdentifier=white
|
||||
SyntaxPreprocessorStatement=#ffafff
|
||||
SyntaxPreprocessorValue=orange
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
||||
[Metrics]
|
||||
TitleHeight=24
|
||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=orchid
|
|||
SyntaxIdentifier=lightskyblue
|
||||
SyntaxPreprocessorStatement=darkgray
|
||||
SyntaxPreprocessorValue=orange
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
|
|
@ -64,6 +64,8 @@ SyntaxControlKeyword=black
|
|||
SyntaxIdentifier=#092e64
|
||||
SyntaxPreprocessorStatement=#008080
|
||||
SyntaxPreprocessorValue=#800000
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
||||
[Metrics]
|
||||
TitleHeight=19
|
||||
|
|
|
@ -57,3 +57,5 @@ SyntaxControlKeyword=#021766
|
|||
SyntaxIdentifier=#333333
|
||||
SyntaxPreprocessorStatement=darkgray
|
||||
SyntaxPreprocessorValue=#320073
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
|||
SyntaxIdentifier=#092e64
|
||||
SyntaxPreprocessorStatement=#008080
|
||||
SyntaxPreprocessorValue=#800000
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
|||
SyntaxIdentifier=#092e64
|
||||
SyntaxPreprocessorStatement=#008080
|
||||
SyntaxPreprocessorValue=#800000
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
|||
SyntaxIdentifier=#092e64
|
||||
SyntaxPreprocessorStatement=#008080
|
||||
SyntaxPreprocessorValue=#800000
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
|||
SyntaxIdentifier=#092e64
|
||||
SyntaxPreprocessorStatement=#008080
|
||||
SyntaxPreprocessorValue=#800000
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
|
|
@ -60,6 +60,8 @@ SyntaxControlKeyword=black
|
|||
SyntaxIdentifier=#092e64
|
||||
SyntaxPreprocessorStatement=#008080
|
||||
SyntaxPreprocessorValue=#800000
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
||||
[Metrics]
|
||||
TitleButtonWidth=17
|
||||
|
|
|
@ -60,6 +60,8 @@ SyntaxControlKeyword=black
|
|||
SyntaxIdentifier=#092e64
|
||||
SyntaxPreprocessorStatement=#008080
|
||||
SyntaxPreprocessorValue=#800000
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
||||
[Metrics]
|
||||
TitleButtonWidth=17
|
||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
|||
SyntaxIdentifier=#092e64
|
||||
SyntaxPreprocessorStatement=#008080
|
||||
SyntaxPreprocessorValue=#800000
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
|
|
@ -56,3 +56,5 @@ SyntaxControlKeyword=black
|
|||
SyntaxIdentifier=#092e64
|
||||
SyntaxPreprocessorStatement=#008080
|
||||
SyntaxPreprocessorValue=#800000
|
||||
Tooltip=#ffffe1
|
||||
TooltipText=black
|
||||
|
|
|
@ -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…
Reference in a new issue