diff --git a/themes/antergos/README.md b/themes/antergos/README.md index 73be869..c98e783 100644 --- a/themes/antergos/README.md +++ b/themes/antergos/README.md @@ -4,7 +4,7 @@ ### Overview -This is the default theme included with [lightdm-webkit2-greeter](http://github.com/Antergos/lightdm-webkit2-greeter). If you are using the Webkit2 greeter, you already have this theme. The theme can also be used with the legacy Webkit1 greeter. +This is the default theme included with [lightdm-webkit2-greeter](http://github.com/Antergos/lightdm-webkit2-greeter). If you are using the Webkit2 greeter, you already have this theme. ### Screenshots
@@ -19,14 +19,18 @@ This is the default theme included with [lightdm-webkit2-greeter](http://github. * lightdm-webkit-greeter ### Installation -Antergos users have this theme installed by default. It can be reinstalled using pacman if needed. Arch users can install [lightdm-webkit2-greeter](https://aur.archlinux.org/packages/lightdm-webkit2-greeter/) from the AUR. +This theme is included with `lightdm-webkit2-greeter` which is installed by default for Antergos users. Non-Antergos users should see [lightdm-webkit2-greeter](https://github.com/Antergos/lightdm-webkit2-greeter/) for install details. -To use this theme with the legacy Webkit1 greeter: +#### ***NOTE:*** +The last version of this theme which supports the legacy Webkit1 greeter is [v2.3.2](https://github.com/Antergos/lightdm-webkit-theme-antergos/releases/tag/2.3.2). +Versions of this theme later than ***2.3.2*** will not work with the legacy Webkit1 greeter. If you want to use the latest version of the theme you must use the Webkit2 greeter. -1. Download [Antergos Theme](https://github.com/Antergos/lightdm-webkit-theme-antergos/zipball/master) -2. Unzip it. This should create a folder named like `Antergos-lightdm-webkit-theme-antergos-28c4b13`. +#### To use [v2.3.2](https://github.com/Antergos/lightdm-webkit-theme-antergos/releases/tag/2.3.2) of this theme with the legacy Webkit1 greeter: + +1. Download [Antergos Theme](https://github.com/Antergos/lightdm-webkit-theme-antergos/archive/2.3.2.zip) +2. Unzip it. This should create a folder named like `Antergos-lightdm-webkit-theme-antergos-2.3.2`. 3. Rename this folder to `antergos` and copy move it to the themes directory (so that the complete path becomes `/usr/share/lightdm-webkit/themes/antergos`) -4. Edit `/etc/lightdm/lightdm-webkit2-greeter.conf` and set the `webkit-theme` property to `antergos`: +4. Edit `/etc/lightdm/lightdm-webkit-greeter.conf` and set the `webkit-theme` property to `antergos`: ``` [greeter] diff --git a/themes/antergos/js/greeter.js b/themes/antergos/js/greeter.js index 250782b..d6af2a6 100644 --- a/themes/antergos/js/greeter.js +++ b/themes/antergos/js/greeter.js @@ -209,7 +209,7 @@ class AntergosBackgroundManager { localStorage.removeItem( 'bgrandom' ); localStorage.removeItem( 'bgsaved' ); } else { - if ( '0' === localStorage.getItem( 'bgrandom' ) ) { + if ( '1' === localStorage.getItem( 'bgrandom' ) ) { this.current_background = this.get_random_image(); _util.cache_set( 'true', 'background_manager', 'random_background' ); localStorage.removeItem( 'bgrandom' ); @@ -317,6 +317,8 @@ class AntergosBackgroundManager { if ( 'random' === img ) { _util.cache_set( 'true', 'background_manager', 'random_background' ); img = _bg_self.get_random_image(); + } else { + _util.cache_set( 'false', 'background_manager', 'random_background' ); } _util.cache_set( img, 'background_manager', 'current_background' );