mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Created an app theme instead of using the System accent colors (which doesn't work in Win 8.1)
Merged two dictionaries into one Re-added focus on title when editing an entity
This commit is contained in:
@@ -2,14 +2,25 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style TargetType="TextBlock" x:Name="TextBlockSettingsHeaderStyle" >
|
||||
<!-- Common theme values -->
|
||||
<x:Double x:Key="MenuSize">60</x:Double>
|
||||
<GridLength x:Key="MenuGridLength">60</GridLength>
|
||||
<!-- Only available for Windows 10 -->
|
||||
<!--<SolidColorBrush x:Key="MainColor" Color="{ThemeResource SystemAccentColor}" />
|
||||
<SolidColorBrush x:Key="TextColor" Color="{ThemeResource SystemColorHighlightTextColor}" />-->
|
||||
<SolidColorBrush x:Key="MainColor" Color="SlateBlue" />
|
||||
<SolidColorBrush x:Key="MainColorLight" Color="MediumSlateBlue" />
|
||||
<SolidColorBrush x:Key="MainColorDark" Color="DarkSlateBlue" />
|
||||
<SolidColorBrush x:Key="TextColor" Color="WhiteSmoke" />
|
||||
|
||||
<Style TargetType="TextBlock" x:Key="TextBlockSettingsHeaderStyle" >
|
||||
<Setter Property="FontFamily" Value="Segoe UI" />
|
||||
<Setter Property="FontSize" Value="14.667" />
|
||||
<Setter Property="FontWeight" Value="SemiLight" />
|
||||
</Style>
|
||||
|
||||
<!-- Custom style for Windows.UI.Xaml.Controls.Primitives.HyperlinkButton -->
|
||||
<Style TargetType="HyperlinkButton" x:Name="MainColorHyperlinkButton">
|
||||
<Style TargetType="HyperlinkButton" x:Key="MainColorHyperlinkButton">
|
||||
<Setter Property="Foreground" Value="{ThemeResource HyperlinkForegroundThemeBrush}" />
|
||||
<Setter Property="Background" Value="{ThemeResource HyperlinkButtonBackgroundThemeBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource HyperlinkButtonBorderThemeBrush}" />
|
||||
@@ -31,7 +42,7 @@
|
||||
<Storyboard>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
||||
Storyboard.TargetProperty="Foreground">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight2}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorLight}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
@@ -39,7 +50,7 @@
|
||||
<Storyboard>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
||||
Storyboard.TargetProperty="Foreground">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemColorHotlightColor}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource HyperlinkPressedForegroundThemeBrush}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
@@ -104,7 +115,7 @@
|
||||
</Style>
|
||||
|
||||
<!-- Custom style for Windows.UI.Xaml.Controls.SearchBox -->
|
||||
<Style TargetType="SearchBox" x:Name="MainColorSearchBox">
|
||||
<Style TargetType="SearchBox" x:Key="MainColorSearchBox">
|
||||
<Setter Property="Background" Value="{ThemeResource SearchBoxBackgroundThemeBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource AppBarBackgroundThemeBrush}" />
|
||||
<Setter Property="BorderThickness" Value="{ThemeResource SearchBoxBorderThemeThickness}" />
|
||||
@@ -143,7 +154,7 @@
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxPointerOverBorderThemeBrush}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchButton" Storyboard.TargetProperty="Foreground">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight3}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorLight}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
@@ -632,7 +643,7 @@
|
||||
</Style>
|
||||
|
||||
<!-- Custom style for Windows.UI.Xaml.Controls.ToggleSwitch -->
|
||||
<Style TargetType="ToggleSwitch" x:Name="MainColorToggleSwitch">
|
||||
<Style TargetType="ToggleSwitch" x:Key="MainColorToggleSwitch">
|
||||
<Setter Property="Foreground" Value="{ThemeResource ToggleSwitchForegroundThemeBrush}" />
|
||||
<Setter Property="HorizontalAlignment" Value="Left" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
@@ -940,7 +951,7 @@
|
||||
</Style>
|
||||
|
||||
<!-- Custom style for Windows.UI.Xaml.Controls.ComboBoxItem -->
|
||||
<Style TargetType="ComboBoxItem" x:Name="MainColorComboBoxItem">
|
||||
<Style TargetType="ComboBoxItem" x:Key="MainColorComboBoxItem">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="TabNavigation" Value="Local" />
|
||||
<Setter Property="Padding" Value="8,10" />
|
||||
@@ -959,7 +970,7 @@
|
||||
<Storyboard>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot"
|
||||
Storyboard.TargetProperty="Background">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight3}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorLight}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
||||
Storyboard.TargetProperty="Foreground">
|
||||
@@ -1006,7 +1017,7 @@
|
||||
<Storyboard>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerGrid"
|
||||
Storyboard.TargetProperty="Background">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight1}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorLight}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
||||
Storyboard.TargetProperty="Foreground">
|
||||
@@ -1030,7 +1041,7 @@
|
||||
<Storyboard>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerGrid"
|
||||
Storyboard.TargetProperty="Background">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight3}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorLight}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
||||
Storyboard.TargetProperty="Foreground">
|
||||
@@ -1100,7 +1111,7 @@
|
||||
</Style>
|
||||
|
||||
<!-- Default style for Windows.UI.Xaml.Controls.ComboBox -->
|
||||
<Style TargetType="ComboBox" x:Name="MainColorComboBox">
|
||||
<Style TargetType="ComboBox" x:Key="MainColorComboBox">
|
||||
<Setter Property="Padding" Value="8,0" />
|
||||
<Setter Property="MinWidth" Value="{ThemeResource ComboBoxThemeMinWidth}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource ComboBoxForegroundThemeBrush}" />
|
||||
@@ -1364,7 +1375,7 @@
|
||||
</Style>
|
||||
|
||||
<!-- Custom style for Windows.UI.Xaml.Controls.DatePicker -->
|
||||
<Style TargetType="DatePicker" x:Name="MainColorDatePicker">
|
||||
<Style TargetType="DatePicker" x:Key="MainColorDatePicker">
|
||||
<Setter Property="Orientation" Value="Horizontal"/>
|
||||
<Setter Property="IsTabStop" Value="False"/>
|
||||
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
||||
@@ -1436,7 +1447,7 @@
|
||||
</Style>
|
||||
|
||||
<!-- Custom style for Windows.UI.Xaml.Controls.TimePicker -->
|
||||
<Style TargetType="TimePicker" x:Name="MainColorTimePicker">
|
||||
<Style TargetType="TimePicker" x:Key="MainColorTimePicker">
|
||||
<Setter Property="IsTabStop" Value="False" />
|
||||
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
||||
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
||||
@@ -1502,9 +1513,9 @@
|
||||
</Style>
|
||||
|
||||
<!-- Custom style for Windows.UI.Xaml.Controls.Button -->
|
||||
<Style TargetType="Button" x:Name="MainColorButton">
|
||||
<Setter Property="Background" Value="{ThemeResource SystemAccentColor}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource SystemColorHighlightTextColor}"/>
|
||||
<Style TargetType="Button" x:Key="MainColorButton">
|
||||
<Setter Property="Background" Value="{ThemeResource MainColor}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource TextColor}"/>
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource ButtonBorderThemeBrush}" />
|
||||
<Setter Property="BorderThickness" Value="{ThemeResource ButtonBorderThemeThickness}" />
|
||||
<Setter Property="Padding" Value="12,4,12,4" />
|
||||
@@ -1524,7 +1535,7 @@
|
||||
<Storyboard>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border"
|
||||
Storyboard.TargetProperty="Background">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight3}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorLight}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
||||
Storyboard.TargetProperty="Foreground">
|
||||
@@ -1617,7 +1628,7 @@
|
||||
<Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource SliderBorderThemeBrush}" />
|
||||
<Setter Property="BorderThickness" Value="{ThemeResource SliderBorderThemeThickness}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource SystemAccentColor}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource MainColor}" />
|
||||
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
||||
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
||||
<Setter Property="ManipulationMode" Value="None" />
|
||||
@@ -1652,7 +1663,7 @@
|
||||
<Storyboard>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalDecreaseRect"
|
||||
Storyboard.TargetProperty="Fill">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorDark1}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorDark}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalTrackRect"
|
||||
Storyboard.TargetProperty="Fill">
|
||||
@@ -1660,7 +1671,7 @@
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalDecreaseRect"
|
||||
Storyboard.TargetProperty="Fill">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorDark1}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorDark}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalTrackRect"
|
||||
Storyboard.TargetProperty="Fill">
|
||||
@@ -1756,7 +1767,7 @@
|
||||
<Storyboard>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalDecreaseRect"
|
||||
Storyboard.TargetProperty="Fill">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight1}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorLight}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalTrackRect"
|
||||
Storyboard.TargetProperty="Fill">
|
||||
@@ -1764,7 +1775,7 @@
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalDecreaseRect"
|
||||
Storyboard.TargetProperty="Fill">
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight1}" />
|
||||
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColorLight}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalTrackRect"
|
||||
Storyboard.TargetProperty="Fill">
|
||||
|
Reference in New Issue
Block a user