Skip to content

Commit

Permalink
Add Big Sur themes and update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Jun 25, 2020
1 parent 44ccd6c commit ba67cae
Show file tree
Hide file tree
Showing 30 changed files with 103 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog

## `4.2.0`

* Add Big Sur and Big Sur Abstract themes
* Add Bulgarian and Japanese translations (thanks Marin and Syoyusensation)
* Improve error checking for theme JSON when new themes are installed
* Fix check for updates failing on Windows 7
16 changes: 15 additions & 1 deletion src/AboutDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public AboutDialog()
private void AboutDialog_Load(object sender, EventArgs e)
{
iconBox.Image = (new Icon(Properties.Resources.AppIcon, 64, 64)).ToBitmap();
richTextBox1.Rtf = GetRtfText();
richTextBox1.Rtf = GetRtfUnicodeEscapedString(GetRtfText());
}

private string GetRtfLink(string href, string linkText = null)
Expand Down Expand Up @@ -68,6 +68,20 @@ private string GetRtfText()
@"\par }";
}

// Code from https://stackoverflow.com/questions/1368020/how-to-output-unicode-string-to-rtf-using-c
private string GetRtfUnicodeEscapedString(string s)
{
var sb = new StringBuilder();
foreach (var c in s)
{
if (c <= 0x7f)
sb.Append(c);
else
sb.Append("\\u" + Convert.ToUInt32(c) + "?");
}
return sb.ToString();
}

private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(e.LinkText);
Expand Down
2 changes: 2 additions & 0 deletions src/Localization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ private static void LoadLanguages()
AddLanguage("Română", "ro"); // Romanian
AddLanguage("Pусский", "ru"); // Russian
AddLanguage("Türkçe", "tr"); // Turkish
AddLanguage("Български", "bg"); // Bulgarian
AddLanguage("हिन्दी", "hi"); // Hindi
AddLanguage("বাংলা", "bn"); // Bengali
AddLanguage("中文 (简体)", "zh-Hans"); // Chinese (Simplified)
AddLanguage("日本語", "ja"); // Japanese
}

