Skip to content

Commit

Permalink
new msstyles
Browse files Browse the repository at this point in the history
  • Loading branch information
rounk-ctrl committed Oct 9, 2023
1 parent 93618db commit 6c69fa9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Rectify11Installer/Core/Backend/Themes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,17 @@ private static bool InstallMsstyles()
{
try
{
Directory.Move(msstyleDirList[i].FullName, Path.Combine(Variables.Windir, "Resources", "Themes", msstyleDirList[i].Name));
Logger.WriteLine("Copied " + msstyleDirList[i].Name + " directory.");
if (Environment.OSVersion.Version.Build >= 22543
&& !msstyleDirList[i].Name.Contains("Legacy"))
{
Directory.Move(msstyleDirList[i].FullName, Path.Combine(Variables.Windir, "Resources", "Themes", msstyleDirList[i].Name));
Logger.WriteLine("Copied " + msstyleDirList[i].Name + " directory.");
}
else if (Environment.OSVersion.Version.Build < 22543)
{
Directory.Move(msstyleDirList[i].FullName, Path.Combine(Variables.Windir, "Resources", "Themes", msstyleDirList[i].Name.Replace("Legacy", "")));
Logger.WriteLine("Copied " + msstyleDirList[i].Name + " directory.");
}
}
catch (Exception ex)
{
Expand Down
Binary file modified Rectify11Installer/Resources/themes.7z
Binary file not shown.

0 comments on commit 6c69fa9

Please sign in to comment.