|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:local="clr-namespace:HDRProfile" |
5 | 5 | xmlns:tb="http://www.hardcodet.net/taskbar" |
| 6 | + xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" |
6 | 7 | xmlns:system="clr-namespace:System;assembly=mscorlib" |
7 | 8 | xmlns:corewpf="clr-namespace:CodectoryCore.UI.Wpf;assembly=CodectoryCore.UI.Wpf" |
8 | 9 | Exit="Application_Exit" |
|
12 | 13 |
|
13 | 14 | <system:String x:Key="DonateLink">https://paypal.me/pools/c/8vksshrMln</system:String> |
14 | 15 | <system:String x:Key="InfoLink">https://sourceforge.net/projects/hdr-profile</system:String> |
15 | | - <system:String x:Key="Version">1.3.4</system:String> |
16 | | - <SolidColorBrush x:Key="ButtonBackground" Color="#FF0086F5"/> |
17 | | - <SolidColorBrush x:Key="AccentColor" Color="#FFFF581A"/> |
18 | | - <SolidColorBrush x:Key="AccentColor2" Color="#4C87B3"/> |
| 16 | + <Color x:Key="AccentColor">#5d9ac7</Color> |
| 17 | + <Color x:Key="HighlightedColor">#6fb3e3</Color> |
| 18 | + <Color x:Key="ButtonClickedColor">#396585</Color> |
| 19 | + <SolidColorBrush x:Key="ButtonForegroundBrush">White</SolidColorBrush> |
| 20 | + |
| 21 | + |
| 22 | + <SolidColorBrush x:Key="AccentBrush" Color="{StaticResource AccentColor}"/> |
| 23 | + <SolidColorBrush x:Key="InactiveAccentBrush">#7292a8</SolidColorBrush> |
| 24 | + <SolidColorBrush x:Key="DisabledAccentBrush">#949ea6</SolidColorBrush> |
| 25 | + <SolidColorBrush x:Key="HighlightedInactiveAccentBrush" Color="#95bfdb"/> |
| 26 | + <StaticResource x:Key="ButtonBackgroundBrush" ResourceKey="AccentBrush"/> |
19 | 27 | <CornerRadius x:Key="CornerRadius">3</CornerRadius> |
| 28 | + |
| 29 | + <Style TargetType="TextBlock" > |
| 30 | + <Setter Property="Foreground" Value="Black"/> |
| 31 | + </Style> |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + <Style x:Key="DefaultButton" TargetType="Button" > |
| 37 | + <Setter Property="Background" Value="{StaticResource AccentBrush}"/> |
| 38 | + <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}"/> |
| 39 | + <Setter Property="Height" Value="25"/> |
| 40 | + <Setter Property="Template"> |
| 41 | + <Setter.Value> |
| 42 | + <ControlTemplate TargetType="Button"> |
| 43 | + <Border Height="Auto" Width="Auto" BorderBrush="{TemplateBinding Background}" Background="{TemplateBinding Background}" BorderThickness="1" CornerRadius="{StaticResource CornerRadius}"> |
| 44 | + <TextBlock Background="Transparent" Padding="5,4,5,5" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 45 | + </Border> |
| 46 | + </ControlTemplate> |
| 47 | + </Setter.Value> |
| 48 | + </Setter> |
| 49 | + <Setter Property="Padding" Value="5,5"/> |
| 50 | + <Style.Triggers> |
| 51 | + <Trigger Property="IsEnabled" Value="false"> |
| 52 | + <Setter Property="Background" Value="{StaticResource DisabledAccentBrush}"/> |
| 53 | + <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}"/> |
| 54 | + </Trigger> |
| 55 | + <Trigger Property="IsMouseOver" Value="true"> |
| 56 | + <Trigger.EnterActions> |
| 57 | + <BeginStoryboard> |
| 58 | + <Storyboard> |
| 59 | + <ColorAnimation To="{StaticResource HighlightedColor}" |
| 60 | + Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)" |
| 61 | + FillBehavior="HoldEnd" Duration="0:0:0.10" AutoReverse="False" RepeatBehavior="1x"/> |
| 62 | + </Storyboard> |
| 63 | + </BeginStoryboard> |
| 64 | + </Trigger.EnterActions> |
| 65 | + |
| 66 | + <Trigger.ExitActions> |
| 67 | + <BeginStoryboard> |
| 68 | + <Storyboard> |
| 69 | + <ColorAnimation |
| 70 | + Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)" |
| 71 | + FillBehavior="HoldEnd" Duration="0:0:0.10" AutoReverse="False" RepeatBehavior="1x"/> |
| 72 | + </Storyboard> |
| 73 | + </BeginStoryboard> |
| 74 | + </Trigger.ExitActions> |
| 75 | + |
| 76 | + </Trigger> |
| 77 | + |
| 78 | + <Trigger Property="IsPressed" Value="true"> |
| 79 | + <Trigger.EnterActions> |
| 80 | + <BeginStoryboard> |
| 81 | + <Storyboard> |
| 82 | + <ColorAnimation To="{StaticResource ButtonClickedColor}" |
| 83 | + Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)" |
| 84 | + FillBehavior="HoldEnd" Duration="0:0:0.10" AutoReverse="False" RepeatBehavior="1x"/> |
| 85 | + </Storyboard> |
| 86 | + </BeginStoryboard> |
| 87 | + </Trigger.EnterActions> |
| 88 | + |
| 89 | + <Trigger.ExitActions> |
| 90 | + <BeginStoryboard> |
| 91 | + <Storyboard> |
| 92 | + <ColorAnimation |
| 93 | + Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)" |
| 94 | + FillBehavior="HoldEnd" Duration="0:0:0.10" AutoReverse="False" RepeatBehavior="1x"/> |
| 95 | + </Storyboard> |
| 96 | + </BeginStoryboard> |
| 97 | + </Trigger.ExitActions> |
| 98 | + |
| 99 | + </Trigger> |
| 100 | + |
| 101 | + |
| 102 | + </Style.Triggers> |
| 103 | + </Style> |
| 104 | + <Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"/> |
| 105 | + |
| 106 | + <Style x:Key="DefaultTabItem" TargetType="TabItem"> |
| 107 | + <Setter Property="Background" Value="{StaticResource AccentBrush}"/> |
| 108 | + <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}"/> |
| 109 | + <Setter Property="Template"> |
| 110 | + <Setter.Value> |
| 111 | + <ControlTemplate TargetType="TabItem"> |
| 112 | + <Border Height="Auto" Width="Auto" BorderBrush="{StaticResource AccentBrush}" Background="{TemplateBinding Background}" BorderThickness="1 1 1 0" CornerRadius="3 3 0 0"> |
| 113 | + <TextBlock Padding="5,5,5,5" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Header}" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 114 | + </Border> |
| 115 | + </ControlTemplate> |
| 116 | + </Setter.Value> |
| 117 | + </Setter> |
| 118 | + <Style.Triggers> |
| 119 | + <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsSelected}" Value="True" > |
| 120 | + <Setter Property="Background" Value="{StaticResource AccentBrush}"/> |
| 121 | + <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}"/> |
| 122 | + <Setter Property="BorderThickness" Value="0.8 1 1 1"/> |
| 123 | + |
| 124 | + </DataTrigger> |
| 125 | + <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsSelected}" Value="False" > |
| 126 | + <Setter Property="Background" Value="White"/> |
| 127 | + <Setter Property="Foreground" Value="Black"/> |
| 128 | + <Setter Property="BorderThickness" Value="0"/> |
| 129 | + |
| 130 | + </DataTrigger> |
| 131 | + </Style.Triggers> |
| 132 | + |
| 133 | + </Style> |
| 134 | + <Style TargetType="TabItem" BasedOn="{StaticResource DefaultTabItem}"/> |
| 135 | + |
| 136 | + |
20 | 137 | <local:EnumLocaleConverter x:Key="EnumLocaleConverter"/> |
21 | 138 | <corewpf:DialogService x:Key="DialogService" /> |
22 | 139 | <corewpf:BitmapToBitmapImageConverter x:Key="BitmapToBitmapImageConverter"/> |
|
0 commit comments