Skip to content

Commit da3f7be

Browse files
committed
Add UI theme support.
- Add dark theme (Night Mapping) - Themes loaded from resources\themes and ~\.qgis2\themes - Themes need folder + style.qss
1 parent 4ad6168 commit da3f7be

17 files changed

+869
-262
lines changed

python/core/qgsapplication.sip

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ static void qtgui_UpdatePyArgv(PyObject *argvlist, int argc, char **argv)
189189
//! default theme if the active theme does not have the required icon.
190190
static QPixmap getThemePixmap( const QString &theName );
191191

192+
static const QHash<QString, QString> uiThemes();
193+
194+
static void setUITheme( const QString &themeName );
195+
196+
static const QString uiThemeName();
197+
192198
//! Returns the path to user's style.
193199
static const QString userStyleV2Path();
194200

resources/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
INSTALL(FILES srs.db qgis.db symbology-ng-style.db spatialite.db customization.xml
22
DESTINATION ${QGIS_DATA_DIR}/resources)
33
INSTALL(DIRECTORY cpt-city-qgis-min DESTINATION ${QGIS_DATA_DIR}/resources)
4+
INSTALL(DIRECTORY themes DESTINATION ${QGIS_DATA_DIR}/resources)
45

56
ADD_SUBDIRECTORY(context_help)
67
ADD_SUBDIRECTORY(function_help)
Loading
Loading
191 Bytes
Loading
Lines changed: 59 additions & 0 deletions
Loading
1008 Bytes
Loading
Lines changed: 67 additions & 0 deletions
Loading
Lines changed: 56 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)