tweak quick switcher

This commit is contained in:
Michele Guerini Rocco 2021-05-28 21:19:22 +02:00
parent 9410670591
commit 49bc9255ad
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
2 changed files with 4 additions and 4 deletions

View File

@ -242,7 +242,7 @@ Control {
Layout.preferredWidth: popup.avatarWidth
}
Label {
color: model.index == popup.currentIndex ? palette.highlightedText : palette.text
color: model.index == popup.currentIndex ? palette.highlightedText : palette.brightText
font.italic: model.isTombstoned
font.bold: model.isSpace
font.pixelSize: popup.avatarHeight * 0.5

View File

@ -9,7 +9,7 @@ import im.nheko
Popup {
id: quickSwitcher
property int textHeight: Math.round(Qt.application.font.pixelSize * 2.4)
property int textHeight: Math.round(Qt.application.font.pixelSize * 2)
property int textMargin: Nheko.paddingSmall
background: null
@ -38,7 +38,7 @@ Popup {
MatrixTextField {
id: roomTextInput
color: palette.text
color: palette.brightText
font.pixelSize: Math.ceil(quickSwitcher.textHeight * 0.6)
width: parent.width
@ -70,7 +70,7 @@ Popup {
centerRowContent: false
completerName: "room"
fullWidth: true
rowMargin: Math.round(quickSwitcher.textMargin / 2)
rowMargin: quickSwitcher.textMargin
rowSpacing: quickSwitcher.textMargin
visible: roomTextInput.text.length > 0
width: parent.width