Add theme properties for autocompletion UI

This commit is contained in:
miruka 2020-08-21 11:35:03 -04:00
parent 044060d1c0
commit 12c47476fc
5 changed files with 17 additions and 5 deletions

View File

@ -1,10 +1,9 @@
# TODO
- theme changelog
- update nio requirement
- improve auto completion delegate
- refresh server list button
- server list sorting method / explain what the % number is (stability)
- global presence control

View File

@ -20,6 +20,7 @@ HTile {
displayName: model.display_name
mxc: model.avatar_url
compact: root.compact
radius: theme.chat.userAutoCompletion.avatarsRadius
implicitHeight:
compact ?
@ -33,7 +34,7 @@ HTile {
(model.display_name || model.id) + (
model.display_name ?
" ".repeat(2) + utils.htmlColorize(
model.id, theme.chat.roomPane.listView.member.subtitle,
model.id, theme.chat.userAutoCompletion.userIds,
) :
""
)
@ -41,7 +42,7 @@ HTile {
color:
root.colorName ?
utils.nameColor(model.display_name || model.id.substring(1)) :
theme.chat.roomPane.listView.member.name
theme.chat.userAutoCompletion.displayNames
Behavior on color { HColorAnimation {} }
}

View File

@ -146,7 +146,7 @@ HListView {
Rectangle {
anchors.fill: parent
z: -1
color: theme.chat.typingMembers.background
color: theme.chat.userAutoCompletion.background
}
Connections {

View File

@ -498,6 +498,12 @@ chat:
fileTransfer:
color background: chat.typingMembers.background
userAutoCompletion:
color background: chat.typingMembers.background
int avatarsRadius: controls.avatar.radius
color displayNames: colors.text
color userIds: colors.dimText
composer:
color background: colors.strongBackground

View File

@ -507,6 +507,12 @@ chat:
fileTransfer:
color background: chat.typingMembers.background
userAutoCompletion:
color background: chat.typingMembers.background
int avatarsRadius: controls.avatar.radius
color displayNames: colors.text
color userIds: colors.dimText
composer:
color background: colors.strongBackground