1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 00:47:45 +00:00

Ladybird: Use vector icons in the browser toolbar

We now load SVG icons (via the Qt resource system) and render them into
a QIcon (with normal and disabled variants) using system colors.
We also re-render them if the system color theme changes.

This instantly makes Ladybird look less foreign on my Linux box.

I drew the icons myself, and they could definitely be more optimized,
but this was my first time using Inkscape. :^)
This commit is contained in:
Andreas Kling 2023-05-05 15:38:46 +02:00
parent 60312f2c83
commit 4b5cbe7931
8 changed files with 213 additions and 9 deletions

View file

@ -51,7 +51,9 @@ signals:
private:
virtual void resizeEvent(QResizeEvent*) override;
virtual bool event(QEvent*) override;
void rerender_toolbar_icons();
void update_hover_label();
QBoxLayout* m_layout;