Reduce RoomDelegate opacity for left rooms

This commit is contained in:
miruka 2019-08-16 13:04:54 -04:00
parent e8b173163d
commit 7d4da8952f
2 changed files with 11 additions and 5 deletions

View File

@ -9,6 +9,9 @@ HInteractiveRectangle {
height: rowLayout.height height: rowLayout.height
color: theme.sidePane.room.background color: theme.sidePane.room.background
opacity: model.left ? theme.sidePane.room.leftRoomOpacity : 1
Behavior on opacity { HNumberAnimation {} }
TapHandler { onTapped: pageStack.showRoom(userId, model.room_id) } TapHandler { onTapped: pageStack.showRoom(userId, model.room_id) }
HRowLayout { HRowLayout {
@ -47,7 +50,8 @@ HInteractiveRectangle {
svgName: "invite-received" svgName: "invite-received"
visible: Layout.maximumWidth > 0 visible: Layout.maximumWidth > 0
Layout.maximumWidth: model.inviter_id ? implicitWidth : 0 Layout.maximumWidth:
model.inviter_id && ! model.left ? implicitWidth : 0
Behavior on Layout.maximumWidth { HNumberAnimation {} } Behavior on Layout.maximumWidth { HNumberAnimation {} }
} }

View File

@ -160,6 +160,8 @@ sidePane:
color name: colors.text color name: colors.text
room: room:
real leftRoomOpacity: 0.65
color background: "transparent" color background: "transparent"
color name: colors.text color name: colors.text
color subtitle: colors.dimText color subtitle: colors.dimText