forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRatingControl_themeresources.xaml
72 lines (66 loc) · 5.22 KB
/
RatingControl_themeresources.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!-- 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:local="using:Microsoft.UI.Xaml.Controls">
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Default">
<StaticResource x:Key="RatingControlUnselectedForeground" ResourceKey="SystemControlBackgroundBaseLowBrush"/>
<StaticResource x:Key="RatingControlSelectedForeground" ResourceKey="SystemControlForegroundAccentBrush"/>
<StaticResource x:Key="RatingControlPlaceholderForeground" ResourceKey="SystemControlForegroundBaseHighBrush"/>
<StaticResource x:Key="RatingControlPointerOverPlaceholderForeground" ResourceKey="SystemControlForegroundBaseMediumBrush"/>
<StaticResource x:Key="RatingControlPointerOverUnselectedForeground" ResourceKey="SystemControlForegroundBaseMediumBrush"/>
<StaticResource x:Key="RatingControlPointerOverSelectedForeground" ResourceKey="SystemControlForegroundAccentBrush"/>
<StaticResource x:Key="RatingControlDisabledSelectedForeground" ResourceKey="SystemBaseMediumLowColor"/>
<!-- If this Foreground property is removed/renamed, please update ThemeResourcesTests::VerifyOverrides: -->
<StaticResource x:Key="RatingControlCaptionForeground" ResourceKey="SystemControlForegroundBaseMediumBrush"/>
<local:RatingItemFontInfo x:Key="MUX_RatingControlDefaultFontInfo" Glyph=""/>
</ResourceDictionary>
<ResourceDictionary x:Key="Light">
<StaticResource x:Key="RatingControlUnselectedForeground" ResourceKey="SystemControlBackgroundBaseLowBrush"/>
<StaticResource x:Key="RatingControlSelectedForeground" ResourceKey="SystemControlForegroundAccentBrush"/>
<StaticResource x:Key="RatingControlPlaceholderForeground" ResourceKey="SystemControlForegroundBaseHighBrush"/>
<StaticResource x:Key="RatingControlPointerOverPlaceholderForeground" ResourceKey="SystemControlForegroundBaseMediumBrush"/>
<StaticResource x:Key="RatingControlPointerOverUnselectedForeground" ResourceKey="SystemControlForegroundBaseMediumBrush"/>
<StaticResource x:Key="RatingControlPointerOverSelectedForeground" ResourceKey="SystemControlForegroundAccentBrush"/>
<StaticResource x:Key="RatingControlDisabledSelectedForeground" ResourceKey="SystemBaseMediumLowColor"/>
<StaticResource x:Key="RatingControlCaptionForeground" ResourceKey="SystemControlForegroundBaseMediumBrush"/>
<local:RatingItemFontInfo x:Key="MUX_RatingControlDefaultFontInfo" Glyph=""/>
</ResourceDictionary>
<ResourceDictionary x:Key="HighContrast">
<StaticResource x:Key="RatingControlUnselectedForeground" ResourceKey="SystemControlForegroundBaseLowBrush"/>
<StaticResource x:Key="RatingControlSelectedForeground" ResourceKey="SystemControlHighlightAccentBrush"/>
<StaticResource x:Key="RatingControlPlaceholderForeground" ResourceKey="SystemControlForegroundBaseHighBrush"/>
<StaticResource x:Key="RatingControlPointerOverPlaceholderForeground" ResourceKey="SystemControlForegroundBaseMediumBrush"/>
<StaticResource x:Key="RatingControlPointerOverUnselectedForeground" ResourceKey="SystemControlForegroundBaseMediumBrush"/>
<StaticResource x:Key="RatingControlPointerOverSelectedForeground" ResourceKey="SystemControlHighlightAccentBrush"/>
<StaticResource x:Key="RatingControlDisabledSelectedForeground" ResourceKey="SystemColorGrayTextColor"/>
<StaticResource x:Key="RatingControlCaptionForeground" ResourceKey="SystemControlForegroundBaseMediumBrush"/>
<local:RatingItemFontInfo x:Key="MUX_RatingControlDefaultFontInfo" Glyph="" UnsetGlyph=""/>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
<DataTemplate x:Key="BackgroundGlyphDefaultTemplate">
<!-- -8, -8 are to compensate for the default scale down, plus factoring in margins -->
<TextBlock
Foreground="{ThemeResource RatingControlUnselectedForeground}"
Margin="-8,-8,0,0"
FontSize="32"
Text=""
AutomationProperties.AccessibilityView="Raw"
FontFamily="{ThemeResource SymbolThemeFontFamily}"/>
</DataTemplate>
<DataTemplate x:Key="ForegroundGlyphDefaultTemplate">
<!-- -8, -8 are to compensate for the default scale down, plus factoring in margins -->
<TextBlock Margin="-8,-8,0,0"
FontSize="32"
Text=""
AutomationProperties.AccessibilityView="Raw"
FontFamily="{ThemeResource SymbolThemeFontFamily}"/>
</DataTemplate>
<DataTemplate x:Key="BackgroundImageDefaultTemplate">
<Image Margin="-8,-8,0,0" AutomationProperties.AccessibilityView="Raw"/>
</DataTemplate>
<DataTemplate x:Key="ForegroundImageDefaultTemplate">
<Image Margin="-8,-8,0,0" AutomationProperties.AccessibilityView="Raw"/>
</DataTemplate>
</ResourceDictionary>