mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Use large colorful category icons in Dolphin settings
Summary: {F7324074} Ref task T10165 Depends on D23749 Test Plan: Open the Dolphin settings dialog. Reviewers: #dolphin, #vdg, ndavis, ngraham Reviewed By: #dolphin, #vdg, ndavis, ngraham Subscribers: ngraham, ndavis, kfm-devel, #vdg, #dolphin Tags: #dolphin Maniphest Tasks: T10165 Differential Revision: https://phabricator.kde.org/D23750
This commit is contained in:
parent
0c66610260
commit
dfe713edf0
|
@ -61,35 +61,35 @@ DolphinSettingsDialog::DolphinSettingsDialog(const QUrl& url, QWidget* parent) :
|
||||||
GeneralSettingsPage* generalSettingsPage = new GeneralSettingsPage(url, this);
|
GeneralSettingsPage* generalSettingsPage = new GeneralSettingsPage(url, this);
|
||||||
KPageWidgetItem* generalSettingsFrame = addPage(generalSettingsPage,
|
KPageWidgetItem* generalSettingsFrame = addPage(generalSettingsPage,
|
||||||
i18nc("@title:group General settings", "General"));
|
i18nc("@title:group General settings", "General"));
|
||||||
generalSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("view-preview")));
|
generalSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("system-file-manager")));
|
||||||
connect(generalSettingsPage, &GeneralSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
connect(generalSettingsPage, &GeneralSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
||||||
|
|
||||||
// Startup
|
// Startup
|
||||||
StartupSettingsPage* startupSettingsPage = new StartupSettingsPage(url, this);
|
StartupSettingsPage* startupSettingsPage = new StartupSettingsPage(url, this);
|
||||||
KPageWidgetItem* startupSettingsFrame = addPage(startupSettingsPage,
|
KPageWidgetItem* startupSettingsFrame = addPage(startupSettingsPage,
|
||||||
i18nc("@title:group", "Startup"));
|
i18nc("@title:group", "Startup"));
|
||||||
startupSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("go-home")));
|
startupSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-launch-feedback")));
|
||||||
connect(startupSettingsPage, &StartupSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
connect(startupSettingsPage, &StartupSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
||||||
|
|
||||||
// View Modes
|
// View Modes
|
||||||
ViewSettingsPage* viewSettingsPage = new ViewSettingsPage(this);
|
ViewSettingsPage* viewSettingsPage = new ViewSettingsPage(this);
|
||||||
KPageWidgetItem* viewSettingsFrame = addPage(viewSettingsPage,
|
KPageWidgetItem* viewSettingsFrame = addPage(viewSettingsPage,
|
||||||
i18nc("@title:group", "View Modes"));
|
i18nc("@title:group", "View Modes"));
|
||||||
viewSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("view-choose")));
|
viewSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-icons")));
|
||||||
connect(viewSettingsPage, &ViewSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
connect(viewSettingsPage, &ViewSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
||||||
|
|
||||||
// Navigation
|
// Navigation
|
||||||
NavigationSettingsPage* navigationSettingsPage = new NavigationSettingsPage(this);
|
NavigationSettingsPage* navigationSettingsPage = new NavigationSettingsPage(this);
|
||||||
KPageWidgetItem* navigationSettingsFrame = addPage(navigationSettingsPage,
|
KPageWidgetItem* navigationSettingsFrame = addPage(navigationSettingsPage,
|
||||||
i18nc("@title:group", "Navigation"));
|
i18nc("@title:group", "Navigation"));
|
||||||
navigationSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("edit-select")));
|
navigationSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-navigation")));
|
||||||
connect(navigationSettingsPage, &NavigationSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
connect(navigationSettingsPage, &NavigationSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
ServicesSettingsPage* servicesSettingsPage = new ServicesSettingsPage(this);
|
ServicesSettingsPage* servicesSettingsPage = new ServicesSettingsPage(this);
|
||||||
KPageWidgetItem* servicesSettingsFrame = addPage(servicesSettingsPage,
|
KPageWidgetItem* servicesSettingsFrame = addPage(servicesSettingsPage,
|
||||||
i18nc("@title:group", "Services"));
|
i18nc("@title:group", "Services"));
|
||||||
servicesSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("flag")));
|
servicesSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("preferences-system-services")));
|
||||||
connect(servicesSettingsPage, &ServicesSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
connect(servicesSettingsPage, &ServicesSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
||||||
|
|
||||||
// Trash
|
// Trash
|
||||||
|
@ -97,7 +97,7 @@ DolphinSettingsDialog::DolphinSettingsDialog(const QUrl& url, QWidget* parent) :
|
||||||
if (trashSettingsPage) {
|
if (trashSettingsPage) {
|
||||||
KPageWidgetItem* trashSettingsFrame = addPage(trashSettingsPage,
|
KPageWidgetItem* trashSettingsFrame = addPage(trashSettingsPage,
|
||||||
i18nc("@title:group", "Trash"));
|
i18nc("@title:group", "Trash"));
|
||||||
trashSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("trash-empty")));
|
trashSettingsFrame->setIcon(QIcon::fromTheme(QStringLiteral("user-trash")));
|
||||||
connect(trashSettingsPage, &TrashSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
connect(trashSettingsPage, &TrashSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ Comment[zh_CN]=此服务允许您配置 Dolphin 的常规设置。
|
||||||
Comment[zh_TW]=此服務允許設定 Dolphin 的一般設定。
|
Comment[zh_TW]=此服務允許設定 Dolphin 的一般設定。
|
||||||
|
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Icon=system-run
|
Icon=system-file-manager
|
||||||
Type=Service
|
Type=Service
|
||||||
X-KDE-ServiceTypes=KCModule
|
X-KDE-ServiceTypes=KCModule
|
||||||
Exec=kcmshell5 kcmdolphingeneral
|
Exec=kcmshell5 kcmdolphingeneral
|
||||||
|
|
|
@ -89,7 +89,7 @@ Comment[zh_CN]=此服务允许您配置 Dolphin 的导航。
|
||||||
Comment[zh_TW]=此服務允許設定 Dolphin 的導覽。
|
Comment[zh_TW]=此服務允許設定 Dolphin 的導覽。
|
||||||
|
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Icon=input-mouse
|
Icon=preferences-desktop-navigation
|
||||||
Type=Service
|
Type=Service
|
||||||
X-KDE-ServiceTypes=KCModule
|
X-KDE-ServiceTypes=KCModule
|
||||||
Exec=kcmshell5 kcmdolphinnavigation
|
Exec=kcmshell5 kcmdolphinnavigation
|
||||||
|
|
|
@ -44,7 +44,7 @@ Name[zh_CN]=Dolphin 服务
|
||||||
Name[zh_TW]=Dolphin 服務
|
Name[zh_TW]=Dolphin 服務
|
||||||
|
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Icon=services
|
Icon=preferences-system-services
|
||||||
Type=Service
|
Type=Service
|
||||||
X-KDE-ServiceTypes=KCModule
|
X-KDE-ServiceTypes=KCModule
|
||||||
Exec=kcmshell5 kcmdolphinservices
|
Exec=kcmshell5 kcmdolphinservices
|
||||||
|
|
|
@ -89,7 +89,7 @@ Comment[zh_CN]=此服务允许您配置 Dolphin 的视图模式。
|
||||||
Comment[zh_TW]=此服務允許設定 Dolphin 的檢視模式。
|
Comment[zh_TW]=此服務允許設定 Dolphin 的檢視模式。
|
||||||
|
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Icon=view-choose
|
Icon=preferences-desktop-icons
|
||||||
Type=Service
|
Type=Service
|
||||||
X-KDE-ServiceTypes=KCModule
|
X-KDE-ServiceTypes=KCModule
|
||||||
Exec=kcmshell5 kcmdolphinviewmodes
|
Exec=kcmshell5 kcmdolphinviewmodes
|
||||||
|
|
Loading…
Reference in a new issue