mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
feat(ui/modules/Common/Form/TransparentTextInput): background color has the same size that content
This commit is contained in:
parent
20ec85a029
commit
65dd1940c0
2 changed files with 8 additions and 4 deletions
|
|
@ -25,13 +25,16 @@ Item {
|
|||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: textInput.activeFocus && !readOnly
|
||||
color: textInput.activeFocus && !textInput.readOnly
|
||||
? TransparentTextInputStyle.backgroundColor
|
||||
: // No Style constant, see component name.
|
||||
// It's a `transparent` TextInput.
|
||||
'transparent'
|
||||
z: -1
|
||||
'transparent'
|
||||
height: parent.height
|
||||
width: {
|
||||
var width = textInput.contentWidth + parent.padding * 2
|
||||
return width < parent.width ? width : parent.width
|
||||
}
|
||||
}
|
||||
|
||||
TextInput {
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ ColumnLayout {
|
|||
id: infoList
|
||||
|
||||
width: flick.contentWidth
|
||||
|
||||
ListForm {
|
||||
defaultData: _contact.sipAddresses
|
||||
placeholder: qsTr('sipAccountsInput')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue