From 9c07d8ea4af84d41291982b87a8dc8e56afb7ce4 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Thu, 12 Sep 2024 21:59:29 +0200 Subject: [PATCH] Fix unified search input placeholder text alignment and radius. Signed-off-by: Camila Ayres --- src/gui/tray/UnifiedSearchInputContainer.qml | 7 +++++++ src/gui/tray/Window.qml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gui/tray/UnifiedSearchInputContainer.qml b/src/gui/tray/UnifiedSearchInputContainer.qml index ab30760d106f0..b1c11b8f2b557 100644 --- a/src/gui/tray/UnifiedSearchInputContainer.qml +++ b/src/gui/tray/UnifiedSearchInputContainer.qml @@ -41,9 +41,16 @@ TextField { rightPadding: trayWindowUnifiedSearchTextFieldClearTextButton.width + trayWindowUnifiedSearchTextFieldClearTextButton.anchors.rightMargin + textFieldHorizontalPaddingOffset placeholderText: qsTr("Search files, messages, events …") + verticalAlignment: Qt.AlignVCenter selectByMouse: true + background: Rectangle { + border.color: palette.dark + radius: Style.trayWindowRadius + color: palette.window + } + Image { id: trayWindowUnifiedSearchTextFieldSearchIcon width: Style.trayListItemIconSize - anchors.leftMargin diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index e6771179267e3..b29d30959d8da 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -659,7 +659,7 @@ ApplicationWindow { UnifiedSearchInputContainer { id: trayWindowUnifiedSearchInputContainer - height: Style.trayWindowHeaderHeight * 0.65 + height: Math.max(Style.talkReplyTextFieldPreferredHeight, contentHeight) anchors { top: trayWindowHeaderBackground.bottom