mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Add a background to scroll to bottom button
This commit is contained in:
parent
a3ae90415c
commit
4783ce8c44
1 changed files with 10 additions and 2 deletions
|
@ -768,7 +768,15 @@ Item {
|
|||
radius: width/2
|
||||
onClicked: chat.positionViewAtBeginning();
|
||||
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 {
|
||||
name: "hidden"
|
||||
|
@ -779,7 +787,7 @@ Item {
|
|||
id: buttonImg
|
||||
anchors.fill: parent
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue