|
19 | 19 | </Border>
|
20 | 20 | <ControlTemplate.Triggers>
|
21 | 21 | <Trigger Property="IsSelected" Value="False">
|
22 |
| - <Setter Property="TextElement.Foreground" TargetName="ContentSite" Value="#FFC1C1C1"/> |
23 |
| - <Setter TargetName="Border" Property="Background" Value="#FF1D1D1D" /> |
| 22 | + <Setter Property="TextElement.Foreground" TargetName="ContentSite" Value="{StaticResource DeactiveTabForeground}"/> |
| 23 | + <Setter TargetName="Border" Property="Background" Value="{StaticResource DeactiveTabBackground}" /> |
24 | 24 | </Trigger>
|
25 | 25 | <Trigger Property="IsSelected" Value="True">
|
26 | 26 | <Setter Property="TextElement.Foreground" TargetName="ContentSite" Value="White"/>
|
27 |
| - <Setter TargetName="Border" Property="Background" Value="#FF262626"/> |
| 27 | + <Setter TargetName="Border" Property="Background" Value="{StaticResource MainBackgroundColor}"/> |
28 | 28 | </Trigger>
|
29 | 29 | <Trigger Property="IsMouseOver" Value="True">
|
30 |
| - <Setter TargetName="Border" Property="Background" Value="#FF262626"/> |
| 30 | + <Setter TargetName="Border" Property="Background" Value="{StaticResource MainBackgroundColor}"/> |
31 | 31 | </Trigger>
|
32 | 32 | </ControlTemplate.Triggers>
|
33 | 33 | </ControlTemplate>
|
|
37 | 37 |
|
38 | 38 | <!-- datagrid header -->
|
39 | 39 | <Style x:Key="HeaderStyle" TargetType="DataGridColumnHeader">
|
40 |
| - <Setter Property="Background" Value="#4C3F3F46" /> |
41 |
| - <Setter Property="Foreground" Value="#FFB6B6B6" /> |
42 |
| - <Setter Property="BorderBrush" Value="#4C000000" /> |
| 40 | + <Setter Property="Background" Value="{StaticResource DatagridHeaderBackground}" /> |
| 41 | + <Setter Property="Foreground" Value="{StaticResource DatagridHeaderForeground}" /> |
| 42 | + <Setter Property="BorderBrush" Value="{StaticResource DatagridHeaderBorder}" /> |
43 | 43 | <Setter Property="BorderThickness" Value="0,0,1,1" />
|
44 | 44 | <Setter Property="SnapsToDevicePixels" Value="True" />
|
45 | 45 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
46 | 46 | <Setter Property="Height" Value="28" />
|
47 | 47 | <Setter Property="Padding" Value="6,2,2,2" />
|
48 | 48 | <Style.Triggers>
|
49 | 49 | <Trigger Property="IsMouseOver" Value="True">
|
50 |
| - <Setter Property="Background" Value="#FF3F3F46"/> |
| 50 | + <Setter Property="Background" Value="{StaticResource ButtonBackground}"/> |
51 | 51 | </Trigger>
|
52 | 52 | </Style.Triggers>
|
53 | 53 | </Style>
|
54 | 54 |
|
55 | 55 | <!-- datagrid rows & row selection -->
|
56 | 56 | <Style TargetType="DataGridRow">
|
57 |
| - <Setter Property="Background" Value="#FF3F3F46" /> |
| 57 | + <Setter Property="Background" Value="{StaticResource ButtonBackground}" /> |
58 | 58 | <Setter Property="BorderBrush" Value="{x:Null}" />
|
59 | 59 | <Setter Property="BorderThickness" Value="0,0,0,0" />
|
60 | 60 | <Style.Triggers>
|
61 | 61 | <Trigger Property="IsMouseOver" Value="True">
|
62 |
| - <Setter Property="Background" Value="#7F007ACC"/> |
63 |
| - <Setter Property="Foreground" Value="White"/> |
| 62 | + <Setter Property="Background" Value="{StaticResource DataGridRowMouseOver}"/> |
64 | 63 | </Trigger>
|
65 | 64 | <Trigger Property="IsSelected" Value="True">
|
66 |
| - <Setter Property="Background" Value="#FF007ACC" /> |
67 |
| - <Setter Property="Foreground" Value="White"/> |
| 65 | + <Setter Property="Background" Value="{StaticResource DataGridRowSelectedBackground}" /> |
68 | 66 | </Trigger>
|
69 | 67 | </Style.Triggers>
|
70 | 68 | </Style>
|
|
120 | 118 | <Setter.Value>
|
121 | 119 | <ControlTemplate TargetType="{x:Type RepeatButton}">
|
122 | 120 | <!-- button background -->
|
123 |
| - <Border Name="Border" Margin="1" CornerRadius="0" BorderThickness="0" Background="#FF303032" BorderBrush="{x:Null}"> |
| 121 | + <Border Name="Border" Margin="1" CornerRadius="0" BorderThickness="0" Background="{DynamicResource ButtonBackground}" BorderBrush="{x:Null}"> |
124 | 122 | <!-- arrow sign -->
|
125 |
| - <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="#FF5E5E64" Data="{Binding Path=Content,RelativeSource={RelativeSource TemplatedParent}}" /> |
| 123 | + <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{DynamicResource ScrollArrowForeground}" Data="{Binding Path=Content,RelativeSource={RelativeSource TemplatedParent}}" /> |
126 | 124 | </Border>
|
127 | 125 | <ControlTemplate.Triggers>
|
128 | 126 | <!-- NOTE order matters, if pressed is before mouseover, then it gets overwritten -->
|
129 | 127 | <Trigger Property="IsMouseOver" Value="true">
|
130 |
| - <Setter TargetName="Border" Property="Background" Value="#FF3E3E3E" /> |
| 128 | + <Setter TargetName="Border" Property="Background" Value="{StaticResource TextBoxBackground}" /> |
131 | 129 | </Trigger>
|
132 | 130 | <Trigger Property="IsPressed" Value="true">
|
133 |
| - <Setter TargetName="Border" Property="Background" Value="#FF838383" /> |
| 131 | + <Setter TargetName="Border" Property="Background" Value="{StaticResource ScrollArrowPressed}" /> |
134 | 132 | </Trigger>
|
135 | 133 | <Trigger Property="IsEnabled" Value="false">
|
136 | 134 | <Setter Property="Foreground" Value="Black"/>
|
|
155 | 153 | </Setter>
|
156 | 154 | </Style>
|
157 | 155 |
|
158 |
| - <!-- scroll thumb bar --> |
| 156 | + <!-- scroll thumb (elevator) bar --> |
159 | 157 | <Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
|
160 | 158 | <Setter Property="SnapsToDevicePixels" Value="True"/>
|
161 | 159 | <Setter Property="OverridesDefaultStyle" Value="true"/>
|
|
167 | 165 | <Border Name="Border" CornerRadius="0" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" />
|
168 | 166 | <ControlTemplate.Triggers>
|
169 | 167 | <Trigger Property="IsMouseOver" Value="true">
|
170 |
| - <Setter TargetName="Border" Property="Background" Value="#FF6A6969" /> |
| 168 | + <Setter TargetName="Border" Property="Background" Value="{StaticResource ScrollBarThumbFill}" /> |
171 | 169 | </Trigger>
|
172 | 170 | </ControlTemplate.Triggers>
|
173 | 171 | </ControlTemplate>
|
|
183 | 181 | <RowDefinition MaxHeight="18"/>
|
184 | 182 | </Grid.RowDefinitions>
|
185 | 183 | <!-- scrollbar background -->
|
186 |
| - <Border Grid.RowSpan="3" CornerRadius="0" Background="#FF151515" /> |
| 184 | + <Border Grid.RowSpan="3" CornerRadius="0" Background="{DynamicResource ScrollBarBackground}" /> |
187 | 185 | <!-- scrollbar top button -->
|
188 | 186 | <RepeatButton Grid.Row="0" Style="{StaticResource ScrollBarLineButton}" Height="18" Command="ScrollBar.LineUpCommand" Content="M 0 4 L 8 4 L 4 0 Z" />
|
189 | 187 | <Track Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
|
|
192 | 190 | </Track.DecreaseRepeatButton>
|
193 | 191 | <Track.Thumb>
|
194 | 192 | <!-- scrollbar foreground -->
|
195 |
| - <Thumb Style="{StaticResource ScrollBarThumb}" Margin="1,0,1,0" Background="#FF47474B" BorderBrush="{x:Null}"/> |
| 193 | + <Thumb Style="{StaticResource ScrollBarThumb}" Margin="1,0,1,0" Background="{DynamicResource ScrollBarFill}" BorderBrush="{x:Null}"/> |
196 | 194 | </Track.Thumb>
|
197 | 195 | <Track.IncreaseRepeatButton>
|
198 | 196 | <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageDownCommand" />
|
|
203 | 201 | </Grid>
|
204 | 202 | </ControlTemplate>
|
205 | 203 |
|
206 |
| - <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}"> |
207 |
| - <Grid > |
208 |
| - <Grid.ColumnDefinitions> |
209 |
| - <ColumnDefinition MaxWidth="18"/> |
210 |
| - <ColumnDefinition Width="0.00001*"/> |
211 |
| - <ColumnDefinition MaxWidth="18"/> |
212 |
| - </Grid.ColumnDefinitions> |
213 |
| - <Border Grid.ColumnSpan="3" CornerRadius="2" Background="#F0F0F0" /> |
214 |
| - <RepeatButton Grid.Column="0" Style="{StaticResource ScrollBarLineButton}" Width="18" Command="ScrollBar.LineLeftCommand" Content="M 4 0 L 4 8 L 0 4 Z" /> |
215 |
| - <Track Name="PART_Track" Grid.Column="1" IsDirectionReversed="False"> |
216 |
| - <Track.DecreaseRepeatButton> |
217 |
| - <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageLeftCommand" /> |
218 |
| - </Track.DecreaseRepeatButton> |
219 |
| - <Track.Thumb> |
220 |
| - <Thumb Style="{StaticResource ScrollBarThumb}" Margin="0,1,0,1" Background="#FF34587C" BorderBrush="Blue" /> |
221 |
| - </Track.Thumb> |
222 |
| - <Track.IncreaseRepeatButton> |
223 |
| - <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageRightCommand" /> |
224 |
| - </Track.IncreaseRepeatButton> |
225 |
| - </Track> |
226 |
| - <RepeatButton Grid.Column="3" Style="{StaticResource ScrollBarLineButton}" Width="18" Command="ScrollBar.LineRightCommand" Content="M 0 0 L 4 4 L 0 8 Z"/> |
227 |
| - </Grid> |
228 |
| - </ControlTemplate> |
229 |
| - |
230 | 204 | <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
|
231 | 205 | <Setter Property="SnapsToDevicePixels" Value="True"/>
|
232 | 206 | <Setter Property="OverridesDefaultStyle" Value="true"/>
|
233 | 207 | <Style.Triggers>
|
234 |
| - <Trigger Property="Orientation" Value="Horizontal"> |
235 |
| - <Setter Property="Width" Value="Auto"/> |
236 |
| - <Setter Property="Height" Value="18" /> |
237 |
| - <Setter Property="Template" Value="{StaticResource HorizontalScrollBar}" /> |
238 |
| - </Trigger> |
239 | 208 | <Trigger Property="Orientation" Value="Vertical">
|
240 | 209 | <Setter Property="Width" Value="18"/>
|
241 | 210 | <Setter Property="Height" Value="Auto" />
|
|
248 | 217 |
|
249 | 218 | </Window.Resources>
|
250 | 219 |
|
251 |
| - |
| 220 | + |
252 | 221 | <!-- UI -->
|
253 | 222 |
|
254 | 223 | <Grid Margin="0">
|
|
276 | 245 | <!-- main content : Tabs -->
|
277 | 246 | <TabControl Grid.Row="1" x:Name="tabControl" Background="{DynamicResource MainBackgroundColor}" BorderBrush="{x:Null}" Padding="0" Margin="0">
|
278 | 247 | <!-- Tab: Projects-->
|
279 |
| - <TabItem Header="Projects" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black"> |
| 248 | + <TabItem Header="Projects" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}"> |
280 | 249 | <Grid>
|
281 | 250 | <!-- search box -->
|
282 | 251 | <Grid Background="{DynamicResource TextBoxBackground}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="222" Margin="6,5,0,0" Height="20" >
|
|
0 commit comments