fix: channel description and reaction colors in dark mode

This commit is contained in:
Jonathan Rainville 2020-09-22 10:47:25 -04:00 committed by Iuri Matias
parent a35130ff68
commit 49849edbac
2 changed files with 6 additions and 4 deletions

View File

@ -73,13 +73,16 @@ Item {
Rectangle {
id: channelDescription
width: 330
height: childrenRect.height
visible: descText.visible
width: visible ? 330 : 0
height: visible ? childrenRect.height : 0
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: channelName.bottom
anchors.topMargin: 16
color: Style.current.transparent
StyledText {
id: descText
wrapMode: Text.Wrap
text: {
switch(chatsModel.activeChannel.chatType) {

View File

@ -47,8 +47,7 @@ Item {
radius: 10
anchors.left: (index === 0) ? parent.left: parent.children[index-1].right
anchors.leftMargin: (index === 0) ? 0 : root.imageMargin
color: modelData.currentUserReacted ? Style.current.blue : Style.current.grey
color: modelData.currentUserReacted ? Style.current.primary : Style.current.inputBackground
// Rounded corner to cover one corner
Rectangle {