|
3 | 3 | xmlns:helper="clr-namespace:InvvardDev.EZLayoutDisplay.Desktop.Helper" |
4 | 4 | xmlns:converter="clr-namespace:InvvardDev.EZLayoutDisplay.Desktop.View.Converter"> |
5 | 5 |
|
6 | | - <FontFamily x:Key="LatoFontFamily">/InvvardDev.EZLayoutDisplay.Desktop;component/Skins/Fonts/#Lato</FontFamily> |
7 | | - <FontFamily x:Key="OryxFontFamily">/InvvardDev.EZLayoutDisplay.Desktop;component/Skins/Fonts/#Oryx</FontFamily> |
| 6 | + <FontFamily x:Key="InterFontFamily">/Skins/Fonts/#Inter</FontFamily> |
| 7 | + <FontFamily x:Key="OryxFontFamily">/Skins/Fonts/#Oryx</FontFamily> |
8 | 8 |
|
9 | 9 | <SolidColorBrush x:Key="KeyLabelForeground" Color="#323546" /> |
10 | 10 | <SolidColorBrush x:Key="DefaultBackgroundBrush" Color="#FFFFFF" /> |
|
24 | 24 |
|
25 | 25 | <SolidColorBrush x:Key="KeyBorderColorBrush" Color="#c7c7c7" /> |
26 | 26 |
|
27 | | - <Style TargetType="Rectangle" x:Key="BaseKey"> |
28 | | - <Setter Property="StrokeThickness" Value="1" /> |
29 | | - <Setter Property="RenderTransform"> |
30 | | - <Setter.Value> |
31 | | - <TransformGroup> |
32 | | - <RotateTransform Angle="{Binding RotationAngle}" /> |
33 | | - </TransformGroup> |
34 | | - </Setter.Value> |
35 | | - </Setter> |
36 | | - <Setter Property="RenderTransformOrigin" Value="{Binding RotationOrigin}" /> |
37 | | - </Style> |
38 | | - |
39 | | - <Style TargetType="Rectangle" BasedOn="{StaticResource BaseKey}" x:Key="KeyBase"> |
| 27 | + <Style TargetType="Rectangle" x:Key="KeyBase"> |
40 | 28 | <Setter Property="RadiusX" Value="5" /> |
41 | 29 | <Setter Property="RadiusY" Value="5" /> |
42 | 30 | <Setter Property="Fill" Value="{Binding Key.DisplayMode, Converter={StaticResource KeyCategoryToBrushConverter}}" /> |
|
45 | 33 | <Setter Property="Canvas.Left" Value="{Binding BaseKeyX}" /> |
46 | 34 | <Setter Property="Height" Value="{Binding BaseKeyHeight}" /> |
47 | 35 | <Setter Property="Width" Value="{Binding BaseKeyWidth}" /> |
| 36 | + <Setter Property="StrokeThickness" Value="1" /> |
| 37 | + <Setter Property="RenderTransformOrigin" Value="{Binding RotationOrigin}" /> |
| 38 | + <Setter Property="RenderTransform"> |
| 39 | + <Setter.Value> |
| 40 | + <TransformGroup> |
| 41 | + <RotateTransform Angle="{Binding RotationAngle}" /> |
| 42 | + </TransformGroup> |
| 43 | + </Setter.Value> |
| 44 | + </Setter> |
48 | 45 | </Style> |
49 | 46 |
|
50 | 47 | <Style TargetType="Label" x:Key="BaseLabelStyle"> |
51 | | - <Setter Property="Padding" Value="2 0" /> |
52 | 48 | <Setter Property="Foreground" Value="{StaticResource KeyLabelForeground}" /> |
53 | 49 | </Style> |
54 | 50 |
|
55 | 51 | <Style TargetType="Label" x:Key="LabelStyle" BasedOn="{StaticResource BaseLabelStyle}"> |
56 | | - <Setter Property="FontFamily" Value="{StaticResource LatoFontFamily}" /> |
57 | | - <Setter Property="FontSize" Value="22" /> |
| 52 | + <Setter Property="FontFamily" Value="{StaticResource InterFontFamily}" /> |
| 53 | + <Setter Property="FontSize" Value="20" /> |
58 | 54 | </Style> |
59 | 55 |
|
60 | 56 | <Style TargetType="Label" x:Key="GlyphStyle" BasedOn="{StaticResource BaseLabelStyle}"> |
61 | 57 | <Setter Property="FontFamily" Value="{StaticResource OryxFontFamily}" /> |
62 | | - <Setter Property="FontSize" Value="18" /> |
| 58 | + <Setter Property="FontSize" Value="22" /> |
63 | 59 | </Style> |
64 | 60 |
|
65 | 61 | <DataTemplate x:Key="KeyDataTemplate"> |
|
85 | 81 |
|
86 | 82 | <Style TargetType="Viewbox" x:Key="LabelViewBox"> |
87 | 83 | <Setter Property="Height" Value="30" /> |
88 | | - <Setter Property="Margin" Value="1 0" /> |
89 | 84 | <Setter Property="Stretch" Value="Uniform" /> |
90 | | - <Setter Property="StretchDirection" Value="Both" /> |
| 85 | + <Setter Property="StretchDirection" Value="DownOnly" /> |
91 | 86 | <Setter Property="VerticalAlignment" Value="Center" /> |
92 | 87 | </Style> |
93 | 88 |
|
94 | | - <Style TargetType="Viewbox" x:Key="ModifierViewBox" BasedOn="{StaticResource LabelViewBox}"> |
95 | | - <Setter Property="Height" Value="18" /> |
96 | | - </Style> |
97 | | - |
98 | 89 | <Style TargetType="Grid" x:Key="ContentGridBase"> |
99 | 90 | <Setter Property="Canvas.Top" Value="{Binding TopKeyY}" /> |
100 | 91 | <Setter Property="Canvas.Left" Value="{Binding TopKeyX}" /> |
|
136 | 127 |
|
137 | 128 | <DataTemplate x:Key="ColorPickerDataTemplate"> |
138 | 129 | <Viewbox Style="{StaticResource LabelViewBox}"> |
139 | | - <Label Style="{StaticResource GlyphStyle}" Content="{Binding Label}" /> |
| 130 | + <Grid> |
| 131 | + <Ellipse Width="10" Height="10" Fill="{Binding ColorCode}" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 -10 -8 0"/> |
| 132 | + <Label Style="{StaticResource GlyphStyle}" Content="{Binding Label}" FontSize="30"/> |
| 133 | + </Grid> |
140 | 134 | </Viewbox> |
141 | 135 | </DataTemplate> |
142 | 136 |
|
|
151 | 145 | <Canvas> |
152 | 146 | <ContentPresenter Content="{Binding}" ContentTemplate="{StaticResource KeyDataTemplate}" /> |
153 | 147 | <Grid Style="{StaticResource ContentGridBase}"> |
154 | | - <TextBlock Style="{StaticResource PrimaryTag}" Text="{Binding Key.Primary.Tag}" /> |
| 148 | + <Viewbox VerticalAlignment="Top" HorizontalAlignment="Right" Stretch="None"> |
| 149 | + <TextBlock Style="{StaticResource PrimaryTag}" Text="{Binding Key.Primary.Tag}" /> |
| 150 | + </Viewbox> |
155 | 151 | <ContentControl ContentTemplateSelector="{StaticResource KeyFeatureTemplateSelector}" Content="{Binding Key.Primary}" /> |
156 | 152 | </Grid> |
157 | 153 | </Canvas> |
|
165 | 161 | <RowDefinition Height="*"/> |
166 | 162 | <RowDefinition Height="*"/> |
167 | 163 | </Grid.RowDefinitions> |
168 | | - <TextBlock Style="{StaticResource PrimaryTag}" Text="{Binding Key.Primary.Tag}" /> |
169 | | - <TextBlock Style="{StaticResource SecondaryTag}" Text="{Binding Key.Secondary.Tag}" /> |
| 164 | + <Viewbox Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Right" Stretch="None"> |
| 165 | + <TextBlock Style="{StaticResource PrimaryTag}" Text="{Binding Key.Primary.Tag}" /> |
| 166 | + </Viewbox> |
| 167 | + <Viewbox Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Stretch="None"> |
| 168 | + <TextBlock Style="{StaticResource SecondaryTag}" Text="{Binding Key.Secondary.Tag}" /> |
| 169 | + </Viewbox> |
170 | 170 |
|
171 | 171 | <ContentControl ContentTemplateSelector="{StaticResource KeyFeatureTemplateSelector}" |
172 | 172 | Content="{Binding Key.Primary}" |
|
0 commit comments