Skip to content

Commit 85ae050

Browse files
committed
Revert "Made WinUI branding colors overridable"
This reverts commit e957f39.
1 parent e957f39 commit 85ae050

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

GeneratedResources/WinUI/Colors/Brushes.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<ResourceDictionary
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3+
<ResourceDictionary.MergedDictionaries>
4+
<ResourceDictionary Source="ms-appx:///Esri.Calcite.WinUI/Colors/Colors.xaml" />
5+
</ResourceDictionary.MergedDictionaries>
36
<SolidColorBrush x:Key="CalciteBackgroundBrush" Color="{ThemeResource CalciteBackgroundColor}" />
47
<SolidColorBrush x:Key="CalciteBackgroundNoneBrush" Color="{ThemeResource CalciteBackgroundNoneColor}" />
58
<SolidColorBrush x:Key="CalciteBorder1Brush" Color="{ThemeResource CalciteBorder1Color}" />

src/Esri.Calcite.WinUI/Styles/Brushes.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2+
<ResourceDictionary.MergedDictionaries>
3+
<ResourceDictionary Source="ms-appx:///Esri.Calcite.WinUI/Colors/Brushes.xaml" />
4+
</ResourceDictionary.MergedDictionaries>
5+
26
<ResourceDictionary.ThemeDictionaries>
37
<ResourceDictionary x:Key ="Default" >
48
<Color x:Key="CalciteTextOnBrandColor">White</Color>

src/Esri.Calcite.WinUI/Styles/Controls/Buttons.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:cal="using:Esri.Calcite.WinUI"
55
>
6+
<ResourceDictionary.MergedDictionaries>
7+
<ResourceDictionary Source="ms-appx:///Esri.Calcite.WinUI/Styles/Fonts.xaml" />
8+
<ResourceDictionary Source="ms-appx:///Esri.Calcite.WinUI/Styles/Brushes.xaml" />
9+
</ResourceDictionary.MergedDictionaries>
610

711
<StaticResource x:Key="ButtonBackground" ResourceKey="CalciteBackground3Brush" />
812
<StaticResource x:Key="ButtonBackgroundPointerOver" ResourceKey="CalciteBackground2Brush" />

src/Esri.Calcite.WinUI/Styles/Controls/TextBox.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<ResourceDictionary
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
4+
<ResourceDictionary.MergedDictionaries>
5+
<ResourceDictionary Source="ms-appx:///Esri.Calcite.WinUI/Styles/Fonts.xaml" />
6+
<ResourceDictionary Source="ms-appx:///Esri.Calcite.WinUI/Colors/Brushes.xaml" />
7+
</ResourceDictionary.MergedDictionaries>
48

59
<StaticResource x:Key="TextControlBorderBrush" ResourceKey="CalciteBorder2Brush" />
610
<StaticResource x:Key="TextControlBackground" ResourceKey="CalciteBackground1Brush" />

src/TestApps/WinUITests/App.xaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,6 @@
1515
<CalciteResources xmlns="using:Esri.Calcite.WinUI" />
1616
</XamlControlsResources.MergedDictionaries>
1717
</XamlControlsResources>
18-
19-
<!-- Merge in XAML resource overrides -->
20-
<ResourceDictionary>
21-
<!-- Override brand colors -->
22-
<!--<ResourceDictionary.ThemeDictionaries>
23-
<ResourceDictionary x:Key="Default">
24-
<Color x:Key="CalciteBrandColor" >#8F53CA</Color>
25-
<Color x:Key="CalciteBrandHoverColor" >#7938B6</Color>
26-
<Color x:Key="CalciteBrandPressColor" >#652E98</Color>
27-
</ResourceDictionary>
28-
<ResourceDictionary x:Key="Dark">
29-
<Color x:Key="CalciteBrandColor" >#7938B6</Color>
30-
<Color x:Key="CalciteBrandHoverColor" >#652E98</Color>
31-
<Color x:Key="CalciteBrandPressColor" >#51247A</Color>
32-
</ResourceDictionary>
33-
</ResourceDictionary.ThemeDictionaries>-->
34-
</ResourceDictionary>
3518
</ResourceDictionary.MergedDictionaries>
3619
<!-- Other app resources here -->
3720
<Style TargetType="TextBlock" x:Key="CodeTextBlock">

0 commit comments

Comments
 (0)