Skip to content

Commit

Permalink
chore: remove old app icons
Browse files Browse the repository at this point in the history
Log:
Change-Id: Icd203a503624a2e1ddcb33d7edb375dc4b1642d3
  • Loading branch information
deepin-mozart committed Dec 7, 2023
1 parent 0db9b50 commit 4e7f50c
Show file tree
Hide file tree
Showing 11 changed files with 132 additions and 12 deletions.
2 changes: 1 addition & 1 deletion debian/deepin-unioncode.install
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/usr/bin/deepin-unioncode
/usr/share/deepin-unioncode
/usr/share/deepin-unioncode/configures/*.support
/usr/share/deepin-unioncode/configures/icons/*.png
/usr/share/deepin-unioncode/configures/icons/*.svg
/usr/share/deepin-unioncode/templates/*
/usr/share/applications/*.desktop
/usr/lib/*/deepin-unioncode/lib*.so*
Expand Down
2 changes: 1 addition & 1 deletion rpm/deepin-unioncode.spec
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ popd
%{_libdir}/%name/tools/**
%{_datadir}/applications/unioncode.desktop
%{_datadir}/%name/configures/*.support
%{_datadir}/%name/configures/icons/*.png
%{_datadir}/%name/configures/icons/*.svg
%{_datadir}/%name/translations/*.qm
%{_datadir}/%name/templates/**
%{_datadir}/%name/unioncode-qtermwidget/**
Expand Down
2 changes: 1 addition & 1 deletion src/configures/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
file(GLOB SUPPORTFILES "${CMAKE_CURRENT_SOURCE_DIR}/*.support")
file(GLOB DESKTOPFILES "${CMAKE_CURRENT_SOURCE_DIR}/*.desktop")
file(GLOB ICON "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
file(GLOB ICON "${CMAKE_CURRENT_SOURCE_DIR}/*.svg")

install(FILES ${SUPPORTFILES} DESTINATION "${SOURCES_INSTALL_RPEFIX}/configures")
install(FILES ${DESKTOPFILES} DESTINATION "/usr/share/applications")
Expand Down
Binary file removed src/configures/deepin-unioncode.png
Binary file not shown.
63 changes: 63 additions & 0 deletions src/configures/ide_32px.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/configures/unioncode.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Categories=Utility;TextEditor;Development;IDE;
Comment=Code Editing. Redefined.
Exec=/usr/bin/deepin-unioncode
GenericName=Text Editor
Icon=/usr/share/deepin-unioncode/configures/icons/deepin-unioncode.png
Icon=/usr/share/deepin-unioncode/configures/icons/ide_32px.svg
Keywords=deepin-unioncode;
MimeType=text/plain;application/x-code-workspace;
Name=Deepin Union Code
Expand Down
63 changes: 63 additions & 0 deletions src/plugins/core/actions/ide_32px.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions src/plugins/core/core.qrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<RCC>
<qresource prefix="/core">
<file>images/[email protected]</file>
<file>images/[email protected]</file>
</qresource>
<qresource prefix="/icons/deepin/builtin">
<file>texts/recent-navigation_20px.svg</file>
<file>texts/edit-navigation_20px.svg</file>
<file>actions/ide_32px.svg</file>
</qresource>
</RCC>

Binary file removed src/plugins/core/images/[email protected]
Binary file not shown.
Binary file removed src/plugins/core/images/[email protected]
Binary file not shown.
5 changes: 1 addition & 4 deletions src/plugins/core/mainframe/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

DWIDGET_USE_NAMESPACE

const QString ICON_LOGO_128PX = ":/core/images/[email protected]";

AboutDialog::AboutDialog(QWidget *parent)
: DAbstractDialog(parent)
{
Expand All @@ -38,8 +36,7 @@ void AboutDialog::setupUi()
titleBar->setTitle(QString(tr("About Deepin Union Code")));

DLabel *logoLabel = new DLabel(this);
logoLabel->setText("aaa");
logoLabel->setPixmap(QPixmap(ICON_LOGO_128PX));
logoLabel->setPixmap(QPixmap(QIcon::fromTheme("ide").pixmap(32, 32)));

QString buildDateInfo = tr("<br/>Built on %1 %2 in %3<br/>")
.arg(QLatin1String(__DATE__), QLatin1String(__TIME__), ProcessUtil::localPlatform());
Expand Down

0 comments on commit 4e7f50c

Please sign in to comment.