|
1 |
| -<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
2 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 |
| - xmlns:system="clr-namespace:System;assembly=mscorlib"> |
| 1 | +<ResourceDictionary |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:system="clr-namespace:System;assembly=mscorlib"> |
4 | 5 | <ResourceDictionary.MergedDictionaries>
|
5 | 6 | <ResourceDictionary Source="pack://application:,,,/Themes/Base.xaml" />
|
6 | 7 | </ResourceDictionary.MergedDictionaries>
|
7 |
| - <Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}"> |
| 8 | + <Style |
| 9 | + x:Key="ItemGlyph" |
| 10 | + BasedOn="{StaticResource BaseGlyphStyle}" |
| 11 | + TargetType="{x:Type TextBlock}"> |
8 | 12 | <Setter Property="Foreground" Value="#000000" />
|
9 | 13 | </Style>
|
10 |
| - <Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}"> |
11 |
| - <Setter Property="SelectionBrush" Value="#0a68d8"/> |
| 14 | + <Style |
| 15 | + x:Key="QueryBoxStyle" |
| 16 | + BasedOn="{StaticResource BaseQueryBoxStyle}" |
| 17 | + TargetType="{x:Type TextBox}"> |
| 18 | + <Setter Property="SelectionBrush" Value="#0a68d8" /> |
12 | 19 | <Setter Property="FontSize" Value="24" />
|
13 |
| - <Setter Property="Background" Value="#f3f3f3" /> |
| 20 | + <Setter Property="Background" Value="Transparent" /> |
14 | 21 | <Setter Property="Foreground" Value="#000000" />
|
15 | 22 | <Setter Property="CaretBrush" Value="#000000" />
|
16 | 23 | <Setter Property="FontSize" Value="26" />
|
17 |
| - <Setter Property="Padding" Value="0 4 66 0" /> |
| 24 | + <Setter Property="Padding" Value="0,4,66,0" /> |
18 | 25 | <Setter Property="Height" Value="42" />
|
19 | 26 | </Style>
|
20 |
| - <Style x:Key="QuerySuggestionBoxStyle" BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}" TargetType="{x:Type TextBox}"> |
21 |
| - <Setter Property="Background" Value="#f3f3f3" /> |
| 27 | + <Style |
| 28 | + x:Key="QuerySuggestionBoxStyle" |
| 29 | + BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}" |
| 30 | + TargetType="{x:Type TextBox}"> |
| 31 | + <Setter Property="Background" Value="Transparent" /> |
22 | 32 | <Setter Property="Foreground" Value="#b5b5b5" />
|
23 | 33 | <Setter Property="FontSize" Value="26" />
|
24 |
| - <Setter Property="Padding" Value="0 4 66 0" /> |
| 34 | + <Setter Property="Padding" Value="0,4,66,0" /> |
25 | 35 | <Setter Property="Height" Value="42" />
|
26 | 36 | </Style>
|
27 |
| - <Style x:Key="WindowBorderStyle" BasedOn="{StaticResource BaseWindowBorderStyle}" TargetType="{x:Type Border}"> |
| 37 | + <Style |
| 38 | + x:Key="WindowBorderStyle" |
| 39 | + BasedOn="{StaticResource BaseWindowBorderStyle}" |
| 40 | + TargetType="{x:Type Border}"> |
28 | 41 | <Setter Property="BorderThickness" Value="1" />
|
29 | 42 | <Setter Property="BorderBrush" Value="#aaaaaa" />
|
30 | 43 | <Setter Property="CornerRadius" Value="5" />
|
31 |
| - <Setter Property="Background" Value="#f3f3f3" /> |
| 44 | + <Setter Property="Background"> |
| 45 | + <Setter.Value> |
| 46 | + <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5"> |
| 47 | + <GradientStop Offset="0" Color="#f4f1f8" /> |
| 48 | + <GradientStop Offset="0.8" Color="#f9f2e8" /> |
| 49 | + <GradientStop Offset="1" Color="#f9f0f3" /> |
| 50 | + </LinearGradientBrush> |
| 51 | + |
| 52 | + </Setter.Value> |
| 53 | + </Setter> |
32 | 54 | </Style>
|
33 |
| - <Style x:Key="WindowStyle" BasedOn="{StaticResource BaseWindowStyle}" TargetType="{x:Type Window}"> |
| 55 | + <Style |
| 56 | + x:Key="WindowStyle" |
| 57 | + BasedOn="{StaticResource BaseWindowStyle}" |
| 58 | + TargetType="{x:Type Window}"> |
34 | 59 | <Setter Property="Width" Value="576" />
|
35 |
| - <Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/> |
| 60 | + <Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" /> |
36 | 61 | </Style>
|
37 | 62 |
|
38 |
| - <Style x:Key="PendingLineStyle" BasedOn="{StaticResource BasePendingLineStyle}" TargetType="{x:Type Line}"> |
39 |
| - </Style> |
| 63 | + <Style |
| 64 | + x:Key="PendingLineStyle" |
| 65 | + BasedOn="{StaticResource BasePendingLineStyle}" |
| 66 | + TargetType="{x:Type Line}" /> |
40 | 67 |
|
41 |
| - <!-- Item Style --> |
42 |
| - <Style x:Key="ItemTitleStyle" BasedOn="{StaticResource BaseItemTitleStyle}" TargetType="{x:Type TextBlock}"> |
| 68 | + <!-- Item Style --> |
| 69 | + <Style |
| 70 | + x:Key="ItemTitleStyle" |
| 71 | + BasedOn="{StaticResource BaseItemTitleStyle}" |
| 72 | + TargetType="{x:Type TextBlock}"> |
43 | 73 | <Setter Property="Foreground" Value="#000000" />
|
44 | 74 | </Style>
|
45 |
| - <Style x:Key="ItemSubTitleStyle" BasedOn="{StaticResource BaseItemSubTitleStyle}" TargetType="{x:Type TextBlock}" > |
| 75 | + <Style |
| 76 | + x:Key="ItemSubTitleStyle" |
| 77 | + BasedOn="{StaticResource BaseItemSubTitleStyle}" |
| 78 | + TargetType="{x:Type TextBlock}"> |
46 | 79 | <Setter Property="Foreground" Value="#818181" />
|
47 | 80 | <Setter Property="FontSize" Value="13" />
|
48 | 81 | </Style>
|
49 |
| - <Style x:Key="ItemNumberStyle" BasedOn="{StaticResource BaseItemNumberStyle}" TargetType="{x:Type TextBlock}"> |
| 82 | + <Style |
| 83 | + x:Key="ItemNumberStyle" |
| 84 | + BasedOn="{StaticResource BaseItemNumberStyle}" |
| 85 | + TargetType="{x:Type TextBlock}"> |
50 | 86 | <Setter Property="Foreground" Value="#A6A6A6" />
|
51 | 87 | </Style>
|
52 |
| - <Style x:Key="ItemTitleSelectedStyle" BasedOn="{StaticResource BaseItemTitleSelectedStyle}" TargetType="{x:Type TextBlock}" > |
| 88 | + <Style |
| 89 | + x:Key="ItemTitleSelectedStyle" |
| 90 | + BasedOn="{StaticResource BaseItemTitleSelectedStyle}" |
| 91 | + TargetType="{x:Type TextBlock}"> |
53 | 92 | <Setter Property="Cursor" Value="Arrow" />
|
54 | 93 | <Setter Property="Foreground" Value="#000000" />
|
55 | 94 | </Style>
|
56 |
| - <Style x:Key="ItemSubTitleSelectedStyle" BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}" TargetType="{x:Type TextBlock}" > |
| 95 | + <Style |
| 96 | + x:Key="ItemSubTitleSelectedStyle" |
| 97 | + BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}" |
| 98 | + TargetType="{x:Type TextBlock}"> |
57 | 99 | <Setter Property="Cursor" Value="Arrow" />
|
58 | 100 | <Setter Property="Foreground" Value="#72767d" />
|
59 | 101 | </Style>
|
60 | 102 | <SolidColorBrush x:Key="ItemSelectedBackgroundColor">#198F8F8F</SolidColorBrush>
|
61 |
| - <Style x:Key="ItemImageSelectedStyle" BasedOn="{StaticResource BaseItemImageSelectedStyle}" TargetType="{x:Type Image}" > |
| 103 | + <Style |
| 104 | + x:Key="ItemImageSelectedStyle" |
| 105 | + BasedOn="{StaticResource BaseItemImageSelectedStyle}" |
| 106 | + TargetType="{x:Type Image}"> |
62 | 107 | <Setter Property="Cursor" Value="Arrow" />
|
63 | 108 | </Style>
|
64 | 109 | <Style x:Key="HighlightStyle">
|
|
68 | 113 | <Setter Property="FontSize" Value="13" />
|
69 | 114 | <Setter Property="Foreground" Value="#acacac" />
|
70 | 115 | </Style>
|
71 |
| - <Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseItemHotkeySelecetedStyle}"> |
| 116 | + <Style |
| 117 | + x:Key="ItemHotkeySelectedStyle" |
| 118 | + BasedOn="{StaticResource BaseItemHotkeySelecetedStyle}" |
| 119 | + TargetType="{x:Type TextBlock}"> |
72 | 120 | <Setter Property="FontSize" Value="13" />
|
73 | 121 | <Setter Property="Foreground" Value="#acacac" />
|
74 | 122 | </Style>
|
75 |
| - <!-- button style in the middle of the scrollbar --> |
76 |
| - <Style x:Key="ThumbStyle" BasedOn="{StaticResource BaseThumbStyle}" TargetType="{x:Type Thumb}"> |
77 |
| - <Setter Property="SnapsToDevicePixels" Value="True"/> |
78 |
| - <Setter Property="OverridesDefaultStyle" Value="true"/> |
79 |
| - <Setter Property="IsTabStop" Value="false"/> |
80 |
| - <Setter Property="Width" Value="2"/> |
81 |
| - <Setter Property="Focusable" Value="false"/> |
| 123 | + <!-- button style in the middle of the scrollbar --> |
| 124 | + <Style |
| 125 | + x:Key="ThumbStyle" |
| 126 | + BasedOn="{StaticResource BaseThumbStyle}" |
| 127 | + TargetType="{x:Type Thumb}"> |
| 128 | + <Setter Property="SnapsToDevicePixels" Value="True" /> |
| 129 | + <Setter Property="OverridesDefaultStyle" Value="true" /> |
| 130 | + <Setter Property="IsTabStop" Value="false" /> |
| 131 | + <Setter Property="Width" Value="2" /> |
| 132 | + <Setter Property="Focusable" Value="false" /> |
82 | 133 | <Setter Property="Template">
|
83 | 134 | <Setter.Value>
|
84 | 135 | <ControlTemplate TargetType="{x:Type Thumb}">
|
85 |
| - <Border CornerRadius="2" DockPanel.Dock="Right" Background="#868686" BorderBrush="Transparent" BorderThickness="0" /> |
| 136 | + <Border |
| 137 | + Background="#868686" |
| 138 | + BorderBrush="Transparent" |
| 139 | + BorderThickness="0" |
| 140 | + CornerRadius="2" |
| 141 | + DockPanel.Dock="Right" /> |
86 | 142 | </ControlTemplate>
|
87 | 143 | </Setter.Value>
|
88 | 144 | </Setter>
|
89 | 145 | </Style>
|
90 |
| - <Style x:Key="ScrollBarStyle" BasedOn="{StaticResource BaseScrollBarStyle}" TargetType="{x:Type ScrollBar}"> |
91 |
| - </Style> |
92 |
| - <Style x:Key="SeparatorStyle" BasedOn="{StaticResource BaseSeparatorStyle}" TargetType="{x:Type Rectangle}"> |
93 |
| - <Setter Property="Fill" Value="#eaeaea"/> |
94 |
| - <Setter Property="Height" Value="1"/> |
95 |
| - <Setter Property="Margin" Value="12 0 12 8"/> |
96 |
| - </Style> |
97 |
| - <Style x:Key="SearchIconStyle" TargetType="{x:Type Path}" BasedOn="{StaticResource BaseSearchIconStyle}"> |
| 146 | + <Style |
| 147 | + x:Key="ScrollBarStyle" |
| 148 | + BasedOn="{StaticResource BaseScrollBarStyle}" |
| 149 | + TargetType="{x:Type ScrollBar}" /> |
| 150 | + <Style |
| 151 | + x:Key="SeparatorStyle" |
| 152 | + BasedOn="{StaticResource BaseSeparatorStyle}" |
| 153 | + TargetType="{x:Type Rectangle}"> |
| 154 | + <Setter Property="Fill" Value="#eaeaea" /> |
| 155 | + <Setter Property="Height" Value="1" /> |
| 156 | + <Setter Property="Margin" Value="12,0,12,8" /> |
| 157 | + </Style> |
| 158 | + <Style |
| 159 | + x:Key="SearchIconStyle" |
| 160 | + BasedOn="{StaticResource BaseSearchIconStyle}" |
| 161 | + TargetType="{x:Type Path}"> |
98 | 162 | <Setter Property="Fill" Value="#555555" />
|
99 | 163 | <Setter Property="Width" Value="32" />
|
100 | 164 | <Setter Property="Height" Value="32" />
|
|
0 commit comments