|
110 | 110 |
|
111 | 111 | <SolidColorBrush x:Key="ActiveBrush" Color="{StaticResource ActiveColor}"/>
|
112 | 112 | <SolidColorBrush x:Key="AccentBrush" Color="{StaticResource AccentColor}"/>
|
| 113 | + <SolidColorBrush x:Key="HighlightedBrush" Color="{StaticResource SelectedBackgroundColor}"/> |
| 114 | + <SolidColorBrush x:Key="MouseOverBrush" Color="{StaticResource ControlMouseOverColor}"/> |
| 115 | + |
| 116 | + |
113 | 117 | <SolidColorBrush x:Key="InactiveAccentBrush">#ad7b7b</SolidColorBrush>
|
114 | 118 | <SolidColorBrush x:Key="DisabledAccentBrush">#949ea6</SolidColorBrush>
|
115 | 119 | <SolidColorBrush x:Key="HighlightedInactiveAccentBrush" Color="#95bfdb"/>
|
|
137 | 141 | </Style.Triggers>
|
138 | 142 | </Style>
|
139 | 143 |
|
| 144 | + <Style x:Key="DefaultTextBox" TargetType="TextBox" > |
| 145 | + <Setter Property="BorderThickness" Value="0"/> |
| 146 | + <Setter Property="Template"> |
| 147 | + <Setter.Value> |
| 148 | + <ControlTemplate TargetType="TextBoxBase"> |
| 149 | + <Border Height="Auto" Width="Auto" BorderBrush="{StaticResource AccentBrush}" Background="{TemplateBinding Background}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius}"> |
| 150 | + <ScrollViewer x:Name="PART_ContentHost" Focusable="False" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/> |
| 151 | + </Border> |
| 152 | + </ControlTemplate> |
| 153 | + </Setter.Value> |
| 154 | + </Setter> |
| 155 | + <Setter Property="Padding" Value="5,5"/> |
| 156 | + <Style.Triggers> |
| 157 | + <Trigger Property="IsEnabled" Value="false"> |
| 158 | + <Setter Property="Background" Value="{StaticResource DisabledAccentBrush}"/> |
| 159 | + <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}"/> |
| 160 | + </Trigger> |
| 161 | + <Trigger Property="IsMouseOver" Value="true"> |
| 162 | + <Trigger.EnterActions> |
| 163 | + <BeginStoryboard> |
| 164 | + <Storyboard> |
| 165 | + <ColorAnimation To="{StaticResource ControlMouseOverColor}" |
| 166 | + Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)" |
| 167 | + FillBehavior="HoldEnd" Duration="0:0:0.10" AutoReverse="False" RepeatBehavior="1x"/> |
| 168 | + </Storyboard> |
| 169 | + </BeginStoryboard> |
| 170 | + </Trigger.EnterActions> |
| 171 | + |
| 172 | + <Trigger.ExitActions> |
| 173 | + <BeginStoryboard> |
| 174 | + <Storyboard> |
| 175 | + <ColorAnimation |
| 176 | + Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)" |
| 177 | + FillBehavior="HoldEnd" Duration="0:0:0.10" AutoReverse="False" RepeatBehavior="1x"/> |
| 178 | + </Storyboard> |
| 179 | + </BeginStoryboard> |
| 180 | + </Trigger.ExitActions> |
| 181 | + |
| 182 | + </Trigger> |
| 183 | + |
| 184 | + </Style.Triggers> |
| 185 | + </Style> |
| 186 | + <Style TargetType="TextBox" BasedOn="{StaticResource DefaultTextBox}"/> |
| 187 | + |
140 | 188 |
|
141 | 189 | <Style x:Key="DefaultButton" TargetType="Button" >
|
142 | 190 | <Setter Property="Background" Value="{StaticResource AccentBrush}"/>
|
|
366 | 414 | </VisualStateManager.VisualStateGroups>
|
367 | 415 | <Border x:Name="Border"
|
368 | 416 | Grid.ColumnSpan="2"
|
369 |
| - CornerRadius="2" |
| 417 | + CornerRadius="{StaticResource CornerRadius}" |
370 | 418 | BorderThickness="1">
|
371 | 419 | <Border.BorderBrush>
|
372 | 420 | <SolidColorBrush Color="{StaticResource AccentColor}"/>
|
|
400 | 448 | TargetType="{x:Type TextBox}">
|
401 | 449 | <Border x:Name="PART_ContentHost"
|
402 | 450 | Focusable="False"
|
403 |
| - Background="{TemplateBinding Background}" /> |
| 451 | + Background="{TemplateBinding Background}" /> |
404 | 452 | </ControlTemplate>
|
405 | 453 |
|
406 | 454 | <Style x:Key="DefaultComboBox"
|
|
419 | 467 | Value="120" />
|
420 | 468 | <Setter Property="MinHeight"
|
421 | 469 | Value="20" />
|
| 470 | + |
| 471 | + |
422 | 472 | <Setter Property="Template">
|
423 | 473 | <Setter.Value>
|
424 | 474 | <ControlTemplate TargetType="{x:Type ComboBox}">
|
|
481 | 531 | Margin="3,3,23,3"
|
482 | 532 | Focusable="True"
|
483 | 533 | Background="Transparent"
|
484 |
| - Visibility="Hidden" |
485 | 534 | IsReadOnly="{TemplateBinding IsReadOnly}" />
|
486 | 535 | <Popup x:Name="Popup"
|
487 | 536 | Placement="Bottom"
|
|
496 | 545 | <Border x:Name="DropDownBorder"
|
497 | 546 | BorderThickness="1">
|
498 | 547 | <Border.BorderBrush>
|
499 |
| - <SolidColorBrush Color="{DynamicResource BorderMediumColor}" /> |
| 548 | + <SolidColorBrush Color="{StaticResource AccentColor}" /> |
500 | 549 | </Border.BorderBrush>
|
501 | 550 | <Border.Background>
|
502 | 551 | <SolidColorBrush Color="{DynamicResource ControlLightColor}" />
|
|
511 | 560 | </Popup>
|
512 | 561 | </Grid>
|
513 | 562 | <ControlTemplate.Triggers>
|
514 |
| - <Trigger Property="HasItems" |
515 |
| - Value="false"> |
| 563 | + <Trigger Property="HasItems" Value="false"> |
516 | 564 | <Setter TargetName="DropDownBorder"
|
517 | 565 | Property="MinHeight"
|
518 | 566 | Value="95" />
|
|
527 | 575 | Value="true">
|
528 | 576 | <Setter TargetName="DropDownBorder"
|
529 | 577 | Property="CornerRadius"
|
530 |
| - Value="4" /> |
| 578 | + Value="{StaticResource CornerRadius}" /> |
531 | 579 | <Setter TargetName="DropDownBorder"
|
532 | 580 | Property="Margin"
|
533 | 581 | Value="0,2,0,0" />
|
|
629 | 677 | <Style TargetType="TabItem" BasedOn="{StaticResource DefaultTabHeader}"/>
|
630 | 678 |
|
631 | 679 |
|
| 680 | + <Style x:Key="GridHeaderRight" TargetType="{x:Type GridViewColumnHeader}"> |
| 681 | + <Setter Property="Template"> |
| 682 | + <Setter.Value> |
| 683 | + <ControlTemplate TargetType="{x:Type GridViewColumnHeader}"> |
| 684 | + <Border BorderBrush="White" BorderThickness="1,0,1,0"> |
| 685 | + <TextBlock Text="{TemplateBinding Content}" Padding="10,5,10,5" Width="{TemplateBinding Width}" TextAlignment="Left" Background="{StaticResource AccentBrush}" Style="{x:Null}"/> |
| 686 | + </Border> |
| 687 | + |
| 688 | + </ControlTemplate> |
| 689 | + </Setter.Value> |
| 690 | + </Setter> |
| 691 | + <Setter Property="HorizontalAlignment" Value="Stretch"/> |
| 692 | + <Setter Property="HorizontalContentAlignment" Value="Stretch"/> |
| 693 | + |
| 694 | + <Setter Property="OverridesDefaultStyle" Value="True" /> |
| 695 | + <Setter Property="Background" Value="{StaticResource AccentBrush}" /> |
| 696 | + <Setter Property="Foreground" Value="White" /> |
| 697 | + <Setter Property="FontSize" Value="15" /> |
| 698 | + <Setter Property="Background" Value="{StaticResource AccentBrush}"/> |
| 699 | + |
| 700 | + </Style> |
| 701 | + |
| 702 | + |
| 703 | + <Style TargetType="{x:Type GridViewColumnHeader}" BasedOn="{StaticResource GridHeaderRight}"/> |
| 704 | + |
| 705 | + |
| 706 | + <Style x:Key="DefaultListViewItem" TargetType="{x:Type ListViewItem}"> |
| 707 | + <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
| 708 | + <Setter Property="Template"> |
| 709 | + <Setter.Value> |
| 710 | + <ControlTemplate TargetType="{x:Type ListViewItem}"> |
| 711 | + <Border x:Name="ListBoxItemRoot" |
| 712 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 713 | + BorderThickness="1,0" |
| 714 | + Background="{TemplateBinding Background}" |
| 715 | + CornerRadius="2" |
| 716 | + Uid="Border_57"> |
| 717 | + <GridViewRowPresenter Columns="{TemplateBinding GridView.ColumnCollection}" |
| 718 | + Content="{TemplateBinding Content}" |
| 719 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 720 | + Margin="{TemplateBinding Padding}" |
| 721 | + Uid="GridViewRowPresenter_1" |
| 722 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
| 723 | + <VisualStateManager.VisualStateGroups> |
| 724 | + <VisualStateGroup x:Name="CommonStates"> |
| 725 | + <VisualState x:Name="Normal"></VisualState> |
| 726 | + <VisualState x:Name="Disabled"></VisualState> |
| 727 | + <VisualState x:Name="MouseOver"></VisualState> |
| 728 | + </VisualStateGroup> |
| 729 | + <VisualStateGroup x:Name="SelectionStates"> |
| 730 | + <VisualState x:Name="Selected"></VisualState> |
| 731 | + <VisualState x:Name="Unselected"></VisualState> |
| 732 | + </VisualStateGroup> |
| 733 | + </VisualStateManager.VisualStateGroups> |
| 734 | + </Border> |
| 735 | + </ControlTemplate> |
| 736 | + </Setter.Value> |
| 737 | + </Setter> |
| 738 | + <Style.Triggers> |
| 739 | + <Trigger Property="IsMouseOver" Value="true"> |
| 740 | + <Setter Property="Background" Value="{StaticResource MouseOverBrush}" /> |
| 741 | + <Setter Property="Foreground" Value="White" /> |
| 742 | + |
| 743 | + </Trigger> |
| 744 | + <Trigger Property="IsSelected" Value="true"> |
| 745 | + <Setter Property="Background" Value="{StaticResource HighlightedBrush}" /> |
| 746 | + <Setter Property="Foreground" Value="White" /> |
| 747 | + |
| 748 | + </Trigger> |
| 749 | + </Style.Triggers> |
| 750 | + </Style> |
| 751 | + |
| 752 | + <Style TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource DefaultListViewItem}"/> |
| 753 | + |
| 754 | + |
632 | 755 |
|
633 | 756 |
|
634 | 757 | <local:EnumLocaleConverter x:Key="EnumLocaleConverter"/>
|
|
0 commit comments