Skip to content

Commit

Permalink
Fix unified search input placeholder text alignment and radius.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Sep 12, 2024
1 parent 2006fec commit 9c07d8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/gui/tray/UnifiedSearchInputContainer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/gui/tray/Window.qml
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ ApplicationWindow {

UnifiedSearchInputContainer {
id: trayWindowUnifiedSearchInputContainer
height: Style.trayWindowHeaderHeight * 0.65
height: Math.max(Style.talkReplyTextFieldPreferredHeight, contentHeight)

anchors {
top: trayWindowHeaderBackground.bottom
Expand Down

0 comments on commit 9c07d8e

Please sign in to comment.