summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-26 11:39:51 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-26 11:39:51 +0530
commit1f8a3ae1e8dc3f079591ae2474663c0b1e2d4d2b (patch)
tree90db395e008233c10c7f2747a49163581acf6031 /resources
parentremove old quick switcher (diff)
downloadnheko-1f8a3ae1e8dc3f079591ae2474663c0b1e2d4d2b.tar.xz
changed bottomToTop to true and renamed textWidth to textHeight
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/QuickSwitcher.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/qml/QuickSwitcher.qml b/resources/qml/QuickSwitcher.qml
index 51924c5f..ab037d4e 100644
--- a/resources/qml/QuickSwitcher.qml
+++ b/resources/qml/QuickSwitcher.qml
@@ -5,7 +5,7 @@ import im.nheko 1.0
 Popup {
     id: quickSwitcher
 
-    property int textWidth: 48
+    property int textHeight: 48
     property int textMargin: 8
 
     x: parent.width / 2 - width / 2
@@ -24,7 +24,7 @@ Popup {
         id: roomTextInput
 
         anchors.fill: parent
-        font.pixelSize: quickSwitcher.textWidth - 18
+        font.pixelSize: quickSwitcher.textHeight * 0.6
         padding: textMargin
         color: colors.text
 
@@ -53,10 +53,10 @@ Popup {
         y: roomTextInput.y + roomTextInput.height + 5
         width: parent.width + 10
         completerName: "room"
-        bottomToTop: true
+        bottomToTop: false
         fullWidth: true
-        avatarHeight: textWidth
-        avatarWidth: textWidth
+        avatarHeight: textHeight
+        avatarWidth: textHeight
         centerRowContent: false
         rowMargin: 8
         rowSpacing: 6