Fix Room delegate opacity for left rooms

This commit is contained in:
miruka 2020-05-13 21:51:31 -04:00
parent 82c8496216
commit eacee59f9e
2 changed files with 3 additions and 7 deletions

View File

@ -2,9 +2,7 @@
- add account number binds - add account number binds
- revise pane collapse mode - revise pane collapse mode
- bring back account collapsing
- fix left rooms opacity
- fix escape keybinds (filter rooms, message selection) - fix escape keybinds (filter rooms, message selection)
- fix python getting stuck when loading large room - fix python getting stuck when loading large room
- fix accounts in room list not getting their profile updated if mirage starts - fix accounts in room list not getting their profile updated if mirage starts

View File

@ -12,11 +12,12 @@ HTileDelegate {
backgroundColor: theme.mainPane.listView.room.background backgroundColor: theme.mainPane.listView.room.background
leftPadding: theme.spacing * 2 leftPadding: theme.spacing * 2
rightPadding: theme.spacing rightPadding: theme.spacing
opacity:
model.left ? theme.mainPane.listView.room.leftRoomOpacity : 1
contentItem: ContentRow { contentItem: ContentRow {
tile: room tile: room
opacity: model.left ? theme.mainPane.listView.room.leftRoomOpacity : 1
Behavior on opacity { HNumberAnimation {} }
HRoomAvatar { HRoomAvatar {
id: avatar id: avatar
@ -190,7 +191,4 @@ HTileDelegate {
readonly property QtObject lastEvent: readonly property QtObject lastEvent:
eventModel.count > 0 ? eventModel.get(0) : null eventModel.count > 0 ? eventModel.get(0) : null
Behavior on opacity { HNumberAnimation {} }
} }