mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
refactor(Notifications): turn reset button into link-like element
This is so that it looks and behaves as designed.
This commit is contained in:
parent
ea2238f998
commit
1b009d634d
@ -319,17 +319,26 @@ ScrollView {
|
||||
anchors.right: parent.right
|
||||
width: parent.width
|
||||
|
||||
StatusButton {
|
||||
flat: true
|
||||
horizontalPadding: 0
|
||||
//% "Reset notification settings"
|
||||
text: qsTrId("reset-notification-settings")
|
||||
type: "warn"
|
||||
onClicked: {
|
||||
appSettings.notificationSetting = defaultAppSettings.notificationSetting
|
||||
appSettings.notificationSoundsEnabled = defaultAppSettings.notificationSoundsEnabled
|
||||
appSettings.notificationMessagePreviewSetting = defaultAppSettings.notificationMessagePreviewSetting
|
||||
appSettings.allowNotificationsFromNonContacts = defaultAppSettings.allowNotificationsFromNonContacts
|
||||
StyledText {
|
||||
text: qsTr("Reset notification settings")
|
||||
font.pixelSize: 15
|
||||
color: Style.current.danger
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
hoverEnabled: true
|
||||
onEntered: {
|
||||
parent.font.underline = true
|
||||
}
|
||||
onExited: {
|
||||
parent.font.underline = false
|
||||
}
|
||||
onClicked: {
|
||||
appSettings.notificationSetting = defaultAppSettings.notificationSetting
|
||||
appSettings.notificationSoundsEnabled = defaultAppSettings.notificationSoundsEnabled
|
||||
appSettings.notificationMessagePreviewSetting = defaultAppSettings.notificationMessagePreviewSetting
|
||||
appSettings.allowNotificationsFromNonContacts = defaultAppSettings.allowNotificationsFromNonContacts
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user