┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie CT <[email protected]>2025-04-18 11:15:38 +0000
committerMéven Car <[email protected]>2025-04-18 11:15:38 +0000
commit1525c874f7578332b6f44cae727ff23d4c7bbcd6 (patch)
treed98edf60610b5ab678a1081e68889b0f139aa192
parentc6e032e584e89f414fd6dcf3485b059e809ad00e (diff)
Use dolphin icon for dolphin windows
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).
-rw-r--r--src/main.cpp2
-rw-r--r--src/settings/dolphinsettingsdialog.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0d2f825c7..0142e01ad 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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
/**
diff --git a/src/settings/dolphinsettingsdialog.cpp b/src/settings/dolphinsettingsdialog.cpp
index d9184759e..6410d9655 100644
--- a/src/settings/dolphinsettingsdialog.cpp
+++ b/src/settings/dolphinsettingsdialog.cpp
@@ -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