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 <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra committed Nov 25, 2022
1 parent 4f21aa5 commit 153176c
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 @@ -205,16 +205,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 153176c

Please sign in to comment.