Skip to content

Commit abf00d2

Browse files
committed
Merge #396 [master] Central_Customization
2 parents 05e0f5f + 2545339 commit abf00d2

30 files changed

Lines changed: 295 additions & 0 deletions

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ endif()
2828

2929
set(BIN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
3030

31+
set(NMC_RCC_FILE "nmctheme_v1.rcc")
32+
configure_file(${CMAKE_SOURCE_DIR}/${NMC_RCC_FILE} "${BIN_OUTPUT_DIRECTORY}/${NMC_RCC_FILE}" COPYONLY)
33+
3134
include(${CMAKE_SOURCE_DIR}/NEXTCLOUD.cmake)
3235

3336
set(QT_VERSION_MAJOR "6")
@@ -364,6 +367,7 @@ configure_file(version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
364367
if(BUILD_OWNCLOUD_OSX_BUNDLE)
365368
install(FILES sync-exclude.lst DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources/)
366369
configure_file(sync-exclude.lst bin/${OWNCLOUD_OSX_BUNDLE}/Contents/Resources/sync-exclude.lst COPYONLY)
370+
install(FILES nmctheme_v1.rcc DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources/)
367371
elseif(BUILD_CLIENT)
368372
install( FILES sync-exclude.lst DESTINATION ${SYSCONFDIR}/${APPLICATION_SHORTNAME} )
369373
configure_file(sync-exclude.lst bin/sync-exclude.lst COPYONLY)

nmctheme_v1.rcc

4.11 MB
Binary file not shown.

src/gui/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ if(NOT BUILD_OWNCLOUD_OSX_BUNDLE)
609609
install(FILES ${VISUAL_ELEMENTS} DESTINATION bin/visualelements)
610610
install(FILES "${theme_dir}/${APPLICATION_EXECUTABLE}.VisualElementsManifest.xml" DESTINATION bin)
611611
install(FILES ${client_I18N} DESTINATION i18n)
612+
install(FILES ${CMAKE_SOURCE_DIR}/nmctheme_v1.rcc DESTINATION bin)
612613
endif()
613614

614615
# we may not add MACOSX_BUNDLE here, if not building one

src/gui/main.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ int main(int argc, char **argv)
5656
qputenv("QML_IMPORT_PATH", (QDir::currentPath() + QStringLiteral("/qml")).toLatin1());
5757
#endif
5858

59+
bool resourceLoaded = false;
60+
const QString currentPath = QDir::currentPath();
61+
62+
if (Utility::isMac()) {
63+
resourceLoaded = QResource::registerResource(QDir::toNativeSeparators("/Applications/MagentaCLOUD.app/Contents/Resources/nmctheme_v1.rcc"));
64+
}
65+
66+
if (Utility::isWindows() || !resourceLoaded) {
67+
resourceLoaded = QResource::registerResource(QDir::toNativeSeparators(currentPath + "/nmctheme_v1.rcc"));
68+
}
69+
5970
Q_INIT_RESOURCE(resources);
6071
Q_INIT_RESOURCE(theme);
6172

theme.qrc.in

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,5 +291,36 @@
291291
<file>theme/chevron-double-up.svg</file>
292292
<file>theme/call-notification.wav</file>
293293
<file>theme/info.svg</file>
294+
295+
<!-- NMC CC icons -->
296+
<file>theme/NMCIcons/accountAvatarIcon.svg</file>
297+
<file>theme/NMCIcons/action-add.svg</file>
298+
<file>theme/NMCIcons/cloud-security.svg</file>
299+
<file>theme/NMCIcons/collapse-down.svg</file>
300+
<file>theme/NMCIcons/collapse-right.svg</file>
301+
<file>theme/NMCIcons/configuration1.png</file>
302+
<file>theme/NMCIcons/configuration2.png</file>
303+
<file>theme/NMCIcons/configuration3.png</file>
304+
<file>theme/NMCIcons/logout.svg</file>
305+
<file>theme/NMCIcons/navigation-left.svg</file>
306+
<file>theme/NMCIcons/navigation-right.svg</file>
307+
<file>theme/NMCIcons/pause.svg</file>
308+
<file>theme/NMCIcons/remove.svg</file>
309+
<file>theme/NMCIcons/website.svg</file>
310+
311+
<!-- NMC CMW icons -->
312+
<file>theme/NMCIcons/accountAvatarIcon-white.svg</file>
313+
<file>theme/NMCIcons/logout-white.svg</file>
314+
<file>theme/NMCIcons/pause-white.svg</file>
315+
<file>theme/NMCIcons/remove-white.svg</file>
316+
<file>theme/NMCIcons/website-white.svg</file>
317+
<file>theme/close-white.svg</file>
318+
<file>theme/more-white.svg</file>
319+
<file>theme/settings-white.svg</file>
320+
321+
<!-- NMC RWI icons -->
322+
<file>theme/NMCIcons/ApplicationLogo.svg</file>
323+
<file>theme/NMCIcons/folderLogo.svg</file>
324+
<file>theme/NMCIcons/tlogocarrier.svg</file>
294325
</qresource>
295326
</RCC>

theme/NMCIcons/ApplicationLogo.svg

Lines changed: 16 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading

theme/NMCIcons/action-add.svg

Lines changed: 12 additions & 0 deletions
Loading

theme/NMCIcons/cloud-security.svg

Lines changed: 7 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)