changed bottomToTop to true and renamed textWidth to textHeight

This commit is contained in:
Jedi18 2021-02-26 11:39:51 +05:30
parent 68c999e5f4
commit 1f8a3ae1e8

View file

@ -5,7 +5,7 @@ import im.nheko 1.0
Popup { Popup {
id: quickSwitcher id: quickSwitcher
property int textWidth: 48 property int textHeight: 48
property int textMargin: 8 property int textMargin: 8
x: parent.width / 2 - width / 2 x: parent.width / 2 - width / 2
@ -24,7 +24,7 @@ Popup {
id: roomTextInput id: roomTextInput
anchors.fill: parent anchors.fill: parent
font.pixelSize: quickSwitcher.textWidth - 18 font.pixelSize: quickSwitcher.textHeight * 0.6
padding: textMargin padding: textMargin
color: colors.text color: colors.text
@ -53,10 +53,10 @@ Popup {
y: roomTextInput.y + roomTextInput.height + 5 y: roomTextInput.y + roomTextInput.height + 5
width: parent.width + 10 width: parent.width + 10
completerName: "room" completerName: "room"
bottomToTop: true bottomToTop: false
fullWidth: true fullWidth: true
avatarHeight: textWidth avatarHeight: textHeight
avatarWidth: textWidth avatarWidth: textHeight
centerRowContent: false centerRowContent: false
rowMargin: 8 rowMargin: 8
rowSpacing: 6 rowSpacing: 6