From eacee59f9edea223215f16a32dee6244e27733aa Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 13 May 2020 21:51:31 -0400 Subject: [PATCH] Fix Room delegate opacity for left rooms --- TODO.md | 2 -- src/gui/MainPane/Room.qml | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/TODO.md b/TODO.md index 86afd400..c90f6fb5 100644 --- a/TODO.md +++ b/TODO.md @@ -2,9 +2,7 @@ - add account number binds - revise pane collapse mode -- bring back account collapsing -- fix left rooms opacity - fix escape keybinds (filter rooms, message selection) - fix python getting stuck when loading large room - fix accounts in room list not getting their profile updated if mirage starts diff --git a/src/gui/MainPane/Room.qml b/src/gui/MainPane/Room.qml index cef04020..ad5c8c8f 100644 --- a/src/gui/MainPane/Room.qml +++ b/src/gui/MainPane/Room.qml @@ -12,11 +12,12 @@ HTileDelegate { backgroundColor: theme.mainPane.listView.room.background leftPadding: theme.spacing * 2 rightPadding: theme.spacing - opacity: - model.left ? theme.mainPane.listView.room.leftRoomOpacity : 1 contentItem: ContentRow { tile: room + opacity: model.left ? theme.mainPane.listView.room.leftRoomOpacity : 1 + + Behavior on opacity { HNumberAnimation {} } HRoomAvatar { id: avatar @@ -190,7 +191,4 @@ HTileDelegate { readonly property QtObject lastEvent: eventModel.count > 0 ? eventModel.get(0) : null - - - Behavior on opacity { HNumberAnimation {} } }