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 { Rectangle {
id: channelDescription id: channelDescription
width: 330 visible: descText.visible
height: childrenRect.height width: visible ? 330 : 0
height: visible ? childrenRect.height : 0
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.top: channelName.bottom anchors.top: channelName.bottom
anchors.topMargin: 16 anchors.topMargin: 16
color: Style.current.transparent
StyledText { StyledText {
id: descText
wrapMode: Text.Wrap wrapMode: Text.Wrap
text: { text: {
switch(chatsModel.activeChannel.chatType) { switch(chatsModel.activeChannel.chatType) {

View File

@ -47,8 +47,7 @@ Item {
radius: 10 radius: 10
anchors.left: (index === 0) ? parent.left: parent.children[index-1].right anchors.left: (index === 0) ? parent.left: parent.children[index-1].right
anchors.leftMargin: (index === 0) ? 0 : root.imageMargin 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 // Rounded corner to cover one corner
Rectangle { Rectangle {