|
3 | 3 | <ResourceDictionary.ThemeDictionaries> |
4 | 4 | <ResourceDictionary x:Key="Default"> |
5 | 5 | <Color x:Key="IconColor">#FF25292F</Color> |
6 | | - <SolidColorBrush x:Key="IconBrush" Color="{StaticResource IconColor}"/> |
| 6 | + <Color x:Key="WarningColor">#FFFF7F27</Color> |
| 7 | + <SolidColorBrush x:Key="IconBrush" Color="{DynamicResource IconColor}"/> |
| 8 | + <SolidColorBrush x:Key="WarningBrush" Color="{DynamicResource WarningColor}"/> |
7 | 9 | </ResourceDictionary> |
8 | 10 | <ResourceDictionary x:Key="Dark"> |
9 | 11 | <Color x:Key="IconColor">White</Color> |
10 | | - <SolidColorBrush x:Key="IconBrush" Color="{StaticResource IconColor}"/> |
| 12 | + <Color x:Key="WarningColor">#FFFFD40F</Color> |
| 13 | + <SolidColorBrush x:Key="IconBrush" Color="{DynamicResource IconColor}"/> |
| 14 | + <SolidColorBrush x:Key="WarningBrush" Color="{DynamicResource WarningColor}"/> |
11 | 15 | </ResourceDictionary> |
12 | 16 | </ResourceDictionary.ThemeDictionaries> |
13 | | - |
| 17 | + <Pen x:Key="WarningPen" Brush="{DynamicResource WarningBrush}" Thickness="2"/> |
| 18 | + <!-- |
| 19 | + These icon resource keys must be kept in sync with the IconConverter found in |
| 20 | + src/shared/Core/UI/Converters/IconConverter.cs. |
| 21 | + --> |
14 | 22 | <DrawingImage x:Key="GcmLogo"> |
15 | 23 | <DrawingImage.Drawing> |
16 | 24 | <DrawingGroup> |
|
50 | 58 | </DrawingGroup> |
51 | 59 | </DrawingImage.Drawing> |
52 | 60 | </DrawingImage> |
| 61 | + <DrawingImage x:Key="WarningIcon"> |
| 62 | + <DrawingImage.Drawing> |
| 63 | + <DrawingGroup> |
| 64 | + <DrawingGroup.Children> |
| 65 | + <GeometryDrawing Pen="{DynamicResource WarningPen}" Geometry="M12,2 L22,20 L2,20 Z"/> |
| 66 | + <GeometryDrawing Pen="{DynamicResource WarningPen}" Geometry="M12,8 L12,14"/> |
| 67 | + <GeometryDrawing Brush="{DynamicResource WarningBrush}" Geometry="M11,16 a1,1 0 1,0 2,0 a1,1 0 1,0 -2,0"/> |
| 68 | + </DrawingGroup.Children> |
| 69 | + </DrawingGroup> |
| 70 | + </DrawingImage.Drawing> |
| 71 | + </DrawingImage> |
53 | 72 | </ResourceDictionary> |
0 commit comments