Skip to content

Commit

Permalink
Use m_iconManager field in Plasmoid code consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jan 18, 2025
1 parent 8f2cb51 commit 4513079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plasmoid/lib/syncthingapplet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ void SyncthingApplet::handleThemeChanged()
// return to the event loop before setting the new theme color; otherwise Qt Quick does not update the images
QTimer::singleShot(0, this, [this] {
const auto palette = paletteFromTheme(m_theme);
IconManager::instance().setPalette(palette);
m_iconManager.setPalette(palette);
setBrightColors(isPaletteDark(palette));
if (m_imageProvider) {
m_imageProvider->setDefaultColor(m_theme.color(Plasma::Theme::TextColor, Plasma::Theme::NormalColorGroup));
Expand Down Expand Up @@ -725,7 +725,7 @@ void SyncthingApplet::applySettings(int changeConnectionIndex)
setSize(config.readEntry<QSize>("size", QSize(25, 25)));
setShowingTabTexts(config.readEntry<bool>("showTabTexts", false));
setShowingDownloads(config.readEntry<bool>("showDownloads", false));
IconManager::instance().applySettings(&settings.icons.status, nullptr, settings.icons.usePaletteForStatus, false);
m_iconManager.applySettings(&settings.icons.status, nullptr, settings.icons.usePaletteForStatus, false);

// restore selected states
// note: The settings dialog writes this to the Plasmoid's config like the other settings. However, it
Expand Down

0 comments on commit 4513079

Please sign in to comment.