Skip to content

Commit

Permalink
Add UI theme support.
Browse files Browse the repository at this point in the history
- Add dark theme (Night Mapping)
- Themes loaded from resources\themes and ~\.qgis2\themes
- Themes need folder + style.qss
  • Loading branch information
NathanW2 committed Aug 28, 2015
1 parent 4ad6168 commit da3f7be
Show file tree
Hide file tree
Showing 17 changed files with 869 additions and 262 deletions.
6 changes: 6 additions & 0 deletions python/core/qgsapplication.sip
Expand Up @@ -189,6 +189,12 @@ static void qtgui_UpdatePyArgv(PyObject *argvlist, int argc, char **argv)
//! default theme if the active theme does not have the required icon.
static QPixmap getThemePixmap( const QString &theName );

static const QHash<QString, QString> uiThemes();

static void setUITheme( const QString &themeName );

static const QString uiThemeName();

This comment has been minimized.

Copy link
@m-kuhn

m-kuhn Aug 28, 2015

Member

I think there's no reason to const the return type if it's returned by value.


//! Returns the path to user's style.
static const QString userStyleV2Path();

Expand Down
1 change: 1 addition & 0 deletions resources/CMakeLists.txt
@@ -1,6 +1,7 @@
INSTALL(FILES srs.db qgis.db symbology-ng-style.db spatialite.db customization.xml
DESTINATION ${QGIS_DATA_DIR}/resources)
INSTALL(DIRECTORY cpt-city-qgis-min DESTINATION ${QGIS_DATA_DIR}/resources)
INSTALL(DIRECTORY themes DESTINATION ${QGIS_DATA_DIR}/resources)

ADD_SUBDIRECTORY(context_help)
ADD_SUBDIRECTORY(function_help)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/themes/Night Mapping/icons/check.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions resources/themes/Night Mapping/icons/cross.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/themes/Night Mapping/icons/down_arrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions resources/themes/Night Mapping/icons/eye-blocked.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions resources/themes/Night Mapping/icons/eye.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit da3f7be

Please sign in to comment.