Skip to content

Commit

Permalink
Explicitly size and align user status selector text input to avoid bu…
Browse files Browse the repository at this point in the history
…gs with alternate QtQuick styles

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 25, 2022
1 parent fc484dc commit 9d32f9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/UserStatusSelector.qml
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,20 @@ ColumnLayout {

TextField {
id: userStatusMessageTextField

property color borderColor: activeFocus ? Style.ncBlue : Style.menuBorder

Layout.fillWidth: true
Layout.preferredHeight: contentHeight + (Style.smallSpacing * 2)

placeholderText: qsTr("What is your status?")
placeholderTextColor: Style.ncSecondaryTextColor
text: userStatusSelectorModel.userStatusMessage
color: Style.ncTextColor
verticalAlignment: TextInput.AlignVCenter
selectByMouse: true
onEditingFinished: userStatusSelectorModel.userStatusMessage = text

property color borderColor: activeFocus ? Style.ncBlue : Style.menuBorder

background: Rectangle {
radius: Style.slightlyRoundedButtonRadius
color: Style.backgroundColor
Expand Down

0 comments on commit 9d32f9a

Please sign in to comment.