X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=icons%2FCMakeLists.txt;h=fab63f66adc98a0b46a5503866f5bee0c195e30e;hp=7f3f6a2262351f3cbd5e037c1cfc64d30d1af044;hb=f788ce32deb5df0351488c908fd5bacd25d7b6cf;hpb=7d4dbdf00ab92e8c322656bd2d4d7034ef547001 diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt index 7f3f6a22..fab63f66 100644 --- a/icons/CMakeLists.txt +++ b/icons/CMakeLists.txt @@ -7,6 +7,9 @@ if (WANT_MONO OR WANT_QTCLIENT) set(BUNDLED_ICON_THEME_DIR ${CMAKE_SOURCE_DIR}/3rdparty/icons) + # Always embed a hicolor fallback containing the most important (e.g. tray) icons + list(APPEND ICON_RCS ${CMAKE_CURRENT_SOURCE_DIR}/hicolor_icons.qrc) + if (EMBED_DATA) # Always embed quassel-specific icons message(STATUS "Embedding Quassel-specific icons") @@ -55,6 +58,12 @@ if (WANT_MONO OR WANT_QTCLIENT) # hicolor contains the application icon in all relevant sizes install(DIRECTORY hicolor DESTINATION ${CMAKE_INSTALL_ICONDIR}) + if (USE_QT4 OR (USE_QT5 AND Qt5Core_VERSION VERSION_LESS 5.5.0)) + # Qt 4 doesn't seem to correctly load icons from injected themes + # Install Quassel-specific ones from Oxygen into hicolor as fallback + install(DIRECTORY oxygen/ DESTINATION ${CMAKE_INSTALL_ICONDIR}/hicolor) + endif() + # For a system install, also copy to pixmaps if (CMAKE_INSTALL_PREFIX STREQUAL "/usr") install(FILES hicolor/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps)