fix: make chatMessages new message box clearer
This commit is contained in:
parent
39f06d0741
commit
3881d1e012
|
@ -38,14 +38,16 @@ ScrollView {
|
|||
}
|
||||
|
||||
Button {
|
||||
readonly property int buttonPadding: 5
|
||||
|
||||
id: newMessagesBox
|
||||
height: 32
|
||||
width: nbMessages.width + arrowImage.width + 2 * Style.current.halfPadding + (nbMessages.visible ? 5 : 0)
|
||||
width: nbMessages.width + arrowImage.width + 2 * Style.current.halfPadding + (nbMessages.visible ? newMessagesBox.buttonPadding : 0)
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Style.current.padding
|
||||
background: Rectangle {
|
||||
color: Style.current.buttonDisabledForegroundColor
|
||||
color: Style.current.buttonSecondaryColor
|
||||
border.width: 0
|
||||
radius: 16
|
||||
}
|
||||
|
@ -74,7 +76,7 @@ ScrollView {
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: nbMessages.right
|
||||
source: "../../../img/leave_chat.svg"
|
||||
anchors.leftMargin: nbMessages.visible ? 5 : 0
|
||||
anchors.leftMargin: nbMessages.visible ? newMessagesBox.buttonPadding : 0
|
||||
rotation: -90
|
||||
|
||||
ColorOverlay {
|
||||
|
|
|
@ -51,7 +51,8 @@ Theme {
|
|||
|
||||
property color buttonForegroundColor: blue
|
||||
property color buttonBackgroundColor: secondaryBackground
|
||||
property color buttonDisabledForegroundColor: darkGrey
|
||||
property color buttonSecondaryColor: darkGrey
|
||||
property color buttonDisabledForegroundColor: buttonSecondaryColor
|
||||
property color buttonDisabledBackgroundColor: darkerGrey
|
||||
|
||||
property color roundedButtonForegroundColor: white
|
||||
|
|
|
@ -50,7 +50,8 @@ Theme {
|
|||
|
||||
property color buttonForegroundColor: blue
|
||||
property color buttonBackgroundColor: secondaryBackground
|
||||
property color buttonDisabledForegroundColor: darkGrey
|
||||
property color buttonSecondaryColor: darkGrey
|
||||
property color buttonDisabledForegroundColor: buttonSecondaryColor
|
||||
property color buttonDisabledBackgroundColor: grey
|
||||
|
||||
property color roundedButtonForegroundColor: buttonForegroundColor
|
||||
|
|
|
@ -35,6 +35,7 @@ QtObject {
|
|||
|
||||
property color buttonForegroundColor
|
||||
property color buttonBackgroundColor
|
||||
property color buttonSecondaryColor
|
||||
property color buttonDisabledForegroundColor
|
||||
property color buttonDisabledBackgroundColor
|
||||
property color roundedButtonForegroundColor
|
||||
|
|
Loading…
Reference in New Issue