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