diff --git a/src/data/ui/BackgroundButton.ui b/src/data/ui/BackgroundButton.ui index edbf4f0..d55d6d0 100644 --- a/src/data/ui/BackgroundButton.ui +++ b/src/data/ui/BackgroundButton.ui @@ -36,6 +36,7 @@ SPDX-License-Identifier: GPL-3.0-or-later image/jpeg image/png + image/svg+xml image/tiff application/xml diff --git a/src/po/nightthemeswitcher@romainvigier.fr.pot b/src/po/nightthemeswitcher@romainvigier.fr.pot index d851b35..1e54c3f 100644 --- a/src/po/nightthemeswitcher@romainvigier.fr.pot +++ b/src/po/nightthemeswitcher@romainvigier.fr.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: nightthemeswitcher@romainvigier.fr\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-04-05 12:01+0200\n" +"POT-Creation-Date: 2022-04-26 22:37+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -425,36 +425,36 @@ msgstr "" msgid ":" msgstr "" -#: src/modules/TimerOndemand.js:212 +#: src/modules/TimerOndemand.js:213 msgid "Turn Night Mode Off" msgstr "" -#: src/modules/TimerOndemand.js:212 +#: src/modules/TimerOndemand.js:213 msgid "Turn Night Mode On" msgstr "" -#: src/modules/TimerOndemand.js:227 +#: src/modules/TimerOndemand.js:228 msgid "Extension Settings" msgstr "" -#: src/modules/TimerOndemand.js:235 +#: src/modules/TimerOndemand.js:237 msgid "Night Mode Off" msgstr "" -#: src/modules/TimerOndemand.js:235 +#: src/modules/TimerOndemand.js:237 msgid "Night Mode On" msgstr "" -#: src/modules/TimerOndemand.js:236 +#: src/modules/TimerOndemand.js:238 msgid "Turn Off" msgstr "" -#: src/modules/TimerOndemand.js:236 +#: src/modules/TimerOndemand.js:238 msgid "Turn On" msgstr "" -#: src/preferences/BackgroundButton.js:71 -msgid "Only JPEG, PNG, TIFF and XML files can be set as background image." +#: src/preferences/BackgroundButton.js:74 +msgid "Only JPEG, PNG, TIFF, SVG and XML files can be set as background image." msgstr "" #: src/preferences/SchedulePage.js:48 diff --git a/src/preferences/BackgroundButton.js b/src/preferences/BackgroundButton.js index 01e712f..5afde20 100644 --- a/src/preferences/BackgroundButton.js +++ b/src/preferences/BackgroundButton.js @@ -62,6 +62,7 @@ var BackgroundButton = GObject.registerClass({ if ( Gio.content_type_equals(contentType, 'image/jpeg') || Gio.content_type_equals(contentType, 'image/png') || + Gio.content_type_equals(contentType, 'image/svg+xml') || Gio.content_type_equals(contentType, 'image/tiff') || Gio.content_type_equals(contentType, 'application/xml') ) { @@ -70,7 +71,7 @@ var BackgroundButton = GObject.registerClass({ } else { if (this.root instanceof Adw.PreferencesWindow) { this.root.add_toast(new Adw.Toast({ - title: _('Only JPEG, PNG, TIFF and XML files can be set as background image.'), + title: _('Only JPEG, PNG, TIFF, SVG and XML files can be set as background image.'), timeout: 10, })); } @@ -109,6 +110,7 @@ var BackgroundButton = GObject.registerClass({ if ( Gio.content_type_equals(contentType, 'image/jpeg') || Gio.content_type_equals(contentType, 'image/png') || + Gio.content_type_equals(contentType, 'image/svg+xml') || Gio.content_type_equals(contentType, 'image/tiff') ) { path = file.get_path();