From 99b20f524d8d267fdde88a0bf80e372891ee723d Mon Sep 17 00:00:00 2001 From: Timothy Johnson Date: Fri, 28 Dec 2018 07:02:00 -0500 Subject: [PATCH] Update to version 2.3.0 --- ISSUE_TEMPLATE.md | 8 +------- README.md | 4 ++-- scripts/analyze_images.py | 25 ------------------------- scripts/make_thumbnail.py | 29 ----------------------------- src/Properties/AssemblyInfo.cs | 2 +- src/themes/Mojave_Desert.json | 2 +- src/themes/Solar_Gradients.json | 2 +- 7 files changed, 6 insertions(+), 66 deletions(-) delete mode 100644 scripts/analyze_images.py delete mode 100644 scripts/make_thumbnail.py diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index db98b88..14543a7 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -3,13 +3,7 @@ Submit your bug report or feature request here. If you have questions please ask When reporting a bug please provide: - Steps to reproduce it - Screenshots (if applicable) - - Log file (if it exists, see below for how to find it) + - Log file (if it exists, see [here](/wiki/Finding-where-app-is-installed) for how to find it) - Windows version (e.g. 7, 10) - WinDynamicDesktop version (e.g. 2.0.0) - Installation source (e.g. installer, Microsoft Store, portable EXE) - -**Finding log file** -If WinDynamicDesktop crashes, it should log error info to the file `WinDynamicDesktop.exe.log`. The location of the log file is different depending on how you installed the app: - - Installer - Folder that you chose during the installation process (default location is `%LOCALAPPDATA%\Programs\WinDynamicDesktop`) - - Microsoft Store - Folder where the app package is located (likely `%LOCALAPPDATA%\Packages\38719TimothyJohnson.WinDynamicDesktop_rfarkse4rn21a\LocalState`) - - Portable EXE - Folder where the app EXE is diff --git a/README.md b/README.md index fc1071e..c7dd0d7 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,11 @@ When the Dynamic Desktop feature was announced for macOS Mojave which shifts thr ### Can the Windows 10 theme be changed too? -There is an option to enable this in the "More Options" section of the system tray menu. Unfortunately its functionality is limited by the way the system theme setting works in Windows 10. In Windows 10 version 1809 which added a dark theme to File Explorer, it is necessary to restart Explorer before the system theme will change in it. Also the theme for Microsoft Edge is separate from the Windows 10 theme and cannot be controlled by WinDynamicDesktop. +There is an option to enable this in the "More Options" section of the system tray menu. Unfortunately its functionality is limited by the way the system theme setting works in Windows 10. In Windows 10 version 1809 which added a dark theme to File Explorer, it is necessary to restart Explorer before the system theme will change in it (this should be fixed in the next release of Windows). Also the theme for Microsoft Edge is separate from the Windows 10 theme and cannot be controlled by WinDynamicDesktop. ### Can the lockscreen image be changed too? -This is a commonly requested feature, and it would be nice to mimic the behavior of macOS and many Linux distros where the lockscreen image is the same as the desktop wallpaper. Windows doesn't have a reliable API for changing the lockscreen image, which means I can't really implement this feature in the app right now. Hopefully Microsoft will add an option in a future version of Windows to make the lockscreen image mirror the desktop wallpaper. +This is a commonly requested feature to mimic the behavior of macOS and many Linux distros where the lockscreen image is the same as the desktop wallpaper. If you are using the Microsoft Store version of WinDynamicDesktop, you can enable changing the lockscreen image as an experimental feature by editing the `settings.conf` file which is in the same folder as the EXE. Change the setting `"changeLockScreen":false` to `"changeLockScreen":true` (or add it if it doesn't exist), and make sure in the Windows 10 settings app that *Personalization* -> *Lock screen* -> *Background* is set to *Picture*. In order for this to work reliably on Windows, it would be ideal if Microsoft added an option in a future version of Windows to make the lockscreen image mirror the desktop wallpaper. ### How can you customize the images? diff --git a/scripts/analyze_images.py b/scripts/analyze_images.py deleted file mode 100644 index 9e261df..0000000 --- a/scripts/analyze_images.py +++ /dev/null @@ -1,25 +0,0 @@ -import glob -import json -import sys -from PIL import Image - -theme_name = sys.argv[1] - -with open(theme_name + ".json", 'r') as fileobj: - theme_config = json.load(fileobj) - -image_data = [] -print("Analyzing images", end="", flush=True) - -for i, filename in enumerate(glob.glob(theme_config["imageFilename"])): - img = Image.open(filename) - image_data.append(0) - print('.', end="", flush=True) - - for r, g, b in img.getdata(): - # Brightness approximation from https://stackoverflow.com/a/596241/5504760 - image_data[i] += (2*r + 3*g + b) / 6 - -print() -print("Darkest image:", image_data.index(min(image_data)) + 1) -print("Lightest image:", image_data.index(max(image_data)) + 1) diff --git a/scripts/make_thumbnail.py b/scripts/make_thumbnail.py deleted file mode 100644 index 5a53acf..0000000 --- a/scripts/make_thumbnail.py +++ /dev/null @@ -1,29 +0,0 @@ -import json -import os -import sys -from PIL import Image - -theme_name = sys.argv[1] - -with open(theme_name + ".json", 'r') as fileobj: - theme_config = json.load(fileobj) - - -def get_middle_image_filename(theme_config, image_list): - image_id = theme_config[image_list][(len(theme_config[image_list]) + 1) // 2] - return theme_config["imageFilename"].replace("*", str(image_id)) - - -day_image_filename = get_middle_image_filename(theme_config, "dayImageList") -night_image_filename = get_middle_image_filename(theme_config, "nightImageList") -output_filename = theme_name.lower() + "_thumbnail.png" - -img1 = Image.open(day_image_filename) -img2 = Image.open(night_image_filename) -w, h = img1.size -img2.paste(img1.crop((0, 0, w // 2, h))) -h2 = 300 -w2 = w * h2 // h -img2.thumbnail((w2, h2)) -img2.save(output_filename) -os.startfile(output_filename) diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index 2c68075..7a6c7c9 100644 --- a/src/Properties/AssemblyInfo.cs +++ b/src/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.2.1")] +[assembly: AssemblyVersion("2.3.0")] //[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/themes/Mojave_Desert.json b/src/themes/Mojave_Desert.json index 5a70a0b..56b6264 100644 --- a/src/themes/Mojave_Desert.json +++ b/src/themes/Mojave_Desert.json @@ -1,5 +1,5 @@ { - "imagesZipUri": "https://files.rb.gd/mojave_dynamic.zip|https://box.heliohost.org/mojave_desert.zip", + "imagesZipUri": "https://files.rb.gd/mojave_dynamic.zip|https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Mojave_Desert_images.zip", "imageFilename": "mojave_dynamic_*.jpeg", "imageCredits": "Apple", "dayImageList": [ diff --git a/src/themes/Solar_Gradients.json b/src/themes/Solar_Gradients.json index e0dce01..7b9f440 100644 --- a/src/themes/Solar_Gradients.json +++ b/src/themes/Solar_Gradients.json @@ -1,5 +1,5 @@ { - "imagesZipUri": "https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%21721&authkey=AK4kktXlvN1KJzQ|https://box.heliohost.org/solar_gradients.zip", + "imagesZipUri": "https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%21721&authkey=AK4kktXlvN1KJzQ|https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Solar_Gradients_images.zip", "imageFilename": "solar_gradients_*.jpeg", "imageCredits": "Apple", "dayImageList": [