mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Better theme information page
Bit nicer layout so my eyes don't insta-bleed when checking this page. Also add information about the size of the rootItem, that's really useful to know what kind of constraints we're dealing with. Signed-off-by: Sebastian Kügler <sebas@kde.org>
This commit is contained in:
parent
b928dff3ce
commit
d9cfdc3b69
2 changed files with 15 additions and 7 deletions
|
@ -5,10 +5,10 @@ import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
||||||
GridLayout {
|
GridLayout {
|
||||||
id: themetest
|
id: themetest
|
||||||
columns: 2
|
columns: 2
|
||||||
|
anchors.margins: MobileComponents.Units.gridUnit
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Heading {
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
Layout.fillHeight: true
|
|
||||||
text: "Theme Information"
|
text: "Theme Information"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,14 +17,21 @@ GridLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: "MobileComponents.Units.gridUnit:"
|
text: "Geometry:"
|
||||||
|
}
|
||||||
|
MobileComponents.Label {
|
||||||
|
text: rootItem.width + "x" + rootItem.height
|
||||||
|
}
|
||||||
|
|
||||||
|
MobileComponents.Label {
|
||||||
|
text: "Units.gridUnit:"
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: MobileComponents.Units.gridUnit
|
text: MobileComponents.Units.gridUnit
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: "MobileComponents.Units.devicePixelRatio:"
|
text: "Units.devicePixelRatio:"
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: MobileComponents.Units.devicePixelRatio
|
text: MobileComponents.Units.devicePixelRatio
|
||||||
|
@ -46,20 +53,20 @@ GridLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: "hand-computed devicePixelRatio:"
|
text: "FontMetrics devicePixelRatio:"
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: fm.height / fm.font.pointSize
|
text: fm.height / fm.font.pointSize
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
MobileComponents.Label {
|
||||||
text: "Text item pixelSize:"
|
text: "Text item pixelSize:"
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
text: font.pixelSize
|
text: font.pixelSize
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
MobileComponents.Label {
|
||||||
text: "Text item pointSize:"
|
text: "Text item pointSize:"
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
|
|
@ -9,6 +9,7 @@ import org.subsurfacedivelog.mobile 1.0
|
||||||
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
||||||
|
|
||||||
MobileComponents.ApplicationWindow {
|
MobileComponents.ApplicationWindow {
|
||||||
|
id: rootItem
|
||||||
title: qsTr("Subsurface mobile")
|
title: qsTr("Subsurface mobile")
|
||||||
property bool fullscreen: true
|
property bool fullscreen: true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue