Use custombutton for dismiss button, give hover feedback

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-05-19 17:12:16 +08:00 committed by Matthieu Gallien
parent 867fae1ff3
commit 97c33d396c

View file

@ -175,7 +175,7 @@ RowLayout {
visible: text !== ""
}
RoundButton {
CustomButton {
id: dismissActionButton
Layout.preferredWidth: Style.dismissButtonSize
@ -184,12 +184,12 @@ RowLayout {
visible: root.showDismissButton && !fileDetailsButton.visible
icon.source: "image://svgimage-custom-color/clear.svg" + "/" + Style.ncTextColor
icon.source: "image://svgimage-custom-color/clear.svg/" + Style.ncTextColor
flat: true
display: Button.IconOnly
hoverEnabled: true
padding: 0
bgColor: Style.lightHover
bgNormalOpacity: 0
NCToolTip {
text: qsTr("Dismiss")