|
6 | 6 | <FontFamily x:Key="LatoFontFamily">/InvvardDev.EZLayoutDisplay.Desktop;component/Skins/Fonts/#Lato</FontFamily> |
7 | 7 | <FontFamily x:Key="OryxFontFamily">/InvvardDev.EZLayoutDisplay.Desktop;component/Skins/Fonts/#Oryx</FontFamily> |
8 | 8 |
|
9 | | - <SolidColorBrush x:Key="BaseDefaultBackgroundBrush" Color="#f4f4f4" /> |
10 | | - <SolidColorBrush x:Key="BaseDualFunctionBackgroundBrush" Color="#d5e1f9" /> |
11 | | - <SolidColorBrush x:Key="BaseModifierBackgroundBrush" Color="#e1f5d7" /> |
12 | | - <SolidColorBrush x:Key="BaseShineBackgroundBrush" Color="#f1e5b6" /> |
| 9 | + <SolidColorBrush x:Key="DefaultBackgroundBrush" Color="#FFFFFF" /> |
| 10 | + <SolidColorBrush x:Key="ColorControlBackgroundBrush" Color="#FFF1BA" /> |
| 11 | + <SolidColorBrush x:Key="CustomLabelBackgroundBrush" Color="#FFBFA3" /> |
| 12 | + <SolidColorBrush x:Key="DualFunctionBackgroundBrush" Color="#E1EBFF" /> |
| 13 | + <SolidColorBrush x:Key="MacroBackgroundBrush" Color="#E0DBFF" /> |
| 14 | + <SolidColorBrush x:Key="ModifierBackgroundBrush" Color="#EBFFE1" /> |
13 | 15 |
|
14 | 16 | <SolidColorBrush x:Key="TopDefaultBackgroundBrush" Color="#fcfcfc" /> |
15 | 17 | <SolidColorBrush x:Key="TopDualFunctionBackgroundBrush" Color="#e1ebff" /> |
16 | 18 | <SolidColorBrush x:Key="TopModifierBackgroundBrush" Color="#ebffe1" /> |
17 | | - <SolidColorBrush x:Key="TopShineBackgroundBrush" Color="#fff1ba" /> |
18 | 19 |
|
19 | | - <converter:KeyCategoryToBrushConverter x:Key="KeyCategoryToBaseBrushConverter" |
20 | | - DefaultBackgroundBrush="{StaticResource BaseDefaultBackgroundBrush}" |
21 | | - DualFunctionBackgroundBrush="{StaticResource BaseDualFunctionBackgroundBrush}" |
22 | | - ModifierBackgroundBrush="{StaticResource BaseModifierBackgroundBrush}" |
23 | | - ShineBackgroundBrush="{StaticResource BaseShineBackgroundBrush}"/> |
| 20 | + <converter:KeyCategoryToBrushConverter x:Key="KeyCategoryToBrushConverter" |
| 21 | + DefaultBackgroundBrush="{StaticResource DefaultBackgroundBrush}" |
| 22 | + ColorControlBackgroundBrush="{StaticResource ColorControlBackgroundBrush}" |
| 23 | + CustomLabelBackgroundBrush="{StaticResource CustomLabelBackgroundBrush}" |
| 24 | + DualFunctionBackgroundBrush="{StaticResource DualFunctionBackgroundBrush}" |
| 25 | + MacroBackgroundBrush="{StaticResource MacroBackgroundBrush}" |
| 26 | + ModifierBackgroundBrush="{StaticResource ModifierBackgroundBrush}"/> |
24 | 27 | <converter:KeyCategoryToBrushConverter x:Key="KeyCategoryToTopBrushConverter" |
25 | 28 | DefaultBackgroundBrush="{StaticResource TopDefaultBackgroundBrush}" |
26 | 29 | DualFunctionBackgroundBrush="{StaticResource TopDualFunctionBackgroundBrush}" |
27 | | - ModifierBackgroundBrush="{StaticResource TopModifierBackgroundBrush}" |
28 | | - ShineBackgroundBrush="{StaticResource TopShineBackgroundBrush}" /> |
| 30 | + ModifierBackgroundBrush="{StaticResource TopModifierBackgroundBrush}" /> |
29 | 31 |
|
30 | 32 | <SolidColorBrush x:Key="KeyBaseBorderColorBrush" Color="#c7c7c7" /> |
31 | 33 | <SolidColorBrush x:Key="KeyTopBorderColorBrush" Color="#1affffff" /> |
|
45 | 47 | <Style TargetType="Rectangle" BasedOn="{StaticResource BaseKey}" x:Key="KeyBase"> |
46 | 48 | <Setter Property="RadiusX" Value="5" /> |
47 | 49 | <Setter Property="RadiusY" Value="5" /> |
48 | | - <Setter Property="Fill" Value="{Binding EZKey.KeyCategory, Converter={StaticResource KeyCategoryToBaseBrushConverter}}" /> |
| 50 | + <Setter Property="Fill" Value="{Binding EZKey.KeyCategory, Converter={StaticResource KeyCategoryToBrushConverter}}" /> |
49 | 51 | <Setter Property="Stroke" Value="{StaticResource KeyBaseBorderColorBrush}" /> |
50 | 52 | <Setter Property="Canvas.Top" Value="{Binding BaseKeyY}" /> |
51 | 53 | <Setter Property="Canvas.Left" Value="{Binding BaseKeyX}" /> |
|
66 | 68 |
|
67 | 69 | <Style TargetType="Label" x:Key="LabelStyle"> |
68 | 70 | <Style.Triggers> |
69 | | - <DataTrigger Binding="{Binding EZKey.Label.IsGlyph}" Value="true"> |
| 71 | + <DataTrigger Binding="{Binding EZKey.Primary.Content.IsGlyph}" Value="true"> |
70 | 72 | <Setter Property="FontFamily" Value="{StaticResource OryxFontFamily}" /> |
71 | 73 | <Setter Property="FontSize" Value="18" /> |
72 | 74 | <Setter Property="Foreground" Value="{Binding EZKey.Color}" /> |
73 | 75 | </DataTrigger> |
74 | | - <DataTrigger Binding="{Binding EZKey.Label.IsGlyph}" Value="false"> |
| 76 | + <DataTrigger Binding="{Binding EZKey.Primary.Content.IsGlyph}" Value="false"> |
75 | 77 | <Setter Property="FontFamily" Value="{StaticResource LatoFontFamily}" /> |
76 | 78 | <Setter Property="FontSize" Value="22" /> |
77 | 79 | <Setter Property="FontWeight" Value="Bold" /> |
|
0 commit comments