This website requires JavaScript.
Explore
Help
Sign in
mifr
/
subsurface
Watch
1
Star
0
Fork
You've already forked subsurface
0
mirror of
https://github.com/subsurface/subsurface.git
synced
2024-11-29 13:40:20 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
77fa4e37c8
subsurface
/
qt-mobile
/
theme
/
Units.qml
6 lines
95 B
QML
Raw
Normal View
History
Unescape
Escape
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>
2015-10-08 23:57:10 +00:00
import
QtQuick
2.3
QtObject
{
property
int
gridUnit:
24
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>
2015-10-09 00:45:22 +00:00
property
int
spacing:
gridUnit
/
3
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>
2015-10-08 23:57:10 +00:00
}
Reference in a new issue
Copy permalink