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 # TODO
- theme changelog
- update nio requirement - update nio requirement
- improve auto completion delegate
- refresh server list button - refresh server list button
- server list sorting method / explain what the % number is (stability)
- global presence control - global presence control

View File

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

View File

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

View File

@ -498,6 +498,12 @@ chat:
fileTransfer: fileTransfer:
color background: chat.typingMembers.background 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: composer:
color background: colors.strongBackground color background: colors.strongBackground

View File

@ -507,6 +507,12 @@ chat:
fileTransfer: fileTransfer:
color background: chat.typingMembers.background 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: composer:
color background: colors.strongBackground color background: colors.strongBackground