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>2022-01-21 18:47:08 +0300
committerHannah von Reth <vonreth@kde.org>2022-01-25 14:06:48 +0300
commit24cac4436f570dda8f708e6879a77efa8f46abc0 (patch)
treefb71699d07efd61a24f7dd109c0a698012cfa7be /cmake
parent07ab1ff1563b8fabc9a1a848285a63802b8931f7 (diff)
Fallback to owncloud sidebar icons if those are missing in the branding
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/OCBundleResources.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/modules/OCBundleResources.cmake b/cmake/modules/OCBundleResources.cmake
index d205549d8..86f844b93 100644
--- a/cmake/modules/OCBundleResources.cmake
+++ b/cmake/modules/OCBundleResources.cmake
@@ -95,6 +95,10 @@ function(generate_theme TARGET OWNCLOUD_SIDEBAR_ICONS_OUT)
else()
file(GLOB_RECURSE OWNCLOUD_SIDEBAR_ICONS "${OEM_THEME_DIR}/theme/colored/*-${APPLICATION_ICON_NAME}-icon-sidebar.png")
endif()
+ if (NOT OWNCLOUD_SIDEBAR_ICONS)
+ message(WARNING "The branding does not provide sidebar icons falling back to vanilla icons")
+ file(GLOB_RECURSE OWNCLOUD_SIDEBAR_ICONS "${PROJECT_SOURCE_DIR}/theme/colored/*-owncloud-icon-sidebar.png")
+ endif()
set(${OWNCLOUD_SIDEBAR_ICONS_OUT} ${OWNCLOUD_SIDEBAR_ICONS} PARENT_SCOPE)
endfunction()