feat(wallpaper): add toggle to skip image processing and use original files

This commit is contained in:
Lemmy
2026-03-22 19:33:09 -04:00
parent d1926452d7
commit 05ef6849d8
23 changed files with 230 additions and 64 deletions
@@ -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