Skip to content

Commit

Permalink
Revert "feat: DTK Changed-Top toolbar and Left navigation toolbar"
Browse files Browse the repository at this point in the history
This reverts commit d6dfde8.
  • Loading branch information
N0rthHXD authored and deepin-mozart committed Nov 17, 2023
1 parent abe6244 commit bf42b4c
Show file tree
Hide file tree
Showing 10 changed files with 152 additions and 114 deletions.
1 change: 1 addition & 0 deletions src/plugins/codeeditor/mainframe/toolbarmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ bool ToolBarManager::addActionItem(const QString &id, QAction *action, const QSt
break;
}
}

d->toolbar->insertAction(before, action);

if (currentIterator.value() == nullptr)
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/collaborators/collaborators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ bool Collaborators::start()
auto &ctx = dpfInstance.serviceContext();
WindowService *windowService = ctx.service<WindowService>(WindowService::name());
if (windowService) {
if (windowService->addNavigation) {
windowService->addNavigation("Git");
windowService->addNavigation("Svn");
if (windowService->addActionNavigation) {
windowService->addActionNavigation("Git", new AbstractAction(new QAction(QIcon::fromTheme("git"), QAction::tr("Git"))));
windowService->addActionNavigation("Svn", new AbstractAction(new QAction(QIcon::fromTheme("svn"), QAction::tr("Svn"))));
}
if (windowService->addCentralNavigation) {
windowService->addCentralNavigation("Git",
Expand Down
6 changes: 5 additions & 1 deletion src/plugins/core/core.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@
<file>images/open_file.png</file>
<file>images/open_project.png</file>
<file>images/reverse.png</file>
<file>images/down_arrow.png</file>
<file>images/down_arrow.png</file>
<file>images/recent.svg</file>
<file>images/svn.svg</file>
<file>images/edit.svg</file>
<file>images/git.svg</file>
</qresource>
<qresource prefix="/icons/deepin/">
<file>builtin/actions/recent_20px.svg</file>
Expand Down
7 changes: 7 additions & 0 deletions src/plugins/core/images/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/plugins/core/images/git.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/plugins/core/images/recent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/plugins/core/images/svn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bf42b4c

Please sign in to comment.