1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:48:13 +00:00

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
parent 5e81734520
commit 19b3d40ad2
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 };