]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Use dolphin icon for dolphin windows
authorKylie CT <kyliepc@proton.me>
Fri, 18 Apr 2025 11:15:38 +0000 (11:15 +0000)
committerMéven Car <meven@kde.org>
Fri, 18 Apr 2025 11:15:38 +0000 (11:15 +0000)
intended as a fix for icon themes with different `org.kde.dolphin` and
`system-file-manager` icons
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/issues/3663#issuecomment-2798459480

Also noticed that it should also actually make the upcoming
dolphin on the icon change apply in places where setting the icon is
respected (title bar).

src/main.cpp
src/settings/dolphinsettingsdialog.cpp

index 0d2f825c76441ae05c152469440872ea6a57454f..0142e01ad65799f47512de5be9b9ae5d3dbcf90d 100644 (file)
@@ -72,7 +72,7 @@ int main(int argc, char **argv)
     KIconTheme::initTheme();
 
     QApplication app(argc, argv);
-    app.setWindowIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"), app.windowIcon()));
+    app.setWindowIcon(QIcon::fromTheme(QStringLiteral("org.kde.dolphin"), app.windowIcon()));
 
 #if HAVE_STYLE_MANAGER
     /**
index d9184759e70a3517e7d66495dfad707e438af8b5..6410d9655fe6b24360dd4ebc172378e83c703464 100644 (file)
@@ -44,7 +44,7 @@ DolphinSettingsDialog::DolphinSettingsDialog(const QUrl &url, QWidget *parent, K
     // Interface
     InterfaceSettingsPage *interfaceSettingsPage = new InterfaceSettingsPage(this);
     KPageWidgetItem *interfaceSettingsFrame = addPage(interfaceSettingsPage, i18nc("@title:group Interface settings", "Interface"));
-    interfaceSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("system-file-manager")));
+    interfaceSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("org.kde.dolphin")));
     connect(interfaceSettingsPage, &InterfaceSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
 
     // View