Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
Fixed a bug when setting a wallpaper by specifying the full path of a…
Browse files Browse the repository at this point in the history
…n image file.
  • Loading branch information
sdias committed Aug 25, 2016
1 parent 7659d1d commit 3dfb094
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ To change between them, go into the "icons" folder and extract the ZIP file for
To configure the wallpapers, edit the "settings.ini" file.
For each desktop, you can either set the wallpaper to be an image file or a fixed color.
To use images, set the path of the image, either absolute or relative (ex: "1=C:\wallpapers\1.jpg", "2=./wallpapers/2.jpg").
To use fixed colors, set the color in hexadecimal (ex: "3=ff0000" for red, "4=ff00" or "4=00ff00" for green).
To use fixed colors, set the color in hexadecimal (ex: "3=0xff0000" for red, "4=0xff00" or "4=0x00ff00" for green).
If you set the config of that desktop to empty (ex: "5=") the wallpaper won't change when you switch to that desktop.

### Additional Configuration
Expand Down
Binary file modified virtual-desktop-accessor.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion virtual-desktop-enhancer.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ChangeDesktop(n) {
ChangeBackground(n) {
line := Wallpapers%n%

isHex := RegExMatch(line, "^([0-9A-Fa-f]{1,6})", hexMatchTotal)
isHex := RegExMatch(line, "^0x([0-9A-Fa-f]{1,6})", hexMatchTotal)

if (isHex) {
hexColorReversed := SubStr("00000" . hexMatchTotal1, -5)
Expand Down
Binary file modified virtual-desktop-enhancer.exe
Binary file not shown.

0 comments on commit 3dfb094

Please sign in to comment.