Ladybird/Qt: Add missing filters for TVG icons

Ladybird now uses the correct theme colours when hovering over icons.

(cherry picked from commit 01ff3d428684c1f638cfd47fb451179e66a78dd5)
This commit is contained in:
Jamie Mansfield 2024-07-22 17:39:41 +01:00 committed by Nico Weber
parent 7d81892991
commit 218f3aa536

View file

@ -34,6 +34,8 @@ QIcon create_tvg_icon_with_theme_colors(QString const& name, QPalette const& pal
};
icon_engine->add_filter(QIcon::Mode::Normal, icon_filter(palette.color(QPalette::ColorGroup::Normal, QPalette::ColorRole::ButtonText)));
icon_engine->add_filter(QIcon::Mode::Disabled, icon_filter(palette.color(QPalette::ColorGroup::Disabled, QPalette::ColorRole::ButtonText)));
icon_engine->add_filter(QIcon::Mode::Active, icon_filter(palette.color(QPalette::ColorGroup::Active, QPalette::ColorRole::ButtonText)));
icon_engine->add_filter(QIcon::Mode::Selected, icon_filter(palette.color(QPalette::ColorGroup::Normal, QPalette::ColorRole::ButtonText)));
return QIcon(icon_engine);
}