Ladybird: Get the system's current color theme settings from Qt

There isn't a 1:1 equivalent for all ColorRoles between Qt and LibGfx,
but we can at least make an effort to translate the various QPalette
preferred colors.

This makes text selection look a lot more "native" in Ladybird. :^)
This commit is contained in:
Andreas Kling 2023-03-15 22:56:47 +01:00
commit 19b3d40ad2
Notes: sideshowbarker 2024-07-17 11:29:41 +09:00
2 changed files with 44 additions and 1 deletions

View file

@ -192,6 +192,8 @@ private:
bool is_inspector_open() const;
void close_sub_widgets();
void update_palette();
qreal m_inverse_pixel_scaling_ratio { 1.0 };
bool m_should_show_line_box_borders { false };