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
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) }
HRowLayout {
@ -47,7 +50,8 @@ HInteractiveRectangle {
svgName: "invite-received"
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 {} }
}

View File

@ -160,10 +160,12 @@ sidePane:
color name: colors.text
room:
color background: "transparent"
color name: colors.text
color subtitle: colors.dimText
color lastEventDate: colors.halfDimText
real leftRoomOpacity: 0.65
color background: "transparent"
color name: colors.text
color subtitle: colors.dimText
color lastEventDate: colors.halfDimText
settingsButton:
color background: colors.inputBackground