1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

StylePainter: Tweak surface highlight color to match the system warm gray.

This commit is contained in:
Andreas Kling 2019-07-18 21:30:18 +02:00
parent 598715d4cc
commit 23d45532fc

View file

@ -4,7 +4,7 @@
void StylePainter::paint_tab_button(Painter& painter, const Rect& rect, bool active, bool hovered, bool enabled) void StylePainter::paint_tab_button(Painter& painter, const Rect& rect, bool active, bool hovered, bool enabled)
{ {
Color base_color = Color::WarmGray; Color base_color = Color::WarmGray;
Color highlight_color2 = Color::from_rgb(0xdfdfdf); Color highlight_color2 = Color::from_rgb(0xe8e7e4);
Color shadow_color1 = Color::from_rgb(0x808080); Color shadow_color1 = Color::from_rgb(0x808080);
Color shadow_color2 = Color::from_rgb(0x404040); Color shadow_color2 = Color::from_rgb(0x404040);
@ -45,7 +45,7 @@ void StylePainter::paint_tab_button(Painter& painter, const Rect& rect, bool act
static void paint_button_new(Painter& painter, const Rect& rect, bool pressed, bool checked, bool hovered, bool enabled) static void paint_button_new(Painter& painter, const Rect& rect, bool pressed, bool checked, bool hovered, bool enabled)
{ {
Color button_color = Color::WarmGray; Color button_color = Color::WarmGray;
Color highlight_color2 = Color::from_rgb(0xdfdfdf); Color highlight_color2 = Color::from_rgb(0xe8e7e4);
Color shadow_color1 = Color::from_rgb(0x808080); Color shadow_color1 = Color::from_rgb(0x808080);
Color shadow_color2 = Color::from_rgb(0x404040); Color shadow_color2 = Color::from_rgb(0x404040);