Skip to content

Commit

Permalink
Change icon theme in setDarkMode
Browse files Browse the repository at this point in the history
  • Loading branch information
elysia-best authored Oct 7, 2024
1 parent 9e1da5f commit df9a62b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion settings-daemon/theme/thememanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ void ThemeManager::setDarkMode(bool darkMode)
m_isDarkMode = darkMode;
m_settings->setValue("DarkMode", darkMode);

setIconTheme(darkMode ? "Crule-dark" : "Crule");

updateGtk3Config();

emit darkModeChanged(m_isDarkMode);
Expand Down Expand Up @@ -456,7 +458,7 @@ void ThemeManager::updateGtk3Config()
// dark mode
settings.setValue("gtk-application-prefer-dark-theme", isDarkMode());
// icon theme
settings.setValue("gtk-icon-theme-name", isDarkMode() ? "Crule-dark" : "Crule");
settings.setValue("gtk-icon-theme-name", m_iconTheme);
// other
settings.setValue("gtk-enable-animations", true);
// theme
Expand Down

0 comments on commit df9a62b

Please sign in to comment.