added settings options
This commit is contained in:
@@ -28,6 +28,7 @@ RowLayout {
|
||||
CustomTextField {
|
||||
id: textField
|
||||
|
||||
implicitHeight: upButton.implicitHeight
|
||||
inputMethodHints: Qt.ImhFormattedNumbersOnly
|
||||
leftPadding: Appearance.padding.normal
|
||||
padding: Appearance.padding.small
|
||||
@@ -37,7 +38,7 @@ RowLayout {
|
||||
background: CustomRect {
|
||||
color: DynamicColors.tPalette.m3surfaceContainerHigh
|
||||
implicitWidth: 100
|
||||
radius: Appearance.rounding.small
|
||||
radius: Appearance.rounding.full
|
||||
}
|
||||
validator: DoubleValidator {
|
||||
bottom: root.min
|
||||
@@ -82,10 +83,12 @@ RowLayout {
|
||||
}
|
||||
|
||||
CustomRect {
|
||||
id: upButton
|
||||
|
||||
color: DynamicColors.palette.m3primary
|
||||
implicitHeight: upIcon.implicitHeight + Appearance.padding.small * 2
|
||||
implicitWidth: implicitHeight
|
||||
radius: Appearance.rounding.small
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
StateLayer {
|
||||
id: upState
|
||||
@@ -119,7 +122,7 @@ RowLayout {
|
||||
color: DynamicColors.palette.m3primary
|
||||
implicitHeight: downIcon.implicitHeight + Appearance.padding.small * 2
|
||||
implicitWidth: implicitHeight
|
||||
radius: Appearance.rounding.small
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
StateLayer {
|
||||
id: downState
|
||||
|
||||
@@ -20,7 +20,7 @@ Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: row.implicitHeight + Appearance.padding.smaller * 2
|
||||
clip: false
|
||||
z: splitButton.menu.implicitHeight > 0 ? expandedZ : 1
|
||||
z: root.expanded ? expandedZ : -1
|
||||
|
||||
RowLayout {
|
||||
id: row
|
||||
@@ -36,14 +36,15 @@ Item {
|
||||
color: root.enabled ? DynamicColors.palette.m3onSurface : DynamicColors.palette.m3onSurfaceVariant
|
||||
font.pointSize: Appearance.font.size.larger
|
||||
text: root.label
|
||||
z: root.expanded ? root.expandedZ : -1
|
||||
}
|
||||
|
||||
CustomSplitButton {
|
||||
id: splitButton
|
||||
|
||||
enabled: root.enabled
|
||||
menu.z: 1
|
||||
type: CustomSplitButton.Filled
|
||||
z: root.expanded ? root.expandedZ : -1
|
||||
|
||||
menu.onItemSelected: item => {
|
||||
root.selected(item);
|
||||
|
||||
Reference in New Issue
Block a user