mirror of
https://github.com/Hopiu/RandomWallpaperGnome3.git
synced 2026-05-27 15:54:03 +00:00
Finalize release:
- change default source to unsplash.com - change order of the sources - fix descriptions in settings - change default history size to 5 - add new screenshot
This commit is contained in:
parent
d4d7f03d7c
commit
7c3cd9ec21
6 changed files with 15 additions and 14 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 603 KiB After Width: | Height: | Size: 634 KiB |
|
|
@ -89,12 +89,12 @@ const RandomWallpaperSettings = new Lang.Class({
|
|||
}
|
||||
|
||||
switch (sourceCombo.active) {
|
||||
case 0: // desktopper
|
||||
this.currentSourceSettingsWidget = this.desktopperSettings;
|
||||
break;
|
||||
case 1: // unsplash
|
||||
case 0: // unsplash
|
||||
this.currentSourceSettingsWidget = this.unsplashSettings;
|
||||
break;
|
||||
case 1: // desktopper
|
||||
this.currentSourceSettingsWidget = this.desktopperSettings;
|
||||
break;
|
||||
case 2: // wallheaven
|
||||
this.currentSourceSettingsWidget = this.wallheavenSettings;
|
||||
break;
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -2,8 +2,8 @@
|
|||
<schemalist gettext-domain='gnome-shell-extensions'>
|
||||
|
||||
<enum id='org.gnome.shell.extensions.space.iflow.randomwallpaper.sources'>
|
||||
<value value='0' nick='desktoppr'/>
|
||||
<value value='1' nick='unsplash'/>
|
||||
<value value='0' nick='unsplash'/>
|
||||
<value value='1' nick='desktoppr'/>
|
||||
<value value='2' nick='wallheaven'/>
|
||||
<value value='3' nick='genericJSON'/>
|
||||
</enum>
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
id='org.gnome.shell.extensions.space.iflow.randomwallpaper'>
|
||||
|
||||
<key type='i' name='history-length'>
|
||||
<default>10</default>
|
||||
<default>5</default>
|
||||
<summary>History size</summary>
|
||||
<description>Number of wallpapers stored locally</description>
|
||||
<range min='2' max='100'/>
|
||||
|
|
@ -39,9 +39,9 @@
|
|||
</key>
|
||||
|
||||
<key name='source' enum='org.gnome.shell.extensions.space.iflow.randomwallpaper.sources'>
|
||||
<default>'desktoppr'</default>
|
||||
<default>'unsplash'</default>
|
||||
<summary>Wallpaper Source</summary>
|
||||
<description>Describs the adapter that will be used.</description>
|
||||
<description>Describes the adapter that will be used.</description>
|
||||
</key>
|
||||
|
||||
<key type='as' name='history'>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,8 @@
|
|||
<property name="can_focus">False</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="label" translatable="yes">This feature requires some know how but many different wallpaper providers can be used with this generic JSON source.
|
||||
You have to specify an URL to a JSON response and a path to the target picture url within the JSON response.</property>
|
||||
You have to specify an URL to a JSON response and a path to the target image URL within the JSON response.
|
||||
You can also define a prefix that will be added to the image URL.</property>
|
||||
<property name="wrap">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
|
|
@ -277,7 +278,7 @@ You have to specify an URL to a JSON response and a path to the target picture u
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="label" translatable="yes">The source that is used to fetch random wallpapers. You can select between desktoppr.co (default) and an experimental version of wallheaven.cc and unsplash.com.</property>
|
||||
<property name="label" translatable="yes">The source that is used to fetch random wallpapers. You can select between unsplash.com, desktoppr.co, wallheaven.cc and a generic JSON source for experienced users.</property>
|
||||
<property name="wrap">True</property>
|
||||
<property name="max_width_chars">1</property>
|
||||
<property name="xalign">0</property>
|
||||
|
|
@ -313,8 +314,8 @@ You have to specify an URL to a JSON response and a path to the target picture u
|
|||
<property name="can_focus">False</property>
|
||||
<property name="active_id">0</property>
|
||||
<items>
|
||||
<item id="desktoppr">desktoppr.co</item>
|
||||
<item id="unsplash">unsplash.com</item>
|
||||
<item id="desktoppr">desktoppr.co</item>
|
||||
<item id="wallheaven">alpha.wallheaven.cc</item>
|
||||
<item id="genericJSON" translatable="yes">Generic JSON</item>
|
||||
</items>
|
||||
|
|
|
|||
|
|
@ -91,10 +91,10 @@ let WallpaperController = new Lang.Class({
|
|||
this.imageSourceAdapter = this._desktopperAdapter;
|
||||
switch (this._settings.get('source', 'enum')) {
|
||||
case 0:
|
||||
this.imageSourceAdapter = this._desktopperAdapter;
|
||||
this.imageSourceAdapter = this._unsplashAdapter;
|
||||
break;
|
||||
case 1:
|
||||
this.imageSourceAdapter = this._unsplashAdapter;
|
||||
this.imageSourceAdapter = this._desktopperAdapter;
|
||||
break;
|
||||
case 2:
|
||||
this.imageSourceAdapter = this._wallheavenAdapter;
|
||||
|
|
|
|||
Loading…
Reference in a new issue