Skip to content

Commit

Permalink
rename icon file and add raster versions for Freedesktop standards
Browse files Browse the repository at this point in the history
The Flathub manifest renames the icon and generates PNGs to work
around this.
  • Loading branch information
Be-ing committed Aug 15, 2021
1 parent 05016f8 commit 6a71a2b
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 15 deletions.
14 changes: 5 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1349,16 +1349,12 @@ if(UNIX AND NOT APPLE)

# Icon files for menu entry
install(
FILES
"${CMAKE_CURRENT_SOURCE_DIR}/res/images/icons/mixxx.svg"
DESTINATION
"${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps"
)
install(
FILES
"${CMAKE_CURRENT_SOURCE_DIR}/res/images/icons/mixxx.png"
DIRECTORY
"${CMAKE_CURRENT_SOURCE_DIR}/res/images/icons"
DESTINATION
"${CMAKE_INSTALL_DATADIR}/icons/hicolor/32x32/apps"
"${CMAKE_INSTALL_DATADIR}/icons/hicolor"
# This file is for Windows.
PATTERN ic_mixxx.ico EXCLUDE
)

# .metainfo.xml file for KDE/GNOME AppStream initiative
Expand Down
Binary file added res/images/icons/128x128/apps/org.mixxx.Mixxx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/icons/256x256/apps/org.mixxx.Mixxx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/icons/32x32/apps/org.mixxx.Mixxx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/icons/512x512/apps/org.mixxx.Mixxx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/icons/64x64/apps/org.mixxx.Mixxx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/images/icons/mixxx.png
Binary file not shown.
File renamed without changes
2 changes: 1 addition & 1 deletion res/linux/mixxx.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Comment[de]=Ein digitales DJ-System
Comment[fr]=Une interface numérique pour DJ
Exec=sh -c "pasuspender -- mixxx -platform xcb || mixxx -platform xcb"
Terminal=false
Icon=mixxx
Icon=org.mixxx.Mixxx
Type=Application
StartupNotify=true
Categories=Qt;AudioVideo;Audio;Midi;Mixer;Player;Recorder;Sequencer;
2 changes: 1 addition & 1 deletion res/linux/mixxx.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- Author 2014 Tuukka Pasanen <pasanen.tuukka@gmail.com> -->
<component type="desktop-application">
<id>org.mixxx.Mixxx</id>
<launchable type="desktop-id">mixxx.desktop</launchable>
<launchable type="desktop-id">org.mixxx.Mixxx.desktop</launchable>
<metadata_license>CC-BY-SA-3.0</metadata_license>
<project_license>GPL-2.0</project_license>
<name>Mixxx DJ Software</name>
Expand Down
2 changes: 1 addition & 1 deletion res/mixxx.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<file>images/library/ic_library_serato.svg</file>
<!-- logo and icons for 'About' dialog -->
<file>images/mixxx_logo.svg</file>
<file>images/icons/mixxx.svg</file>
<file>images/icons/scalable/apps/org.mixxx.Mixxx.svg</file>
<file>images/heart_icon_light.svg</file>
<file>images/heart_icon_dark.svg</file>
<file>images/heart_icon_rainbow.svg</file>
Expand Down
2 changes: 1 addition & 1 deletion src/dialog/dlgabout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
DlgAbout::DlgAbout(QWidget* parent) : QDialog(parent), Ui::DlgAboutDlg() {
setupUi(this);

mixxx_icon->load(QString(":/images/icons/mixxx.svg"));
mixxx_icon->load(QString(":/images/icons/scalable/apps/org.mixxx.Mixxx.svg"));
mixxx_logo->load(QString(":/images/mixxx_logo.svg"));

version_label->setText(VersionStore::applicationName() +
Expand Down
2 changes: 1 addition & 1 deletion src/library/scanner/libraryscannerdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
LibraryScannerDlg::LibraryScannerDlg(QWidget* parent, Qt::WindowFlags f)
: QWidget(parent, f),
m_bCancelled(false) {
setWindowIcon(QIcon(":/images/icons/mixxx.svg"));
setWindowIcon(QIcon(":/images/icons/scalable/apps/org.mixxx.Mixxx.svg"));

QVBoxLayout* pLayout = new QVBoxLayout(this);

Expand Down
2 changes: 1 addition & 1 deletion src/preferences/upgrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ UserSettingsPointer Upgrade::versionUpgrade(const QString& settingsPath) {

bool Upgrade::askReScanLibrary() {
QMessageBox msgBox;
msgBox.setIconPixmap(QPixmap(":/images/icons/mixxx.svg"));
msgBox.setIconPixmap(QPixmap(":/images/icons/scalable/apps/org.mixxx.Mixxx.svg"));
msgBox.setWindowTitle(QMessageBox::tr("Upgrading Mixxx"));
msgBox.setText(QMessageBox::tr("Mixxx now supports displaying cover art.\n"
"Do you want to scan your library for cover files now?"));
Expand Down

0 comments on commit 6a71a2b

Please sign in to comment.