diff options
author | Sebastian Kügler <sebas@kde.org> | 2015-10-09 02:45:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-09 12:51:42 -0700 |
commit | 77fa4e37c852d29b12cd46b00497cdfc0ab0f344 (patch) | |
tree | 8059a819b73a734765c56fb0e5f8df2a971154e1 /qt-mobile/theme | |
parent | 431b5e07fe6eaa1383b86a5ab16953897f642ebf (diff) | |
download | subsurface-77fa4e37c852d29b12cd46b00497cdfc0ab0f344.tar.gz |
QML-UI: add more properties to Units and Theme
- colors for accentuation (background and text)
- text color to paint on highlights
- units.spacing (derived from gridUnit, so it's dpi-corrected)
- port main.qml, especially the application header to this theming and
sizing
Signed-off-by: Sebastian Kügler <sebas@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/theme')
-rw-r--r-- | qt-mobile/theme/Theme.qml | 3 | ||||
-rw-r--r-- | qt-mobile/theme/Units.qml | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/qt-mobile/theme/Theme.qml b/qt-mobile/theme/Theme.qml index 5eed83fe8..021b2f2aa 100644 --- a/qt-mobile/theme/Theme.qml +++ b/qt-mobile/theme/Theme.qml @@ -1,7 +1,10 @@ import QtQuick 2.3 QtObject { + property color accentColor: "#114d6f" + property color accentTextColor: "#ececec" property color textColor: "#333333" property color backgroundColor: "#ececec" property color highlightColor: "#91c4e1" + property color highlightTextColor: "#333333" }
\ No newline at end of file diff --git a/qt-mobile/theme/Units.qml b/qt-mobile/theme/Units.qml index 73ee3f8cf..6b477b089 100644 --- a/qt-mobile/theme/Units.qml +++ b/qt-mobile/theme/Units.qml @@ -2,4 +2,5 @@ import QtQuick 2.3 QtObject { property int gridUnit: 24 + property int spacing: gridUnit / 3 }
\ No newline at end of file |