Install themes as part of 'make install'
Tested only on Windows; pending on MacOS/Linux
This commit is contained in:
parent
6534312968
commit
341d0c3be8
@ -131,10 +131,20 @@ SOURCES += \
|
|||||||
thememanager.cpp \
|
thememanager.cpp \
|
||||||
variablefieldswidget.cpp
|
variablefieldswidget.cpp
|
||||||
|
|
||||||
|
THEMES += \
|
||||||
|
themes/material-dark.qss \
|
||||||
|
themes/material-dark.rcc \
|
||||||
|
themes/material-light.qss \
|
||||||
|
themes/material-light.rcc \
|
||||||
|
themes/qds-dark.qss \
|
||||||
|
themes/qds-dark.rcc \
|
||||||
|
themes/qds-light.qss \
|
||||||
|
themes/qds-light.rcc \
|
||||||
|
|
||||||
QMAKE_DISTCLEAN += object_script.*
|
QMAKE_DISTCLEAN += object_script.*
|
||||||
|
|
||||||
include(../install.pri)
|
include(../install.pri)
|
||||||
|
include(../shared.pri)
|
||||||
include(../version.pri)
|
include(../version.pri)
|
||||||
include(../options.pri)
|
include(../options.pri)
|
||||||
|
|
||||||
|
@ -59,6 +59,7 @@ ThemeManager::ThemeManager()
|
|||||||
else if (themeDir_.contains(QRegularExpression("^/opt/.*/bin/")))
|
else if (themeDir_.contains(QRegularExpression("^/opt/.*/bin/")))
|
||||||
themeDir_.replace("/bin/", "/share/");
|
themeDir_.replace("/bin/", "/share/");
|
||||||
#endif
|
#endif
|
||||||
|
qDebug("Themes directory: %s", qPrintable(themeDir_));
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList ThemeManager::themeList()
|
QStringList ThemeManager::themeList()
|
||||||
|
29
shared.pri
Normal file
29
shared.pri
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#
|
||||||
|
# Qt qmake integration for installing files other than executables
|
||||||
|
# Author: Srivats P
|
||||||
|
#
|
||||||
|
# To install files other than executables, specify them in SHARED variable
|
||||||
|
# and include this file AFTER install.pri
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# SHARED = file1 file2
|
||||||
|
# include(install.pri)
|
||||||
|
# include(shared.pri)
|
||||||
|
#
|
||||||
|
|
||||||
|
macx {
|
||||||
|
shared.path = $${PREFIX}/Ostinato/Ostinato.app/Contents/SharedSupport/
|
||||||
|
} else: unix {
|
||||||
|
shared.path = $${PREFIX}/share/ostinato/
|
||||||
|
} else {
|
||||||
|
shared.path = $${PREFIX}/bin
|
||||||
|
}
|
||||||
|
shared.files = $${SHARED}
|
||||||
|
|
||||||
|
INSTALLS += shared
|
||||||
|
|
||||||
|
# Themes - need a subdir inside shared
|
||||||
|
themes.files = $${THEMES}
|
||||||
|
themes.path = $${shared.path}/themes
|
||||||
|
|
||||||
|
INSTALLS += themes
|
Loading…
Reference in New Issue
Block a user