From 9d32f9a8d151693beaf985d2c8cbae8efcad42ac Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 25 Nov 2022 14:53:16 +0100 Subject: [PATCH] Explicitly size and align user status selector text input to avoid bugs with alternate QtQuick styles Signed-off-by: Claudio Cambra --- src/gui/UserStatusSelector.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gui/UserStatusSelector.qml b/src/gui/UserStatusSelector.qml index 80d22d61430ef..0afcbdbbafd2a 100644 --- a/src/gui/UserStatusSelector.qml +++ b/src/gui/UserStatusSelector.qml @@ -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