mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird/Qt: Add missing filters for TVG icons
Ladybird now uses the correct theme colours when hovering over icons.
This commit is contained in:
parent
989b4ac127
commit
01ff3d4286
Notes:
github-actions[bot]
2024-07-22 17:00:25 +00:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/01ff3d42868 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/767
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