DemoPanel tweaks
This commit is contained in:
parent
d06679aad6
commit
25c9217b6b
3 changed files with 134 additions and 135 deletions
|
|
@ -36,20 +36,20 @@ NLoader {
|
|||
anchors.fill: parent
|
||||
}
|
||||
|
||||
// Debug: Add a simple text to see if content is visible
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
anchors.margins: Style.marginXL * scaling
|
||||
|
||||
NText {
|
||||
text: "DemoPanel is working!"
|
||||
text: "DemoPanel"
|
||||
color: Colors.accentPrimary
|
||||
font.pointSize: Style.fontSizeLarge * scaling
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.topMargin: 20 * scaling
|
||||
font.pointSize: Style.fontSizeXL* scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
anchors.margins: Style.marginMedium * scaling
|
||||
anchors.topMargin: (Style.marginMedium + 40) * scaling
|
||||
|
||||
spacing: Style.marginMedium * scaling
|
||||
|
||||
// NSlider
|
||||
|
|
@ -78,11 +78,10 @@ NLoader {
|
|||
}
|
||||
NIconButton {
|
||||
icon: "refresh"
|
||||
fontPointSize: Style.fontSizeXL * scaling
|
||||
fontPointSize: Style.fontSizeLarge * scaling
|
||||
onClicked: {
|
||||
Scaling.overrideEnabled = false
|
||||
Scaling.overrideScale = 1.0
|
||||
console.log("Reset!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -103,7 +102,7 @@ NLoader {
|
|||
NIconButton {
|
||||
id: myIconButton
|
||||
icon: "celebration"
|
||||
fontPointSize: Style.fontSizeXL * scaling
|
||||
fontPointSize: Style.fontSizeLarge * scaling
|
||||
}
|
||||
|
||||
NDivider {
|
||||
|
|
@ -200,4 +199,5 @@ NLoader {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ Singleton {
|
|||
property int marginSmall: 8
|
||||
property int marginMedium: 12
|
||||
property int marginLarge: 16
|
||||
property int marginExtraLarge: 20
|
||||
property int marginXL: 24
|
||||
|
||||
// Opacity
|
||||
property real opacityNone: 0.0
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ ColumnLayout {
|
|||
font.weight: Style.fontWeightBold
|
||||
color: Colors.textPrimary
|
||||
Layout.alignment: Qt.AlignBottom | Qt.AlignRight
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue