mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Small size and selection improvements for the settings page
This commit is contained in:
parent
f51188df15
commit
34abae0c42
1 changed files with 9 additions and 7 deletions
|
@ -92,12 +92,10 @@ Rectangle {
|
||||||
roleValue: model.type
|
roleValue: model.type
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
|
|
||||||
//Layout.column: model.type == UserSettingsModel.SectionTitle ? 0 : 1
|
|
||||||
Layout.columnSpan: (model.type == UserSettingsModel.SectionTitle && !userSettingsDialog.collapsed) ? 2 : 1
|
Layout.columnSpan: (model.type == UserSettingsModel.SectionTitle && !userSettingsDialog.collapsed) ? 2 : 1
|
||||||
//Layout.row: model.index
|
|
||||||
Layout.preferredHeight: child.height
|
Layout.preferredHeight: child.height
|
||||||
Layout.preferredWidth: Math.min(child.implicitWidth, child.width || 1000)
|
Layout.preferredWidth: Math.min(child.implicitWidth, child.width || 1000)
|
||||||
Layout.fillWidth: model.type == UserSettingsModel.SectionTitle
|
Layout.fillWidth: model.type == UserSettingsModel.SectionTitle || model.type == UserSettingsModel.Options || model.type == UserSettingsModel.Number
|
||||||
Layout.rightMargin: model.type == UserSettingsModel.SectionTitle ? 0 : Nheko.paddingMedium
|
Layout.rightMargin: model.type == UserSettingsModel.SectionTitle ? 0 : Nheko.paddingMedium
|
||||||
|
|
||||||
DelegateChoice {
|
DelegateChoice {
|
||||||
|
@ -111,8 +109,8 @@ Rectangle {
|
||||||
DelegateChoice {
|
DelegateChoice {
|
||||||
roleValue: UserSettingsModel.Options
|
roleValue: UserSettingsModel.Options
|
||||||
ComboBox {
|
ComboBox {
|
||||||
Layout.preferredWidth: Math.min(200, implicitWidth)
|
anchors.right: parent.right
|
||||||
width: Math.min(200, implicitWidth)
|
width: Math.min(parent.width, implicitWidth)
|
||||||
model: r.model.values
|
model: r.model.values
|
||||||
currentIndex: r.model.value
|
currentIndex: r.model.value
|
||||||
enabled: !deadTimer.running
|
enabled: !deadTimer.running
|
||||||
|
@ -123,7 +121,8 @@ Rectangle {
|
||||||
roleValue: UserSettingsModel.Number
|
roleValue: UserSettingsModel.Number
|
||||||
|
|
||||||
SpinBox {
|
SpinBox {
|
||||||
//implicitWidth: 100
|
anchors.right: parent.right
|
||||||
|
width: Math.min(parent.width, implicitWidth)
|
||||||
enabled: !deadTimer.running && model.enabled
|
enabled: !deadTimer.running && model.enabled
|
||||||
from: model.valueLowerBound
|
from: model.valueLowerBound
|
||||||
to: model.valueUpperBound
|
to: model.valueUpperBound
|
||||||
|
@ -134,9 +133,12 @@ Rectangle {
|
||||||
}
|
}
|
||||||
DelegateChoice {
|
DelegateChoice {
|
||||||
roleValue: UserSettingsModel.ReadOnlyText
|
roleValue: UserSettingsModel.ReadOnlyText
|
||||||
Text {
|
TextEdit {
|
||||||
color: Nheko.colors.text
|
color: Nheko.colors.text
|
||||||
text: model.value
|
text: model.value
|
||||||
|
readOnly: true
|
||||||
|
selectByMouse: !Settings.mobileMode
|
||||||
|
textFormat: Text.PlainText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DelegateChoice {
|
DelegateChoice {
|
||||||
|
|
Loading…
Reference in a new issue