mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile/UI: improve layout of styled ComboBox and TextField
This makes the TextFields (and the editable ComboBoxes with them) have a tighter visual experience. It also moves the indicater closer to the right edge in the ComboBox and doesn't use preferredWidth for the slim combo box as that implies a maximum width which could lead to unnecessary clipping. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9aa660e06e
commit
74bb2c49bf
3 changed files with 27 additions and 2 deletions
|
@ -8,7 +8,7 @@ TemplateComboBox {
|
|||
id: cb
|
||||
Layout.fillWidth: false
|
||||
Layout.preferredHeight: Kirigami.Units.gridUnit * 2
|
||||
Layout.preferredWidth: Kirigami.Units.gridUnit * 8
|
||||
Layout.minimumWidth: Kirigami.Units.gridUnit * 8
|
||||
contentItem: Text {
|
||||
text: cb.displayText
|
||||
font.pointSize: subsurfaceTheme.regularPointSize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue