Theme color for eventList highlight

This commit is contained in:
miruka 2020-03-27 05:09:49 -04:00
parent af6cdc9013
commit c03bf32a7b
4 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,5 @@
# TODO
- focus color
- Long-press-drag to select multiple messages on touch
- Drag to select multiple messages on non-touch

View File

@ -76,6 +76,11 @@ Rectangle {
model: ModelStore.get(chat.userId, chat.roomId, "events")
delegate: EventDelegate {}
highlight: Rectangle {
color: theme.chat.message.focusedHighlight
opacity: theme.chat.message.focusedHighlightOpacity
}
// Since the list is BottomToTop, this is actually a header
footer: Item {
width: eventList.width

View File

@ -343,6 +343,9 @@ chat:
int horizontalSpacing: theme.spacing / 1.25
int verticalSpacing: theme.spacing / 1.75
color focusedHighlight: colors.accentBackground
real focusedHighlightOpacity: 0.4
color background: colors.mediumBackground
color ownBackground: colors.strongBackground
color checkedBackground: colors.accentBackground

View File

@ -356,6 +356,9 @@ chat:
int horizontalSpacing: theme.spacing / 1.25
int verticalSpacing: theme.spacing / 1.75
color focusedHighlight: colors.accentBackground
real focusedHighlightOpacity: 0.4
color background: colors.weakBackground
color ownBackground: colors.mediumBackground
color checkedBackground: colors.accentBackground