private static void AddLanguage(string languageName, string languageCode)
Expand Down
2 changes: 1 addition & 1 deletion src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("4.1.1")]
[assembly: AssemblyVersion("4.2.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
40 changes: 40 additions & 0 deletions src/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,16 @@
<data name="locale_pt_br" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\locale\pt-br.mo;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="Big_Sur_Abstract_thumbnail" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\Big_Sur_Abstract_thumbnail.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Big_Sur_thumbnail" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\Big_Sur_thumbnail.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="locale_bg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\locale\bg.mo;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="locale_ja" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\locale\ja.mo;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
10 changes: 8 additions & 2 deletions src/WinDynamicDesktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@
<DependentUpon>ThemeDialog.cs</DependentUpon>
</EmbeddedResource>
<None Include="app.manifest" />
<None Include="locale\bg.mo" />
<None Include="locale\bn.mo" />
<None Include="locale\cs.mo" />
<None Include="locale\de.mo" />
Expand All @@ -211,6 +212,7 @@
<None Include="locale\hi.mo" />
<None Include="locale\id.mo" />
<None Include="locale\it.mo" />
<None Include="locale\ja.mo" />
<None Include="locale\mk.mo" />
<None Include="locale\pl.mo" />
<None Include="locale\pt-br.mo" />
Expand Down Expand Up @@ -239,14 +241,18 @@
<None Include="resources\Solar_Gradients_thumbnail.jpg" />
<None Include="resources\WinDynamicDesktop.ico" />
</ItemGroup>
<ItemGroup>
<Content Include="resources\Big_Sur_Abstract_thumbnail.jpg" />
<Content Include="resources\Big_Sur_thumbnail.jpg" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('packages\Costura.Fody.4.1.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Costura.Fody.4.1.0\build\Costura.Fody.props'))" />
<Error Condition="!Exists('packages\PropertyChanged.Fody.3.2.8\build\PropertyChanged.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\PropertyChanged.Fody.3.2.8\build\PropertyChanged.Fody.props'))" />
<Error Condition="!Exists('packages\Fody.6.1.2\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Fody.6.1.2\build\Fody.targets'))" />
<Error Condition="!Exists('packages\Fody.6.2.0\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Fody.6.2.0\build\Fody.targets'))" />
</Target>
<Import Project="packages\Fody.6.1.2\build\Fody.targets" Condition="Exists('packages\Fody.6.1.2\build\Fody.targets')" />
<Import Project="packages\Fody.6.2.0\build\Fody.targets" Condition="Exists('packages\Fody.6.2.0\build\Fody.targets')" />
</Project>
Binary file added src/locale/bg.mo
Binary file not shown.
Binary file modified src/locale/bn.mo
Binary file not shown.
Binary file modified src/locale/cs.mo
Binary file not shown.
Binary file modified src/locale/de.mo
Binary file not shown.
Binary file modified src/locale/el.mo
Binary file not shown.
Binary file modified src/locale/es.mo
Binary file not shown.
Binary file modified src/locale/fr.mo
Binary file not shown.
Binary file modified src/locale/hi.mo
Binary file not shown.
Binary file modified src/locale/id.mo
Binary file not shown.
Binary file modified src/locale/it.mo
Binary file not shown.
Binary file added src/locale/ja.mo
Binary file not shown.
Binary file modified src/locale/mk.mo
Binary file not shown.
Binary file modified src/locale/pl.mo
Binary file not shown.
Binary file modified src/locale/pt-br.mo
Binary file not shown.
Binary file modified src/locale/ro.mo
Binary file not shown.
Binary file modified src/locale/ru.mo
Binary file not shown.
Binary file modified src/locale/tr.mo
Binary file not shown.
Binary file modified src/locale/zh-Hans.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion src/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<packages>
<package id="Costura.Fody" version="4.1.0" targetFramework="net472" />
<package id="DesktopBridge.Helpers" version="1.2.2" targetFramework="net472" />
<package id="Fody" version="6.1.2" targetFramework="net472" developmentDependency="true" />
<package id="Fody" version="6.2.0" targetFramework="net472" developmentDependency="true" />
<package id="ImageListView" version="13.8.2" targetFramework="net472" />
<package id="NamedPipeWrapper" version="1.5.0" targetFramework="net472" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net472" />
Expand Down
Binary file added src/resources/Big_Sur_Abstract_thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/resources/Big_Sur_thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 15 additions & 3 deletions src/resources/default_themes.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
Big_Sur:
- https://github.com/t1m0thyj/WDD-mac-themes/releases/download/big-sur/Big_Sur.ddw
- https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%216182&authkey=AA94LmSmEKl9rhM

Big_Sur_Abstract:
- https://github.com/t1m0thyj/WDD-mac-themes/releases/download/big-sur/Big_Sur_Abstract.ddw
- https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Big_Sur_Abstract.ddw
- https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%216183&authkey=ADevG8ifoBg_74Q

Catalina:
- https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%216180&authkey=AH0mox59q_XNNAA
- https://github.com/t1m0thyj/WDD-mac-themes/releases/download/catalina/Catalina.ddw
- https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Catalina.ddw
- https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%216180&authkey=AH0mox59q_XNNAA

Mojave_Desert:
- https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%216178&authkey=AOIt0bB-rq11U34
- https://github.com/t1m0thyj/WDD-mac-themes/releases/download/mojave/Mojave_Desert.ddw
- https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Mojave_Desert.ddw
- https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%216178&authkey=AOIt0bB-rq11U34

Solar_Gradients:
- https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%216179&authkey=AHKnzpdn1Ulhpb8
- https://github.com/t1m0thyj/WDD-mac-themes/releases/download/mojave/Solar_Gradients.ddw
- https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Solar_Gradients.ddw
- https://onedrive.live.com/download?cid=CC2E3BD0360C1775&resid=CC2E3BD0360C1775%216179&authkey=AHKnzpdn1Ulhpb8
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="4.1.1.0" />
<Identity Name="38719TimothyJohnson.WinDynamicDesktop" Publisher="CN=3C822DA5-D64C-40A9-A84A-5502C3EDD8CD" Version="4.2.0.0" />
<Properties>
<DisplayName>WinDynamicDesktop</DisplayName>
<PublisherDisplayName>Timothy Johnson</PublisherDisplayName>
Expand Down

0 comments on commit ba67cae

Please sign in to comment.