diff --git a/src/preferences/Backgrounds.js b/src/preferences/Backgrounds.js index fe72b58..cd0b554 100644 --- a/src/preferences/Backgrounds.js +++ b/src/preferences/Backgrounds.js @@ -62,7 +62,7 @@ var BackgroundsPreferences = class { settings.backgrounds.connect('day-changed', () => updateDayChooserUri()); dayChooser.connect('update-preview', () => { const file = dayChooser.get_preview_filename(); - const allowedContentTypes = ['image/jpeg', 'image/png', 'image/tiff']; + const allowedContentTypes = ['image/jpeg', 'image/png', 'image/tiff', 'application/xml']; if (allowedContentTypes.includes(Gio.content_type_guess(file, null)[0])) { const pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(file, 256, 256); dayBackgroundPreview.set_from_pixbuf(pixbuf); @@ -91,7 +91,7 @@ var BackgroundsPreferences = class { settings.backgrounds.connect('night-changed', () => updateNightChooserUri()); nightChooser.connect('update-preview', () => { const file = nightChooser.get_preview_filename(); - const allowedContentTypes = ['image/jpeg', 'image/png', 'image/tiff']; + const allowedContentTypes = ['image/jpeg', 'image/png', 'image/tiff', 'application/xml']; if (allowedContentTypes.includes(Gio.content_type_guess(file, null)[0])) { const pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(file, 256, 256); nightBackgroundPreview.set_from_pixbuf(pixbuf); diff --git a/src/preferences/ui/backgrounds.ui b/src/preferences/ui/backgrounds.ui index 0558aa4..2cfa902 100644 --- a/src/preferences/ui/backgrounds.ui +++ b/src/preferences/ui/backgrounds.ui @@ -39,6 +39,7 @@ Author: Romain Vigier image/jpeg image/png image/tiff + application/xml