mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +03:00
Fix BasicComboBox internal layout, take proper account of insets
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
34d5b82fa8
commit
1cf2b59be2
1 changed files with 9 additions and 4 deletions
|
@ -24,7 +24,10 @@ import "./tray"
|
||||||
ComboBox {
|
ComboBox {
|
||||||
id: clearComboBox
|
id: clearComboBox
|
||||||
|
|
||||||
padding: Style.standardSpacing
|
topPadding: Style.smallSpacing + topInset
|
||||||
|
leftPadding: Style.smallSpacing + leftInset
|
||||||
|
rightPadding: Style.smallSpacing + rightInset
|
||||||
|
bottomPadding: Style.smallSpacing + bottomInset
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
radius: Style.slightlyRoundedButtonRadius
|
radius: Style.slightlyRoundedButtonRadius
|
||||||
|
@ -33,7 +36,7 @@ ComboBox {
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItem: EnforcedPlainTextLabel {
|
contentItem: EnforcedPlainTextLabel {
|
||||||
leftPadding: 0
|
leftPadding: clearComboBox.leftPadding
|
||||||
rightPadding: clearComboBox.indicator.width + clearComboBox.spacing
|
rightPadding: clearComboBox.indicator.width + clearComboBox.spacing
|
||||||
|
|
||||||
text: clearComboBox.displayText
|
text: clearComboBox.displayText
|
||||||
|
@ -43,8 +46,10 @@ ComboBox {
|
||||||
}
|
}
|
||||||
|
|
||||||
indicator: ColorOverlay {
|
indicator: ColorOverlay {
|
||||||
x: clearComboBox.width - clearComboBox.rightPadding
|
anchors.right: clearComboBox.right
|
||||||
y: clearComboBox.topPadding + (clearComboBox.availableHeight - height) / 2
|
anchors.rightMargin: clearComboBox.rightPadding
|
||||||
|
anchors.verticalCenter: clearComboBox.verticalCenter
|
||||||
|
|
||||||
cached: true
|
cached: true
|
||||||
color: Style.ncTextColor
|
color: Style.ncTextColor
|
||||||
width: source.width
|
width: source.width
|
||||||
|
|
Loading…
Reference in a new issue