Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-02-02 17:48:30 +0300
committerHannah von Reth <vonreth@kde.org>2021-02-02 18:18:07 +0300
commit4bbffa4c5ef7dbf2b4b4ad636ef4d3901532af6a (patch)
tree869752f4ae02d0b56e4057bbdca10350f2bcc994 /cmake
parent9caf6636d62cf153862fd33fe47d7332922af468 (diff)
Fix branded mac sidebar icons
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/OCGenerateTheme.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/modules/OCGenerateTheme.cmake b/cmake/modules/OCGenerateTheme.cmake
index 86381ad69..3913f4a09 100644
--- a/cmake/modules/OCGenerateTheme.cmake
+++ b/cmake/modules/OCGenerateTheme.cmake
@@ -30,7 +30,7 @@ function(__addIcon THEME ICON_NAME)
endif()
endfunction()
-function(generate_theme TARGET)
+function(generate_theme TARGET OWNCLOUD_SIDEBAR_ICONS_OUT)
if(NOT "${OEM_THEME_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
set(QRC ${CMAKE_BINARY_DIR}/theme.qrc)
file(WRITE "${QRC}" "<RCC>\n<qresource prefix=\"/client/${APPLICATION_SHORTNAME}\">\n")
@@ -46,7 +46,12 @@ function(generate_theme TARGET)
endforeach()
file(APPEND "${QRC}" "</qresource>\n</RCC>\n")
target_sources(${TARGET} PRIVATE ${QRC})
+ # add executable icon on windows and osx
+ file(GLOB_RECURSE OWNCLOUD_SIDEBAR_ICONS "${OEM_THEME_DIR}/theme/colored/*-${APPLICATION_ICON_NAME}-sidebar.png")
+ else()
+ file(GLOB_RECURSE OWNCLOUD_SIDEBAR_ICONS "${OEM_THEME_DIR}/theme/colored/*-${APPLICATION_ICON_NAME}-icon-sidebar.png")
endif()
+ set(${OWNCLOUD_SIDEBAR_ICONS_OUT} ${OWNCLOUD_SIDEBAR_ICONS} PARENT_SCOPE)
endfunction()