-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed MetroWindow, added theming support and modernWPF
- Loading branch information
Showing
15 changed files
with
417 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/modules/fancyzones/editor/FancyZonesEditor/Themes/Dark.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:system="clr-namespace:System;assembly=System.Runtime"> | ||
|
||
<!-- Metadata --> | ||
<system:String x:Key="Theme.Name">Dark.Accent1</system:String> | ||
<system:String x:Key="Theme.Origin">PowerToysRun</system:String> | ||
<system:String x:Key="Theme.DisplayName">Accent1 (Dark)</system:String> | ||
<system:String x:Key="Theme.BaseColorScheme">Dark</system:String> | ||
<system:String x:Key="Theme.ColorScheme">Accent1</system:String> | ||
<Color x:Key="Theme.PrimaryAccentColor">Black</Color> | ||
|
||
<SolidColorBrush x:Key="SecondaryBackgroundBrush" Color="#FF3a3a3a" /> | ||
<SolidColorBrush x:Key="PrimaryBackgroundBrush" Color="#FF333333" /> | ||
<SolidColorBrush x:Key="WindowBorderBrush" Color="#FF535353"/> | ||
<SolidColorBrush x:Key="TitleBarSecondaryForegroundBrush" Color="#FF9a9a9a"/> | ||
|
||
<SolidColorBrush x:Key="ListViewPointerOverBrush" Color="#FF242424"/> | ||
<SolidColorBrush x:Key="ListViewPressedBrush" Color="#FF333333"/> | ||
|
||
<SolidColorBrush x:Key="ColorControlBackgroundBrush" Color="#FF454545"/> | ||
<SolidColorBrush x:Key="PrimaryForegroundBrush" Color="#FFFFFFFF" /> | ||
<SolidColorBrush x:Key="SecondaryForegroundBrush" Color="#FF6b6b6b" /> | ||
</ResourceDictionary> |
24 changes: 24 additions & 0 deletions
24
src/modules/fancyzones/editor/FancyZonesEditor/Themes/HighContrast1.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:system="clr-namespace:System;assembly=System.Runtime"> | ||
|
||
<!-- Metadata --> | ||
<system:String x:Key="Theme.Name">HighContrast.Accent2</system:String> | ||
<system:String x:Key="Theme.Origin">PowerToysRun</system:String> | ||
<system:String x:Key="Theme.DisplayName">Accent2 (HighContrast)</system:String> | ||
<system:String x:Key="Theme.BaseColorScheme">HighContrast</system:String> | ||
<system:String x:Key="Theme.ColorScheme">Accent2</system:String> | ||
<Color x:Key="Theme.PrimaryAccentColor">White</Color> | ||
|
||
<SolidColorBrush x:Key="SecondaryBackgroundBrush" Color="#FF3a3a3a" /> | ||
<SolidColorBrush x:Key="PrimaryBackgroundBrush" Color="#FF333333" /> | ||
<SolidColorBrush x:Key="WindowBorderBrush" Color="#FFffff00"/> | ||
<SolidColorBrush x:Key="TitleBarSecondaryForegroundBrush" Color="#FF9a9a9a"/> | ||
|
||
<SolidColorBrush x:Key="ListViewPointerOverBrush" Color="#FF242424"/> | ||
<SolidColorBrush x:Key="ListViewPressedBrush" Color="#FF333333"/> | ||
|
||
<SolidColorBrush x:Key="ColorControlBackgroundBrush" Color="#FF454545"/> | ||
<SolidColorBrush x:Key="PrimaryForegroundBrush" Color="#FFffff00" /> | ||
<SolidColorBrush x:Key="SecondaryForegroundBrush" Color="#FF00ff00" /> | ||
</ResourceDictionary> |
25 changes: 25 additions & 0 deletions
25
src/modules/fancyzones/editor/FancyZonesEditor/Themes/HighContrast2.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:system="clr-namespace:System;assembly=System.Runtime"> | ||
|
||
<!-- Metadata --> | ||
<system:String x:Key="Theme.Name">HighContrast.Accent3</system:String> | ||
<system:String x:Key="Theme.Origin">PowerToysRun</system:String> | ||
<system:String x:Key="Theme.DisplayName">Accent3 (HighContrast)</system:String> | ||
<system:String x:Key="Theme.BaseColorScheme">HighContrast</system:String> | ||
<system:String x:Key="Theme.ColorScheme">Accent3</system:String> | ||
<Color x:Key="Theme.PrimaryAccentColor">White</Color> | ||
|
||
<SolidColorBrush x:Key="SecondaryBackgroundBrush" Color="#FF3a3a3a" /> | ||
<SolidColorBrush x:Key="PrimaryBackgroundBrush" Color="#FF333333" /> | ||
<SolidColorBrush x:Key="WindowBorderBrush" Color="#FF00ff00"/> | ||
<SolidColorBrush x:Key="TitleBarSecondaryForegroundBrush" Color="#FF9a9a9a"/> | ||
|
||
<SolidColorBrush x:Key="ListViewPointerOverBrush" Color="#FF242424"/> | ||
<SolidColorBrush x:Key="ListViewPressedBrush" Color="#FF333333"/> | ||
|
||
<SolidColorBrush x:Key="ColorControlBackgroundBrush" Color="#FF454545"/> | ||
|
||
<SolidColorBrush x:Key="PrimaryForegroundBrush" Color="#FF00ff00" /> | ||
<SolidColorBrush x:Key="SecondaryForegroundBrush" Color="#FFc0c0c0" /> | ||
</ResourceDictionary> |
25 changes: 25 additions & 0 deletions
25
src/modules/fancyzones/editor/FancyZonesEditor/Themes/HighContrastBlack.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:system="clr-namespace:System;assembly=System.Runtime"> | ||
|
||
<!-- Metadata --> | ||
<system:String x:Key="Theme.Name">HighContrast.Accent4</system:String> | ||
<system:String x:Key="Theme.Origin">PowerToysRun</system:String> | ||
<system:String x:Key="Theme.DisplayName">Accent4 (HighContrast)</system:String> | ||
<system:String x:Key="Theme.BaseColorScheme">HighContrast</system:String> | ||
<system:String x:Key="Theme.ColorScheme">Accent4</system:String> | ||
<Color x:Key="Theme.PrimaryAccentColor">White</Color> | ||
|
||
<SolidColorBrush x:Key="SecondaryBackgroundBrush" Color="#FF3a3a3a" /> | ||
<SolidColorBrush x:Key="PrimaryBackgroundBrush" Color="#FF333333" /> | ||
<SolidColorBrush x:Key="WindowBorderBrush" Color="#FFffffff"/> | ||
<SolidColorBrush x:Key="TitleBarSecondaryForegroundBrush" Color="#FF9a9a9a"/> | ||
|
||
<SolidColorBrush x:Key="ListViewPointerOverBrush" Color="#FF242424"/> | ||
<SolidColorBrush x:Key="ListViewPressedBrush" Color="#FF333333"/> | ||
|
||
<SolidColorBrush x:Key="ColorControlBackgroundBrush" Color="#FF454545"/> | ||
|
||
<SolidColorBrush x:Key="PrimaryForegroundBrush" Color="#FFffffff" /> | ||
<SolidColorBrush x:Key="SecondaryForegroundBrush" Color="#FF1aebff" /> | ||
</ResourceDictionary> |
25 changes: 25 additions & 0 deletions
25
src/modules/fancyzones/editor/FancyZonesEditor/Themes/HighContrastWhite.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:system="clr-namespace:System;assembly=System.Runtime"> | ||
|
||
<!-- Metadata --> | ||
<system:String x:Key="Theme.Name">HighContrast.Accent5</system:String> | ||
<system:String x:Key="Theme.Origin">PowerToysRun</system:String> | ||
<system:String x:Key="Theme.DisplayName">Accent5 (HighContrast)</system:String> | ||
<system:String x:Key="Theme.BaseColorScheme">HighContrast</system:String> | ||
<system:String x:Key="Theme.ColorScheme">Accent5</system:String> | ||
<Color x:Key="Theme.PrimaryAccentColor">White</Color> | ||
|
||
<SolidColorBrush x:Key="SecondaryBackgroundBrush" Color="#FFededed" /> | ||
<SolidColorBrush x:Key="PrimaryBackgroundBrush" Color="#FFe5e5e5" /> | ||
<SolidColorBrush x:Key="WindowBorderBrush" Color="Black"/> | ||
<SolidColorBrush x:Key="TitleBarSecondaryForegroundBrush" Color="#FF949494"/> | ||
|
||
<SolidColorBrush x:Key="ListViewPointerOverBrush" Color="#e9e9e9"/> | ||
<SolidColorBrush x:Key="ListViewPressedBrush" Color="#FFe5e5e5"/> | ||
|
||
<SolidColorBrush x:Key="ColorControlBackgroundBrush" Color="#FFf9f9f9"/> | ||
|
||
<SolidColorBrush x:Key="PrimaryForegroundBrush" Color="#FF000000" /> | ||
<SolidColorBrush x:Key="SecondaryForegroundBrush" Color="#FF37006e" /> | ||
</ResourceDictionary> |
25 changes: 25 additions & 0 deletions
25
src/modules/fancyzones/editor/FancyZonesEditor/Themes/Light.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:system="clr-namespace:System;assembly=System.Runtime"> | ||
|
||
<!-- Metadata --> | ||
<system:String x:Key="Theme.Name">Light.Accent1</system:String> | ||
<system:String x:Key="Theme.Origin">PowerToysRun</system:String> | ||
<system:String x:Key="Theme.DisplayName">Accent1 (Light)</system:String> | ||
<system:String x:Key="Theme.BaseColorScheme">Light</system:String> | ||
<system:String x:Key="Theme.ColorScheme">Accent1</system:String> | ||
<Color x:Key="Theme.PrimaryAccentColor">White</Color> | ||
|
||
<SolidColorBrush x:Key="SecondaryBackgroundBrush" Color="#FFededed" /> | ||
<SolidColorBrush x:Key="PrimaryBackgroundBrush" Color="#FFe5e5e5" /> | ||
<SolidColorBrush x:Key="WindowBorderBrush" Color="#FFf7f7f7"/> | ||
<SolidColorBrush x:Key="TitleBarSecondaryForegroundBrush" Color="#FF949494"/> | ||
|
||
<SolidColorBrush x:Key="ListViewPointerOverBrush" Color="#e9e9e9"/> | ||
<SolidColorBrush x:Key="ListViewPressedBrush" Color="#FFe5e5e5"/> | ||
|
||
<SolidColorBrush x:Key="ColorControlBackgroundBrush" Color="#FFf9f9f9"/> | ||
|
||
<SolidColorBrush x:Key="PrimaryForegroundBrush" Color="#FF000000" /> | ||
<SolidColorBrush x:Key="SecondaryForegroundBrush" Color="#FF949494" /> | ||
</ResourceDictionary> |
24 changes: 24 additions & 0 deletions
24
src/modules/fancyzones/editor/FancyZonesEditor/Utils/CustomLibraryThemeProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) Microsoft Corporation | ||
// The Microsoft Corporation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Collections.Generic; | ||
using ControlzEx.Theming; | ||
|
||
namespace FancyZonesEditor.Utils | ||
{ | ||
public class CustomLibraryThemeProvider : LibraryThemeProvider | ||
{ | ||
public static readonly CustomLibraryThemeProvider DefaultInstance = new CustomLibraryThemeProvider(); | ||
|
||
public CustomLibraryThemeProvider() | ||
: base(true) | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
public override void FillColorSchemeValues(Dictionary<string, string> values, RuntimeThemeColorValues colorValues) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.