Skip to content

Commit 2286f93

Browse files
committed
Merge #396 [master] Central_Customization
2 parents f38dcb5 + 18fcfcb commit 2286f93

30 files changed

Lines changed: 296 additions & 4 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")
@@ -366,6 +369,7 @@ configure_file(version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
366369
if(BUILD_OWNCLOUD_OSX_BUNDLE)
367370
install(FILES sync-exclude.lst DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources/)
368371
configure_file(sync-exclude.lst bin/${OWNCLOUD_OSX_BUNDLE}/Contents/Resources/sync-exclude.lst COPYONLY)
372+
install(FILES nmctheme_v1.rcc DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources/)
369373
elseif(BUILD_CLIENT)
370374
install( FILES sync-exclude.lst DESTINATION ${SYSCONFDIR}/${APPLICATION_SHORTNAME} )
371375
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
@@ -597,6 +597,7 @@ if(NOT BUILD_OWNCLOUD_OSX_BUNDLE)
597597
install(FILES ${VISUAL_ELEMENTS} DESTINATION bin/visualelements)
598598
install(FILES "${theme_dir}/${APPLICATION_EXECUTABLE}.VisualElementsManifest.xml" DESTINATION bin)
599599
install(FILES ${client_I18N} DESTINATION i18n)
600+
install(FILES ${CMAKE_SOURCE_DIR}/nmctheme_v1.rcc DESTINATION bin)
600601
endif()
601602

602603
# 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
@@ -64,6 +64,17 @@ int main(int argc, char **argv)
6464
qputenv("QML_IMPORT_PATH", (QDir::currentPath() + QStringLiteral("/qml")).toLatin1());
6565
#endif
6666

67+
bool resourceLoaded = false;
68+
const QString currentPath = QDir::currentPath();
69+
70+
if (Utility::isMac()) {
71+
resourceLoaded = QResource::registerResource(QDir::toNativeSeparators("/Applications/MagentaCLOUD.app/Contents/Resources/nmctheme_v1.rcc"));
72+
}
73+
74+
if (Utility::isWindows() || !resourceLoaded) {
75+
resourceLoaded = QResource::registerResource(QDir::toNativeSeparators(currentPath + "/nmctheme_v1.rcc"));
76+
}
77+
6778
Q_INIT_RESOURCE(resources);
6879
Q_INIT_RESOURCE(theme);
6980

theme.qrc.in

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,37 @@
290290
<file>theme/talk-app.svg</file>
291291
<file>theme/chevron-double-up.svg</file>
292292
<file>theme/call-notification.wav</file>
293-
<file>theme/info.svg</file>
294-
<file>theme/file-open.svg</file>
295-
<file>theme/backup.svg</file>
296-
<file>theme/convert_to_text.svg</file>
293+
<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>
297325
</qresource>
298326
</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)