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

Commit

Permalink
Inherit dark mode from W11
Browse files Browse the repository at this point in the history
  • Loading branch information
Belim committed Jan 17, 2022
1 parent 4c1d2fd commit 3d729b1
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 109 deletions.
1 change: 0 additions & 1 deletion appversion.txt

This file was deleted.

8 changes: 4 additions & 4 deletions changes.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

- Added experimental dark mode feature on the rapid (goto to settings > experimental > enable dark theme to enable this feature.)
- Built-in support for build 22000.466 Prview
- Improved dark mode (inherited from Windows 11 app theme mode)
- Dropped support uncalled-for virtual sysnative folder
- Polished UI of automation aka PowerUI module

All changes can be viewed here: https://github.com/builtbybel/ThisIsWin11/releases/latest

From the blog:
You can still vote for the new design here
https://www.builtbybel.com/blog/19-apps/46-the-thisiswin11-navigation-bar-sucks
12 changes: 6 additions & 6 deletions src/TIW11/Helpers/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ public static class Paths
public static string AppDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
public static string LocalAppDataDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

public static string ShellWT = File.Exists(LocalAppDataDir + @"\Microsoft\WindowsApps\wt.exe") ?
LocalAppDataDir + @"\Microsoft\WindowsApps\wt.exe" : LocalAppDataDir + @"\Microsoft\WindowsApps\wt.exe";
public static string ShellWT = LocalAppDataDir +
@"\Microsoft\WindowsApps\wt.exe";

public static string ShellCommandPrompt = File.Exists(SysDir + @"Windows\Sysnative\cmd.exe") ?
SysDir + @"Windows\Sysnative\cmd.exe" : SysDir + @"Windows\System32\cmd.exe";
public static string ShellCommandPrompt = SysDir +
@"Windows\System32\cmd.exe";

public static string ShellPS = File.Exists(SysDir + @"Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe") ?
SysDir + @"Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe" : SysDir + @"Windows\System32\WindowsPowerShell\v1.0\powershell.exe";
public static string ShellPS = SysDir +
@"Windows\System32\WindowsPowerShell\v1.0\powershell.exe";
}

// Create data directory if non present
Expand Down
1 change: 0 additions & 1 deletion src/TIW11/Helpers/ThemeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public class ThemeHelper
{
// Dark theme
public static Color DarkBackgroundColor = Color.FromArgb(32, 32, 32);

public static Color DarkForgroundColor = Color.FromArgb(204, 204, 204);
public static Color DarkForgroundColorful = Color.FromArgb(255, 148, 238);

Expand Down
15 changes: 15 additions & 0 deletions src/TIW11/Views/AppsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@ private void RegisterTheme()

lstApps.ForeColor =
colorForegroundControl;

if (!ThemeHelper.AppsUseLightTheme())
{
btnAdd.BackColor =
btnAddAll.BackColor =
btnRemove.BackColor =
btnRemoveAll.BackColor =
Color.FromArgb(55,55,55);

btnAdd.ForeColor =
btnAddAll.ForeColor =
btnRemove.ForeColor =
btnRemoveAll.ForeColor =
colorForeground;
}
}

private void InitializeApps()
Expand Down
210 changes: 115 additions & 95 deletions src/TIW11/Views/AutomateWindow.Designer.cs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/TIW11/Views/AutomateWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ private void AutomateWindow_Load(object sender, EventArgs e)
private void UISelection()
{
btnAutomateMenu.Text = "\uE712";
btnEdit.Text = "\uE70B" + " Script Editor";
rtbDesc.Text = "You will find here custom tasks and script files to customize Windows 11 according to your wishes.\n\n" +
"To obtain new collections visit the GitHub repository of the app:\n\n" + Helpers.Strings.Uri.URL_GITREPO;

Expand Down Expand Up @@ -388,6 +389,8 @@ private void menuAutomateApplied_Click(object sender, EventArgs e)

private void btnAutomateMenu_Click(object sender, EventArgs e) => this.menuAutomate.Show(Cursor.Position.X, Cursor.Position.Y);

private void btnEdit_Click(object sender, EventArgs e) => menuAutomateEdit.PerformClick();

private void menuAutomatePopOut_Click(object sender, EventArgs e)
{
AutomateWindow automate = new AutomateWindow(); automate.Show();
Expand Down
3 changes: 1 addition & 2 deletions src/TIW11/Views/CustomizeWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ private void CustomizeWindow_Shown(object sender, EventArgs e)
private void UISelection()
{
logger.SetTarget(rtbPS); // Logs messages to target rtb
btnCustomizeMenu.Text = "\uE712";

btnCustomizeMenu.Text = "\uE712";
btnCustomizeImport.Text = "\uECC8";
btnCustomizeExportNShare.Text = "\uE72D";

rtbPS.Text = "Click the <Check> button to run a quick check of your Windows 11 configuration and to get a preview of the changes that could be applied." +
"\n\nYou can always restore the default Windows 11 settings. The option for this can be found in the upper right corner." +
Environment.NewLine + Environment.NewLine +
Expand Down

0 comments on commit 3d729b1

Please sign in to comment.