Skip to content

Commit

Permalink
fix: icon doesn't change when iconTheme changed
Browse files Browse the repository at this point in the history
  Adding iconTheme to it's url, `QQuickImageBase` has a cache store,
and Url as a part of the key.
  it depends on linuxdeepin/dtkgui#221.
  • Loading branch information
18202781743 committed Jan 23, 2024
1 parent 32751b1 commit 99fbcfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/private/dquickdciiconimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ QUrlQuery DQuickDciIconImageItemPrivate::getUrlQuery()
query.addQueryItem(QLatin1String("name"), parentPriv->name);
query.addQueryItem(QLatin1String("mode"), QString::number(parentPriv->mode));
query.addQueryItem(QLatin1String("theme"), QString::number(parentPriv->theme));
query.addQueryItem("themeName", QIcon::themeName());
DDciIconPalette pal = parentPriv->palette;
if (!parentPriv->palette.foreground().isValid() && q_func()->color().isValid()) {
pal.setForeground(q_func()->color());
Expand Down

0 comments on commit 99fbcfd

Please sign in to comment.