mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
feat(wallpaper): add toggle to skip image processing and use original files
This commit is contained in:
@@ -173,6 +173,39 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("panels.wallpaper.settings-use-original-images-label")
|
||||
description: I18n.tr("panels.wallpaper.settings-use-original-images-description")
|
||||
checked: Settings.data.wallpaper.useOriginalImages
|
||||
onToggled: checked => Settings.data.wallpaper.useOriginalImages = checked
|
||||
defaultValue: Settings.getDefaultValue("wallpaper.useOriginalImages")
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
spacing: Style.marginM
|
||||
Layout.fillWidth: true
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("panels.wallpaper.settings-clear-cache-label")
|
||||
description: I18n.tr("panels.wallpaper.settings-clear-cache-description")
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
NButton {
|
||||
icon: "trash"
|
||||
text: I18n.tr("panels.wallpaper.settings-clear-cache-button")
|
||||
outlined: true
|
||||
onClicked: {
|
||||
ImageCacheService.clearLarge();
|
||||
ToastService.showNotice(I18n.tr("panels.wallpaper.settings-clear-cache-toast"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
visible: CompositorService.isNiri
|
||||
|
||||
Reference in New Issue
Block a user