Skip to content

Commit

Permalink
Update translations and changelog for 5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Jan 17, 2023
1 parent a88d156 commit a0eb46e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 11 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## `5.2.0`

* Added dark UI theme using Mica (only for Windows 11 22H2)
* Added Burmese translation (thanks Febri)
* Fixed user-defined sunrise and sunset times being stored incorrectly for some locales ([#487](https://github.com/t1m0thyj/WinDynamicDesktop/issues/487))
* Fixed IndexOutOfRangeException that could occur when Select Theme dialog is opened and there are multiple monitors ([#498](https://github.com/t1m0thyj/WinDynamicDesktop/issues/498))
* Fixed error when PowerShell scripts run with blank imagePath parameter because there is no active theme

## `5.1.0`

**Note:** This version removes syncing wallpaper across virtual desktops in Windows 11 which used an experimental API that is too unstable to support. If you still want this functionality, install the [Sync Virtual Desktops](https://github.com/t1m0thyj/WDD-scripts/tree/master/experimental#synchronize-virtual-desktops) script.
Expand Down
11 changes: 7 additions & 4 deletions scripts/i18n_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
projects = client.list_projects()
project_id = [proj for proj in projects if proj["name"] == "WinDynamicDesktop"][0]["id"]
languages = client.list_project_languages(project_id)
language_codes = [lang["code"] for lang in languages if lang["percentage"] >= 50]

for lc in language_codes:
print(f"Downloading translation for {lc}")
client.export(project_id, lc, file_type, local_file=f"{output_dir}/{lc}.{file_type}")
for lang in languages:
language_code = lang["code"]
output_file = f"{output_dir}/{language_code}.{file_type}"
if lang["percentage"] < 50 and not os.path.isfile(output_file):
continue
print(f"Downloading translation for {language_code}")
client.export(project_id, language_code, file_type, local_file=output_file)
11 changes: 6 additions & 5 deletions src/AcrylicUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using WinDynamicDesktop.COM;

namespace WinDynamicDesktop
{
Expand All @@ -24,13 +25,13 @@ public static void ThemeForm(Form form, bool onInit = true)
return;
}

COM.WinBlur.BlurType blurType = IsDark ? COM.WinBlur.BlurType.Mica : COM.WinBlur.BlurType.None;
COM.WinBlur.SetBlurStyle(form, blurType, COM.WinBlur.Mode.DarkMode);
WinBlur.BlurType blurType = IsDark ? WinBlur.BlurType.Mica : WinBlur.BlurType.None;
WinBlur.SetBlurStyle(form, blurType, WinBlur.Mode.DarkMode);
form.ForeColor = IsDark ? Color.White : Control.DefaultForeColor;

foreach (Control childControl in GetControls(form))
{
COM.WinBlur.SetBlurStyle(childControl, blurType, COM.WinBlur.Mode.DarkMode);
WinBlur.SetBlurStyle(childControl, blurType, WinBlur.Mode.DarkMode);
childControl.ForeColor = IsDark ? Color.White : Control.DefaultForeColor;

if (childControl is LinkLabel)
Expand All @@ -42,7 +43,7 @@ public static void ThemeForm(Form form, bool onInit = true)
{
childControl.Paint += (object sender, PaintEventArgs e) =>
{
if (!childControl.Enabled)
if (IsDark && !childControl.Enabled)
{
TextRenderer.DrawText(e.Graphics, childControl.Text, childControl.Font,
childControl.ClientRectangle, Color.Gray);
Expand Down Expand Up @@ -79,7 +80,7 @@ internal static IEnumerable<Control> GetControls(Control form)

private static bool IsSupported
{
get { return Environment.OSVersion.Version.Major >= 10 && Environment.OSVersion.Version.Build >= 22000; }
get { return Environment.OSVersion.Version.Major >= 10 && Environment.OSVersion.Version.Build >= 22523; }
}
}
}
2 changes: 1 addition & 1 deletion src/WinDynamicDesktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>WinDynamicDesktop</PackageId>
<Product>WinDynamicDesktop</Product>
<Copyright>Copyright © 2023 Timothy Johnson</Copyright>
<Version>5.1.0</Version>
<Version>5.2.0</Version>
<ApplicationIcon>resources\WinDynamicDesktop.ico</ApplicationIcon>
<UseWindowsForms>true</UseWindowsForms>
<UseWPF>true</UseWPF>
Expand Down
Binary file modified src/locale/el.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion uwp/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" IgnorableNamespaces="uap uap3 mp rescap desktop">
<Identity Name="38719TimothyJohnson.WinDynamicDesktop" Publisher="CN=3C822DA5-D64C-40A9-A84A-5502C3EDD8CD" Version="5.1.0.0" />
<Identity Name="38719TimothyJohnson.WinDynamicDesktop" Publisher="CN=3C822DA5-D64C-40A9-A84A-5502C3EDD8CD" Version="5.2.0.0" />
<Properties>
<DisplayName>WinDynamicDesktop</DisplayName>
<PublisherDisplayName>Timothy Johnson</PublisherDisplayName>
Expand Down

0 comments on commit a0eb46e

Please sign in to comment.