|
7 | 7 |
|
8 | 8 | namespace Files.App.Controls |
9 | 9 | { |
10 | | - // Template Parts |
11 | | - [TemplatePart(Name = LayerCanvasPart, Type = typeof(Canvas))] |
12 | | - [TemplatePart(Name = LayerPathPart, Type = typeof(Path))] |
13 | | - |
14 | | - // Icon Color Visual States |
15 | | - [TemplateVisualState(Name = BaseStateName, GroupName = IconLayerColorStateGroupName)] |
16 | | - [TemplateVisualState(Name = AltStateName, GroupName = IconLayerColorStateGroupName)] |
17 | | - [TemplateVisualState(Name = AccentStateName, GroupName = IconLayerColorStateGroupName)] |
18 | | - [TemplateVisualState(Name = AccentContrastStateName, GroupName = IconLayerColorStateGroupName)] |
19 | | - |
20 | | - // Non Accent Color States |
21 | | - [TemplateVisualState(Name = CriticalStateName, GroupName = IconLayerColorStateGroupName)] |
22 | | - [TemplateVisualState(Name = CautionStateName, GroupName = IconLayerColorStateGroupName)] |
23 | | - [TemplateVisualState(Name = SuccessStateName, GroupName = IconLayerColorStateGroupName)] |
24 | | - [TemplateVisualState(Name = NeutralStateName, GroupName = IconLayerColorStateGroupName)] |
25 | | - [TemplateVisualState(Name = CustomColorStateName, GroupName = IconLayerColorStateGroupName)] |
26 | | - |
27 | | - // Non Accent Contrasting Color States |
28 | | - [TemplateVisualState(Name = CriticalBGStateName, GroupName = IconLayerColorStateGroupName)] |
29 | | - [TemplateVisualState(Name = CautionBGStateName, GroupName = IconLayerColorStateGroupName)] |
30 | | - [TemplateVisualState(Name = SuccessBGStateName, GroupName = IconLayerColorStateGroupName)] |
31 | | - [TemplateVisualState(Name = NeutralBGStateName, GroupName = IconLayerColorStateGroupName)] |
32 | | - [TemplateVisualState(Name = CustomColorBGStateName, GroupName = IconLayerColorStateGroupName)] |
33 | | - |
34 | | - |
35 | | - /// <summary> |
36 | | - /// Displays a layer of <see cref="ThemedIcon"/> for <see cref="ThemedIconTypes.Layered"/> icon type. |
37 | | - /// </summary> |
38 | | - public partial class ThemedIconLayer |
39 | | - { |
40 | | - // Path Control Part |
41 | | - internal const string LayerCanvasPart = "PART_LayerCanvas"; |
42 | | - internal const string LayerPathPart = "PART_LayerPath"; |
43 | | - |
44 | | - // Visual State Group Names |
45 | | - internal const string IconLayerColorStateGroupName = "IconLayerColorStates"; |
46 | | - |
47 | | - // Icon Color Type Visual State Names |
48 | | - internal const string BaseStateName = "Base"; |
49 | | - internal const string AltStateName = "Alt"; |
50 | | - internal const string AccentStateName = "Accent"; |
51 | | - internal const string AccentContrastStateName = "AccentContrast"; |
52 | | - |
53 | | - internal const string CriticalStateName = "Critical"; |
54 | | - internal const string CautionStateName = "Caution"; |
55 | | - internal const string SuccessStateName = "Success"; |
56 | | - internal const string NeutralStateName = "Neutral"; |
57 | | - internal const string CustomColorStateName = "Custom"; |
58 | | - |
59 | | - internal const string CriticalBGStateName = "CriticalBG"; |
60 | | - internal const string CautionBGStateName = "CautionBG"; |
61 | | - internal const string SuccessBGStateName = "SuccessBG"; |
62 | | - internal const string NeutralBGStateName = "NeutralBG"; |
63 | | - internal const string CustomColorBGStateName = "CustomBG"; |
64 | | - } |
| 10 | + // Template Parts |
| 11 | + [TemplatePart(Name = LayerCanvasPart, Type = typeof(Canvas))] |
| 12 | + [TemplatePart(Name = LayerPathPart, Type = typeof(Path))] |
| 13 | + // Icon Color Visual States |
| 14 | + [TemplateVisualState(Name = BaseStateName, GroupName = IconLayerColorStateGroupName)] |
| 15 | + [TemplateVisualState(Name = AltStateName, GroupName = IconLayerColorStateGroupName)] |
| 16 | + [TemplateVisualState(Name = AccentStateName, GroupName = IconLayerColorStateGroupName)] |
| 17 | + [TemplateVisualState(Name = AccentContrastStateName, GroupName = IconLayerColorStateGroupName)] |
| 18 | + // Non Accent Color States |
| 19 | + [TemplateVisualState(Name = CriticalStateName, GroupName = IconLayerColorStateGroupName)] |
| 20 | + [TemplateVisualState(Name = CautionStateName, GroupName = IconLayerColorStateGroupName)] |
| 21 | + [TemplateVisualState(Name = SuccessStateName, GroupName = IconLayerColorStateGroupName)] |
| 22 | + [TemplateVisualState(Name = NeutralStateName, GroupName = IconLayerColorStateGroupName)] |
| 23 | + [TemplateVisualState(Name = CustomColorStateName, GroupName = IconLayerColorStateGroupName)] |
| 24 | + // Non Accent Contrasting Color States |
| 25 | + [TemplateVisualState(Name = CriticalBGStateName, GroupName = IconLayerColorStateGroupName)] |
| 26 | + [TemplateVisualState(Name = CautionBGStateName, GroupName = IconLayerColorStateGroupName)] |
| 27 | + [TemplateVisualState(Name = SuccessBGStateName, GroupName = IconLayerColorStateGroupName)] |
| 28 | + [TemplateVisualState(Name = NeutralBGStateName, GroupName = IconLayerColorStateGroupName)] |
| 29 | + [TemplateVisualState(Name = CustomColorBGStateName, GroupName = IconLayerColorStateGroupName)] |
| 30 | + /// <summary> |
| 31 | + /// Displays a layer of <see cref="ThemedIcon"/> for <see cref="ThemedIconTypes.Layered"/> icon type. |
| 32 | + /// </summary> |
| 33 | + public partial class ThemedIconLayer |
| 34 | + { |
| 35 | + // Path Control Part |
| 36 | + internal const string LayerCanvasPart = "PART_LayerCanvas"; |
| 37 | + internal const string LayerPathPart = "PART_LayerPath"; |
| 38 | + |
| 39 | + // Visual State Group Names |
| 40 | + internal const string IconLayerColorStateGroupName = "IconLayerColorStates"; |
| 41 | + |
| 42 | + // Icon Color Type Visual State Names |
| 43 | + internal const string BaseStateName = "Base"; |
| 44 | + internal const string AltStateName = "Alt"; |
| 45 | + internal const string AccentStateName = "Accent"; |
| 46 | + internal const string AccentContrastStateName = "AccentContrast"; |
| 47 | + |
| 48 | + internal const string CriticalStateName = "Critical"; |
| 49 | + internal const string CautionStateName = "Caution"; |
| 50 | + internal const string SuccessStateName = "Success"; |
| 51 | + internal const string NeutralStateName = "Neutral"; |
| 52 | + internal const string CustomColorStateName = "Custom"; |
| 53 | + |
| 54 | + internal const string CriticalBGStateName = "CriticalBG"; |
| 55 | + internal const string CautionBGStateName = "CautionBG"; |
| 56 | + internal const string SuccessBGStateName = "SuccessBG"; |
| 57 | + internal const string NeutralBGStateName = "NeutralBG"; |
| 58 | + internal const string CustomColorBGStateName = "CustomBG"; |
| 59 | + } |
65 | 60 | } |
0 commit comments