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>
This commit is contained in:
Sebastian Kügler 2015-10-09 01:57:10 +02:00 committed by Dirk Hohndel
parent 67c306b527
commit 431b5e07fe
4 changed files with 32 additions and 0 deletions

View file

@ -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>