From: Claudio Cambra Date: Wed, 6 Jul 2022 16:09:11 +0000 (+0200) Subject: Use macOS-specific application icon X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~15^2~104^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fee45e4409449852bf05acb46f8269232bbe1b63;p=nextcloud-desktop.git Use macOS-specific application icon Signed-off-by: Claudio Cambra --- diff --git a/NEXTCLOUD.cmake b/NEXTCLOUD.cmake index 69464cfcc..67b56ccc5 100644 --- a/NEXTCLOUD.cmake +++ b/NEXTCLOUD.cmake @@ -5,7 +5,14 @@ set( APPLICATION_DOMAIN "nextcloud.com" ) set( APPLICATION_VENDOR "Nextcloud GmbH" ) set( APPLICATION_UPDATE_URL "https://updates.nextcloud.org/client/" CACHE STRING "URL for updater" ) set( APPLICATION_HELP_URL "" CACHE STRING "URL for the help menu" ) -set( APPLICATION_ICON_NAME "Nextcloud" ) + +if(APPLE AND APPLICATION_NAME STREQUAL "Nextcloud" AND EXISTS "${CMAKE_SOURCE_DIR}/theme/colored/Nextcloud-macOS-icon.svg") + set( APPLICATION_ICON_NAME "Nextcloud-macOS" ) + message("Using macOS-specific application icon: ${APPLICATION_ICON_NAME}") +else() + set( APPLICATION_ICON_NAME "${APPLICATION_SHORTNAME}" ) +endif() + set( APPLICATION_ICON_SET "SVG" ) set( APPLICATION_SERVER_URL "" CACHE STRING "URL for the server to use. If entered, the UI field will be pre-filled with it" ) set( APPLICATION_SERVER_URL_ENFORCE ON ) # If set and APPLICATION_SERVER_URL is defined, the server can only connect to the pre-defined URL diff --git a/theme/colored/Nextcloud-icon-Big-Sur.svg b/theme/colored/Nextcloud-icon-Big-Sur.svg deleted file mode 100644 index 571fcdf5b..000000000 --- a/theme/colored/Nextcloud-icon-Big-Sur.svg +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/theme/colored/Nextcloud-macOS-icon.svg b/theme/colored/Nextcloud-macOS-icon.svg new file mode 100644 index 000000000..571fcdf5b --- /dev/null +++ b/theme/colored/Nextcloud-macOS-icon.svg @@ -0,0 +1,287 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme/colored/Nextcloud-macOS-sidebar.svg b/theme/colored/Nextcloud-macOS-sidebar.svg new file mode 100644 index 000000000..2068bc8d2 --- /dev/null +++ b/theme/colored/Nextcloud-macOS-sidebar.svg @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/theme/colored/Nextcloud-sidebar.svg b/theme/colored/Nextcloud-sidebar.svg deleted file mode 100644 index 2068bc8d2..000000000 --- a/theme/colored/Nextcloud-sidebar.svg +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - -