tweak quick switcher
This commit is contained in:
parent
9410670591
commit
49bc9255ad
@ -242,7 +242,7 @@ Control {
|
|||||||
Layout.preferredWidth: popup.avatarWidth
|
Layout.preferredWidth: popup.avatarWidth
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
color: model.index == popup.currentIndex ? palette.highlightedText : palette.text
|
color: model.index == popup.currentIndex ? palette.highlightedText : palette.brightText
|
||||||
font.italic: model.isTombstoned
|
font.italic: model.isTombstoned
|
||||||
font.bold: model.isSpace
|
font.bold: model.isSpace
|
||||||
font.pixelSize: popup.avatarHeight * 0.5
|
font.pixelSize: popup.avatarHeight * 0.5
|
||||||
|
@ -9,7 +9,7 @@ import im.nheko
|
|||||||
Popup {
|
Popup {
|
||||||
id: quickSwitcher
|
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
|
property int textMargin: Nheko.paddingSmall
|
||||||
|
|
||||||
background: null
|
background: null
|
||||||
@ -38,7 +38,7 @@ Popup {
|
|||||||
MatrixTextField {
|
MatrixTextField {
|
||||||
id: roomTextInput
|
id: roomTextInput
|
||||||
|
|
||||||
color: palette.text
|
color: palette.brightText
|
||||||
font.pixelSize: Math.ceil(quickSwitcher.textHeight * 0.6)
|
font.pixelSize: Math.ceil(quickSwitcher.textHeight * 0.6)
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ Popup {
|
|||||||
centerRowContent: false
|
centerRowContent: false
|
||||||
completerName: "room"
|
completerName: "room"
|
||||||
fullWidth: true
|
fullWidth: true
|
||||||
rowMargin: Math.round(quickSwitcher.textMargin / 2)
|
rowMargin: quickSwitcher.textMargin
|
||||||
rowSpacing: quickSwitcher.textMargin
|
rowSpacing: quickSwitcher.textMargin
|
||||||
visible: roomTextInput.text.length > 0
|
visible: roomTextInput.text.length > 0
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
Loading…
Reference in New Issue
Block a user