mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 09:21:57 -05:00
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:
parent
7d81892991
commit
218f3aa536
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue