Switch to X icon and add close button

This commit is contained in:
NepNep21 2023-10-25 19:38:04 -03:00
parent 0b28e7934d
commit ad68cd8b4c
No known key found for this signature in database
GPG key ID: 818E86B41BD5C364

View file

@ -23,6 +23,7 @@ Window {
id: view id: view
anchors.fill: parent anchors.fill: parent
spacing: Nheko.paddingMedium spacing: Nheko.paddingMedium
footerPositioning: ListView.OverlayFooter
model: TimelineManager.ignoredUsers model: TimelineManager.ignoredUsers
header: ColumnLayout { header: ColumnLayout {
@ -59,12 +60,24 @@ Window {
ImageButton { ImageButton {
Layout.preferredHeight: 24 Layout.preferredHeight: 24
Layout.preferredWidth: 24 Layout.preferredWidth: 24
image: ":/icons/icons/ui/delete.svg" image: ":/icons/icons/ui/dismiss.svg"
hoverEnabled: true hoverEnabled: true
ToolTip.visible: hovered ToolTip.visible: hovered
ToolTip.text: qsTr("Stop Ignoring.") ToolTip.text: qsTr("Stop Ignoring.")
onClicked: profile.ignored = false onClicked: profile.ignored = false
} }
} }
footer: DialogButtonBox {
z: 2
width: view.width
alignment: Qt.AlignRight
standardButtons: DialogButtonBox.Ok
onAccepted: ignoredUsers.close()
background: Rectangle {
anchors.fill: parent
color: palette.window
}
}
} }
} }