Add a background to scroll to bottom button

This commit is contained in:
Nicolas Werner 2022-03-30 01:23:23 +02:00
parent a3ae90415c
commit 4783ce8c44
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -768,7 +768,15 @@ Item {
radius: width/2 radius: width/2
onClicked: chat.positionViewAtBeginning(); onClicked: chat.positionViewAtBeginning();
flat: true flat: true
highlighted: true hoverEnabled: true
background: Rectangle {
color: toEndButton.down ? Nheko.colors.highlight : Nheko.colors.button
opacity: enabled ? 1 : 0.3
border.color: toEndButton.hovered ? Nheko.colors.highlight : Nheko.colors.buttonText
border.width: 1
radius: toEndButton.radius
}
states: State { states: State {
name: "hidden" name: "hidden"
@ -779,7 +787,7 @@ Item {
id: buttonImg id: buttonImg
anchors.fill: parent anchors.fill: parent
anchors.margins: Nheko.paddingMedium anchors.margins: Nheko.paddingMedium
source: ("image://colorimage/" + ":/icons/icons/ui/download.svg" + "?" + Nheko.colors.buttonText) source: "image://colorimage/:/icons/icons/ui/download.svg?" + (toEndButton.down ? Nheko.colors.highlightedText : Nheko.colors.buttonText)
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
} }