aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/mobile-resources.qrc
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-10-09 01:57:10 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-09 12:51:36 -0700
commit431b5e07fe6eaa1383b86a5ab16953897f642ebf (patch)
tree85c353c4f6a06053f8b571f544be6246e52ac38e /qt-mobile/mobile-resources.qrc
parent67c306b5278753bd5cc4eefc1dbeac8cc08e7913 (diff)
downloadsubsurface-431b5e07fe6eaa1383b86a5ab16953897f642ebf.tar.gz
QML-UI: basics for theming and hi-dpi support
- Theme: For theming, we're just defining some colors centrally for now - Units: This object provides dpi-corrected sizing in the form of gridUnit. The idea is to base gridUnit on the rendered font size, so the ui scales with text size. As this interpolates font size and dpi, the sizing is rather responsive. These are the basics, now we can kill lots of hardcoded pixel values. Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/mobile-resources.qrc')
-rw-r--r--qt-mobile/mobile-resources.qrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-mobile/mobile-resources.qrc b/qt-mobile/mobile-resources.qrc
index cb31d7ea1..93cda6dc9 100644
--- a/qt-mobile/mobile-resources.qrc
+++ b/qt-mobile/mobile-resources.qrc
@@ -9,4 +9,8 @@
<file>Log.qml</file>
<file>TopBar.qml</file>
</qresource>
+ <qresource prefix="/qml/theme">
+ <file alias="Theme.qml">theme/Theme.qml</file>
+ <file alias="Units.qml" >theme/Units.qml</file>
+ </qresource>
</RCC>