Skip to content

Commit

Permalink
feat: update icons
Browse files Browse the repository at this point in the history
This patch unifies the icons set from 3 different icons to one. The new
icon is more colorful that the old gray one which makes it more
recognizable if you have a dark theme.

The new icons were created by NunoPinheiroKDAB and me.

fixes: #472
  • Loading branch information
lievenhey committed Jun 6, 2024
1 parent ed98313 commit d5d9cd4
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/appimage/build_appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ linuxdeploy --appdir appdir --plugin qt \
-l /usr/lib/librustc_demangle.so \
-l /usr/lib/libd_demangle.so \
-l /usr/lib64/libwayland-egl.so \
-i "$srcdir/src/images/icons/512-hotspot_app_icon.png" --icon-filename=hotspot \
-i "$srcdir/src/images/icons/128-apps-hotspot.png" --icon-filename=hotspot \
-d "./appdir/usr/share/applications/com.kdab.hotspot.desktop" \
--output appimage

Expand Down
5 changes: 1 addition & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ if(KGraphViewerPart_FOUND)
set(HOTSPOT_SRCS ${HOTSPOT_SRCS} callgraphwidget.cpp callgraphgenerator.cpp)
endif()

ecm_add_app_icon(
HOTSPOT_SRCS ICONS ${CMAKE_CURRENT_SOURCE_DIR}/images/icons/128-hotspot_app_icon.png
${CMAKE_CURRENT_SOURCE_DIR}/images/icons/512-hotspot_app_icon.png
)
ecm_add_app_icon(HOTSPOT_SRCS ICONS ${CMAKE_CURRENT_SOURCE_DIR}/images/icons/128-apps-hotspot.png)

if(QCustomPlot_FOUND)
set(HOTSPOT_SRCS ${HOTSPOT_SRCS} frequencypage.cpp)
Expand Down
Binary file modified src/images/icons/128-apps-hotspot.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 src/images/icons/128-hotspot_app_icon.png
Binary file not shown.
Binary file modified src/images/icons/16-apps-hotspot.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 modified src/images/icons/22-apps-hotspot.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 modified src/images/icons/32-apps-hotspot.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 modified src/images/icons/48-apps-hotspot.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 src/images/icons/512-hotspot_app_icon.png
Binary file not shown.
Binary file modified src/images/icons/64-apps-hotspot.png
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/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ int main(int argc, char** argv)
auto* guiApp = qobject_cast<QApplication*>(app.get());
MainWindow* window = nullptr;
if (guiApp) {
QGuiApplication::setWindowIcon(QIcon(QStringLiteral(":/images/icons/512-hotspot_app_icon.png")));
QGuiApplication::setWindowIcon(QIcon(QStringLiteral(":/images/icons/128-apps-hotspot.png")));
setupDockWidgets();
window = new MainWindow();
}
Expand Down
2 changes: 1 addition & 1 deletion src/resources.qrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<RCC>
<qresource prefix="/">
<file>images/hotspot_logo.png</file>
<file>images/icons/512-hotspot_app_icon.png</file>
<file>images/icons/128-apps-hotspot.png</file>
<file>images/kdabproducts.png</file>
<file>images/kdablogo.png</file>
<file>images/qtlogo.png</file>
Expand Down

0 comments on commit d5d9cd4

Please sign in to comment.