forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45b7c39
commit 8fe36a1
Showing
2 changed files
with
632 additions
and
769 deletions.
There are no files selected for viewing
112 changes: 50 additions & 62 deletions
112
src/Uno.UI.FluentTheme.v2/Resources/Version2/Priority01/Common_themeresources.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 |
---|---|---|
@@ -1,63 +1,51 @@ | ||
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. --> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:contract7Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract,7)" xmlns:controls="using:Microsoft.UI.Xaml.Controls"> | ||
<!-- | ||
SystemControlTransparentBrush isn't defined in TH2. In RS1 and RS2, it's set to Transparent | ||
for all the themes. We explicitly set it here to ensure it's always defined. | ||
--> | ||
<ResourceDictionary.ThemeDictionaries> | ||
<ResourceDictionary x:Key="Default"> | ||
<SolidColorBrush x:Key="SystemControlTransparentBrush" Color="Transparent" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentVeryHighBrush" Color="{ThemeResource SystemAccentColor}" Opacity="0.9" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentMediumLowBrush" Color="{ThemeResource SystemAccentColor}" Opacity="0.75" /> | ||
<x:Boolean x:Key="UseSystemFocusVisuals">True</x:Boolean> | ||
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness> | ||
<Thickness x:Key="TextControlBorderThemeThicknessFocused">1,1,1,2</Thickness> | ||
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness> | ||
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{StaticResource SolidBackgroundFillColorBase}" /> | ||
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" /> | ||
<StaticResource x:Key="SystemControlFocusVisualPrimaryBrush" ResourceKey="FocusStrokeColorOuterBrush"/> | ||
<StaticResource x:Key="SystemControlFocusVisualSecondaryBrush" ResourceKey="FocusStrokeColorInnerBrush"/> | ||
</ResourceDictionary> | ||
|
||
<ResourceDictionary x:Key="Light"> | ||
<SolidColorBrush x:Key="SystemControlTransparentBrush" Color="Transparent" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentVeryHighBrush" Color="{ThemeResource SystemAccentColor}" Opacity="0.9" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentMediumLowBrush" Color="{ThemeResource SystemAccentColor}" Opacity="0.75" /> | ||
<x:Boolean x:Key="UseSystemFocusVisuals">True</x:Boolean> | ||
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness> | ||
<Thickness x:Key="TextControlBorderThemeThicknessFocused">1,1,1,2</Thickness> | ||
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness> | ||
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{StaticResource SolidBackgroundFillColorBase}" /> | ||
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" /> | ||
<StaticResource x:Key="SystemControlFocusVisualPrimaryBrush" ResourceKey="FocusStrokeColorOuterBrush"/> | ||
<StaticResource x:Key="SystemControlFocusVisualSecondaryBrush" ResourceKey="FocusStrokeColorInnerBrush"/> | ||
</ResourceDictionary> | ||
|
||
<ResourceDictionary x:Key="HighContrast"> | ||
<SolidColorBrush x:Key="SystemControlTransparentBrush" Color="Transparent" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentVeryHighBrush" Color="{ThemeResource SystemColorHighlightColor}" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentMediumLowBrush" Color="{ThemeResource SystemColorHighlightColor}" /> | ||
<x:Boolean x:Key="UseSystemFocusVisuals">True</x:Boolean> | ||
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness> | ||
<Thickness x:Key="TextControlBorderThemeThicknessFocused">2</Thickness> | ||
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness> | ||
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{ThemeResource SystemColorWindowColor}" /> | ||
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" /> | ||
<StaticResource x:Key="SystemControlFocusVisualPrimaryBrush" ResourceKey="FocusStrokeColorOuterBrush"/> | ||
<StaticResource x:Key="SystemControlFocusVisualSecondaryBrush" ResourceKey="FocusStrokeColorInnerBrush"/> | ||
</ResourceDictionary> | ||
</ResourceDictionary.ThemeDictionaries> | ||
|
||
<!-- DateTimeFlyoutBorderPadding is defined since RS5. set it here to ensure it's always defined. --> | ||
<Thickness x:Key="DateTimeFlyoutBorderPadding">0</Thickness> | ||
|
||
<x:Boolean x:Key="ThemeShadowIsUsingDropShadows">True</x:Boolean> | ||
|
||
|
||
<controls:TextCommandBarFlyout x:Key="TextControlCommandBarContextFlyout" Placement="BottomEdgeAlignedLeft" /> | ||
<controls:TextCommandBarFlyout x:Key="TextControlCommandBarSelectionFlyout" Placement="TopEdgeAlignedLeft" /> | ||
|
||
</ResourceDictionary> | ||
<ResourceDictionary xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:Microsoft.UI.Xaml.Controls" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<ResourceDictionary.ThemeDictionaries> | ||
<ResourceDictionary x:Key="Default"> | ||
<Color x:Key="SystemControlTransparentColor">#00000000</Color> | ||
<SolidColorBrush x:Key="SystemControlTransparentBrush" Color="Transparent" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentVeryHighBrush" Color="{ThemeResource SystemAccentColor}" Opacity="0.9" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentMediumLowBrush" Color="{ThemeResource SystemAccentColor}" Opacity="0.75" /> | ||
<x:Boolean x:Key="UseSystemFocusVisuals">True</x:Boolean> | ||
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness> | ||
<Thickness x:Key="TextControlBorderThemeThicknessFocused">1,1,1,2</Thickness> | ||
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness> | ||
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{StaticResource SolidBackgroundFillColorBase}" /> | ||
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" /> | ||
<StaticResource x:Key="SystemControlFocusVisualPrimaryBrush" ResourceKey="FocusStrokeColorOuterBrush" /> | ||
<StaticResource x:Key="SystemControlFocusVisualSecondaryBrush" ResourceKey="FocusStrokeColorInnerBrush" /> | ||
</ResourceDictionary> | ||
<ResourceDictionary x:Key="Light"> | ||
<Color x:Key="SystemControlTransparentColor">#00000000</Color> | ||
<SolidColorBrush x:Key="SystemControlTransparentBrush" Color="Transparent" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentVeryHighBrush" Color="{ThemeResource SystemAccentColor}" Opacity="0.9" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentMediumLowBrush" Color="{ThemeResource SystemAccentColor}" Opacity="0.75" /> | ||
<x:Boolean x:Key="UseSystemFocusVisuals">True</x:Boolean> | ||
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness> | ||
<Thickness x:Key="TextControlBorderThemeThicknessFocused">1,1,1,2</Thickness> | ||
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness> | ||
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{StaticResource SolidBackgroundFillColorBase}" /> | ||
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" /> | ||
<StaticResource x:Key="SystemControlFocusVisualPrimaryBrush" ResourceKey="FocusStrokeColorOuterBrush" /> | ||
<StaticResource x:Key="SystemControlFocusVisualSecondaryBrush" ResourceKey="FocusStrokeColorInnerBrush" /> | ||
</ResourceDictionary> | ||
<ResourceDictionary x:Key="HighContrast"> | ||
<Color x:Key="SystemControlTransparentColor">#00000000</Color> | ||
<SolidColorBrush x:Key="SystemControlTransparentBrush" Color="Transparent" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentVeryHighBrush" Color="{ThemeResource SystemColorHighlightColor}" /> | ||
<SolidColorBrush x:Key="SystemControlHighlightListAccentMediumLowBrush" Color="{ThemeResource SystemColorHighlightColor}" /> | ||
<x:Boolean x:Key="UseSystemFocusVisuals">True</x:Boolean> | ||
<Thickness x:Key="TextControlBorderThemeThickness">1</Thickness> | ||
<Thickness x:Key="TextControlBorderThemeThicknessFocused">2</Thickness> | ||
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness> | ||
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{ThemeResource SystemColorWindowColor}" /> | ||
<StaticResource x:Key="DefaultTextForegroundThemeBrush" ResourceKey="TextFillColorPrimaryBrush" /> | ||
<StaticResource x:Key="SystemControlFocusVisualPrimaryBrush" ResourceKey="FocusStrokeColorOuterBrush" /> | ||
<StaticResource x:Key="SystemControlFocusVisualSecondaryBrush" ResourceKey="FocusStrokeColorInnerBrush" /> | ||
</ResourceDictionary> | ||
</ResourceDictionary.ThemeDictionaries> | ||
<Thickness x:Key="DateTimeFlyoutBorderPadding">0</Thickness> | ||
<x:Boolean x:Key="ThemeShadowIsUsingDropShadows">True</x:Boolean> | ||
<controls:TextCommandBarFlyout x:Key="TextControlCommandBarContextFlyout" Placement="BottomEdgeAlignedLeft" /> | ||
<controls:TextCommandBarFlyout x:Key="TextControlCommandBarSelectionFlyout" Placement="TopEdgeAlignedLeft" /> | ||
</ResourceDictionary> |
Oops, something went wrong.