Merge pull request #947 from maltee1/search_button

Make search usable on mobile
pull/956/head
DeepBlueV7.X 3 years ago committed by GitHub
commit 2c9ef11254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      resources/qml/QuickSwitcher.qml
  2. 18
      resources/qml/RoomList.qml
  3. 2
      resources/qml/TimelineRow.qml

@ -13,7 +13,7 @@ Popup {
property int textHeight: Math.round(Qt.application.font.pixelSize * 2.4)
background: null
width: Math.round(parent.width / 2)
width: Math.min(Math.max(Math.round(parent.width / 2),450),parent.width) // limiting width to parent.width/2 can be a bit narrow
x: Math.round(parent.width / 2 - width / 2)
y: Math.round(parent.height / 4 - height / 2)
modal: true

@ -673,6 +673,24 @@ Page {
}
}
ImageButton {
visible: !collapsed
Layout.fillWidth: true
hoverEnabled: true
ripple: false
width: 22
height: 22
image: ":/icons/icons/ui/search.svg"
ToolTip.visible: hovered
ToolTip.delay: Nheko.tooltipDelay
ToolTip.text: qsTr("Search rooms (Ctrl+K)")
Layout.margins: Nheko.paddingMedium
onClicked: {
var quickSwitch = quickSwitcherComponent.createObject(timelineRoot);
quickSwitch.open();
}
}
ImageButton {
visible: !collapsed
Layout.fillWidth: true

@ -48,7 +48,7 @@ Item {
property bool hovered: false
width: parent.width
height: childrenRect.height
height: row.height+(reactionRow.height > 0 ? reactionRow.height-2 : 0 )
Rectangle {
color: (Settings.messageHoverHighlight && hovered) ? Nheko.colors.alternateBase : "transparent"

Loading…
Cancel
Save