This repository has been archived by the owner on Oct 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd4744b
commit 0b39588
Showing
100 changed files
with
7,698 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Application x:Class="Playnite.DesktopApp.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib"> | ||
<!-- | ||
THIS FILE IS NOT PART OF THE THEME, DO NOT MODIFY! | ||
--> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="LocSource.xaml" /> | ||
<ResourceDictionary Source="GlobalResources.xaml" /> | ||
<ResourceDictionary Source="Constants.xaml" /> | ||
<ResourceDictionary Source="Common.xaml" /> | ||
<ResourceDictionary Source="Media.xaml" /> | ||
<!--Default Controls--> | ||
<ResourceDictionary Source="DefaultControls/Border.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/TextBlock.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/TextBox.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/Button.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/ComboBox.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/ContextMenu.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/DatePicker.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/Expander.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/GridSplitter.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/GroupBox.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/Hyperlink.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/CheckBox.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/Label.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/ListBox.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/ListView.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/Menu.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/PasswordBox.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/Popup.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/ProgressBar.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/RadioButton.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/RepeatButton.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/RichTextBox.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/ScrollViewer.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/Slider.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/TabControl.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/Thumb.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/ToggleButton.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/ToolTip.xaml" /> | ||
<ResourceDictionary Source="DefaultControls/TreeView.xaml" /> | ||
<!--Custom Controls--> | ||
<ResourceDictionary Source="CustomControls/ExtendedListBox.xaml" /> | ||
<ResourceDictionary Source="CustomControls/ExtendedListView.xaml" /> | ||
<ResourceDictionary Source="CustomControls/GameMenu.xaml" /> | ||
<ResourceDictionary Source="CustomControls/GameGroupMenu.xaml" /> | ||
<ResourceDictionary Source="CustomControls/HtmlTextView.xaml" /> | ||
<ResourceDictionary Source="CustomControls/MainMenu.xaml" /> | ||
<ResourceDictionary Source="CustomControls/TrayContextMenu.xaml" /> | ||
<ResourceDictionary Source="CustomControls/NullableIntBox.xaml" /> | ||
<ResourceDictionary Source="CustomControls/NumericBox.xaml" /> | ||
<ResourceDictionary Source="CustomControls/ViewSettingsMenu.xaml" /> | ||
<ResourceDictionary Source="CustomControls/SliderEx.xaml" /> | ||
<ResourceDictionary Source="CustomControls/ExpanderEx.xaml" /> | ||
<ResourceDictionary Source="CustomControls/WindowBase.xaml" /> | ||
<ResourceDictionary Source="CustomControls/SidebarItem.xaml" /> | ||
<!--Derived Styles--> | ||
<ResourceDictionary Source="DerivedStyles/TextBlockGameScore.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/PropertyItemButton.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/DetailsScrollViewer.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/Simplebutton.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/GridViewItemStyle.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/GridViewItemTemplate.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/DetailsViewItemTemplate.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/DetailsViewGroupStyle.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/DetailsViewItemStyle.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/StandardWindowStyle.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/WindowBarButton.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/BottomButton.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/DetailsHyperlink.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/HighlightBorder.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/ImageHighlightButton.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/MainWindowStyle.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/PlayButton.xaml" /> | ||
<ResourceDictionary Source="DerivedStyles/NotificationMessage.xaml" /> | ||
<!--Views--> | ||
<ResourceDictionary Source="Views/Sidebar.xaml" /> | ||
<ResourceDictionary Source="Views/ExplorerPanel.xaml" /> | ||
<ResourceDictionary Source="Views/FilterPanel.xaml" /> | ||
<ResourceDictionary Source="Views/MainPanel.xaml" /> | ||
<ResourceDictionary Source="Views/NotificationPanel.xaml" /> | ||
<ResourceDictionary Source="Views/DetailsViewGameOverview.xaml" /> | ||
<ResourceDictionary Source="Views/GridViewGameOverview.xaml" /> | ||
<ResourceDictionary Source="Views/LibraryDetailsView.xaml" /> | ||
<ResourceDictionary Source="Views/LibraryGridView.xaml" /> | ||
<ResourceDictionary Source="Views/LibraryListView.xaml" /> | ||
<ResourceDictionary Source="Views/Library.xaml" /> | ||
<ResourceDictionary Source="Views/MainWindow.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:sys="clr-namespace:System;assembly=mscorlib"> | ||
|
||
<sys:Double x:Key="FontSizeSmall">12</sys:Double> | ||
<sys:Double x:Key="FontSize">14</sys:Double> | ||
<sys:Double x:Key="FontSizeLarge">15</sys:Double> | ||
<sys:Double x:Key="FontSizeLarger">20</sys:Double> | ||
<sys:Double x:Key="FontSizeLargest">29</sys:Double> | ||
<sys:Double x:Key="FontSizeBig">35</sys:Double> | ||
<FontFamily x:Key="FontFamily">Segoe UI</FontFamily> | ||
<FontFamily x:Key="IconFont">Segoe MDL2 Assets</FontFamily> | ||
<FontFamily x:Key="SymbolFont">seguisym.ttf#Segoe UI Symbol</FontFamily> | ||
<Thickness x:Key="PopupBorderThickness">2</Thickness> | ||
<Thickness x:Key="ControlBorderThickness">1</Thickness> | ||
<sys:Double x:Key="EllipseBorderThickness">2</sys:Double> | ||
<CornerRadius x:Key="MainMenuCornerRadius">3</CornerRadius> | ||
<CornerRadius x:Key="TrayMenuCornerRadius">3</CornerRadius> | ||
<CornerRadius x:Key="TooltipCornerRadius">3</CornerRadius> | ||
<CornerRadius x:Key="ControlCornerRadius">3</CornerRadius> | ||
<CornerRadius x:Key="GridCornerRadius">5</CornerRadius> | ||
|
||
<Color x:Key="BlackColor">#FF000000</Color> | ||
<Color x:Key="WhiteColor">#FFFFFFFF</Color> | ||
<Color x:Key="GreyColor">#313234</Color> | ||
<Color x:Key="TextColor">#f2f2f2</Color> | ||
<Color x:Key="TextColorDarker">#cccccc</Color> | ||
<Color x:Key="TextColorDark">#FF000000</Color> | ||
<Color x:Key="MainColor">#1b1c1e</Color> | ||
<Color x:Key="MainColorDark">#171717</Color> | ||
<Color x:Key="HoverColor">#FFFF7D00</Color> | ||
<Color x:Key="GlyphColor">#FFFFFFFF</Color> | ||
<Color x:Key="HighlightGlyphColor">#FFFF7D00</Color> | ||
<Color x:Key="PopupBackgroundColor">#1b1c1e</Color> | ||
<Color x:Key="PopupBorderColor">#1b1c1e</Color> | ||
<Color x:Key="BackgroundToneColor">#1b1c1e</Color> | ||
<Color x:Key="GridItemBackgroundColor">#1b1c1e</Color> | ||
<Color x:Key="PanelSeparatorColor">#FF000000</Color> | ||
<Color x:Key="NormalColor">#FF292A2D</Color> | ||
<Color x:Key="GridDetailsColor">#FF000000</Color> | ||
<Color x:Key="ScrollBarColor">#FFFF7D00</Color> | ||
<Color x:Key="ScrollColor">#FFDBDBDB</Color> | ||
<Color x:Key="PlayColor">#FFA4A4A4</Color> | ||
|
||
|
||
<SolidColorBrush x:Key="ControlBackgroundBrush" Color="Transparent" /> | ||
<SolidColorBrush x:Key="TextBrush" Color="{DynamicResource TextColor}" /> | ||
<SolidColorBrush x:Key="TextBrushDarker" Color="{DynamicResource TextColorDarker}" /> | ||
<SolidColorBrush x:Key="TextBrushDark" Color="{DynamicResource TextColorDark}" /> | ||
<SolidColorBrush x:Key="NormalBrush" Color="{DynamicResource NormalColor}" /> | ||
<SolidColorBrush x:Key="NormalBrushDark" Color="{DynamicResource MainColorDark}" /> | ||
<SolidColorBrush x:Key="NormalBorderBrush" Color="{DynamicResource GreyColor}" /> | ||
<SolidColorBrush x:Key="HoverBrush" Color="{DynamicResource HoverColor}" /> | ||
<SolidColorBrush x:Key="HighlightGlyph" Color="{DynamicResource HighlightGlyphColor}" /> | ||
<SolidColorBrush x:Key="GlyphBrush" Color="{DynamicResource GlyphColor}" /> | ||
<SolidColorBrush x:Key="HighlightGlyphBrush" Color="{DynamicResource HighlightGlyphColor}" /> | ||
<SolidColorBrush x:Key="PopupBorderBrush" Color="{DynamicResource PopupBorderColor}" /> | ||
<SolidColorBrush x:Key="TooltipBackgroundBrush" Color="{DynamicResource PanelSeparatorColor}" Opacity="0.7" /> | ||
<SolidColorBrush x:Key="ButtonBackgroundBrush" Color="{DynamicResource GreyColor}" /> | ||
<SolidColorBrush x:Key="GridItemBackgroundBrush" Color="{DynamicResource GridItemBackgroundColor}" /> | ||
<SolidColorBrush x:Key="PanelSeparatorBrush" Color="{DynamicResource PanelSeparatorColor}" Opacity="0.3" /> | ||
<SolidColorBrush x:Key="PopupBackgroundBrush" Color="{DynamicResource MainColor}" /> | ||
<SolidColorBrush x:Key="GridDetailsBrush" Color="{DynamicResource GridDetailsColor}" Opacity="0.4" /> | ||
<SolidColorBrush x:Key="ScrollBarBrush" Color="{DynamicResource ScrollBarColor}" /> | ||
<SolidColorBrush x:Key="ScrollColorBrush" Color="{DynamicResource ScrollColor}" Opacity="0.16" /> | ||
<SolidColorBrush x:Key="PlayColorBrush" Color="{DynamicResource PlayColor}" Opacity="0.5" /> | ||
|
||
<SolidColorBrush x:Key="PositiveRatingBrush" Color="#78ffa0" /> | ||
<SolidColorBrush x:Key="NegativeRatingBrush" Color="#ff6b6b" /> | ||
<SolidColorBrush x:Key="MixedRatingBrush" Color="#fffca1" /> | ||
|
||
<SolidColorBrush x:Key="WarningBrush" Color="#ff6b6b" /> | ||
|
||
<SolidColorBrush x:Key="ExpanderBackgroundBrush" Color="#FF222222" Opacity="0.5" /> | ||
|
||
<sys:Double x:Key="ControlCornerRadiusDouble">0</sys:Double> | ||
<!--GridSizeSettings--> | ||
|
||
<GridLength x:Key="GridDetailsSize">790*</GridLength> | ||
|
||
<LinearGradientBrush x:Key="WindowBackgourndBrush" StartPoint="0.5,-0.2" EndPoint="0.4,1" > | ||
<GradientStop Color="{DynamicResource MainColor}" Offset="0"/> | ||
<GradientStop Color="{DynamicResource MainColorDark}" Offset="0.4"/> | ||
</LinearGradientBrush> | ||
|
||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Style TargetType="{x:Type ExpanderEx}" BasedOn="{StaticResource {x:Type Expander}}"> | ||
<Setter Property="Background" Value="{DynamicResource ExpanderBackgroundBrush}" /> | ||
</Style> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Style TargetType="{x:Type ExtendedListBox}" BasedOn="{StaticResource {x:Type ListBox}}"> | ||
<Setter Property="Background" Value="Transparent" /> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type ListBox}"> | ||
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" | ||
Background="{TemplateBinding Background}" CornerRadius="0"> | ||
<ScrollViewer Focusable="False" | ||
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" | ||
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" | ||
CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}"> | ||
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" | ||
Margin="{TemplateBinding Padding}"/> | ||
</ScrollViewer> | ||
</Border> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Style TargetType="{x:Type ExtendedListView}" BasedOn="{StaticResource {x:Type ListView}}"> | ||
<Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> | ||
</Style> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Style TargetType="{x:Type GameGroupMenu}"> | ||
<Setter Property="SnapsToDevicePixels" Value="True" /> | ||
<Setter Property="Background" Value="{DynamicResource PopupBackgroundBrush}" /> | ||
<Setter Property="BorderBrush" Value="{DynamicResource PopupBorderBrush}" /> | ||
<Setter Property="BorderThickness" Value="{DynamicResource PopupBorderThickness}" /> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type GameGroupMenu}"> | ||
<Border BorderBrush="{TemplateBinding BorderBrush}" | ||
BorderThickness="{TemplateBinding BorderThickness}" | ||
Background="{TemplateBinding Background}" | ||
Grid.IsSharedSizeScope="True"> | ||
<ItemsPresenter /> | ||
</Border> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Style TargetType="{x:Type GameMenu}"> | ||
<Setter Property="SnapsToDevicePixels" Value="True" /> | ||
<Setter Property="Background" Value="{DynamicResource PopupBackgroundBrush}" /> | ||
<Setter Property="BorderBrush" Value="{DynamicResource PopupBorderBrush}" /> | ||
<Setter Property="BorderThickness" Value="{DynamicResource PopupBorderThickness}" /> | ||
<Setter Property="FontWeight" Value="Normal" /> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type GameMenu}"> | ||
<Border BorderBrush="{TemplateBinding BorderBrush}" | ||
BorderThickness="{TemplateBinding BorderThickness}" | ||
Background="{TemplateBinding Background}" | ||
Grid.IsSharedSizeScope="True"> | ||
<ItemsPresenter /> | ||
</Border> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Style TargetType="{x:Type HtmlTextView}" /> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Style TargetType="{x:Type MainMenu}"> | ||
<Setter Property="SnapsToDevicePixels" Value="True" /> | ||
<Setter Property="Background" Value="{DynamicResource PopupBackgroundBrush}" /> | ||
<Setter Property="BorderBrush" Value="{DynamicResource PopupBorderBrush}" /> | ||
<Setter Property="BorderThickness" Value="{DynamicResource PopupBorderThickness}" /> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type MainMenu}"> | ||
<Border BorderBrush="{TemplateBinding BorderBrush}" | ||
BorderThickness="{TemplateBinding BorderThickness}" | ||
Background="{TemplateBinding Background}" | ||
CornerRadius="{DynamicResource MainMenuCornerRadius}" | ||
Grid.IsSharedSizeScope="True"> | ||
<ItemsPresenter /> | ||
</Border> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Style TargetType="{x:Type NullableIntBox}"> | ||
<Setter Property="KeyboardNavigation.TabNavigation" Value="None" /> | ||
<Setter Property="SnapsToDevicePixels" Value="True" /> | ||
<Setter Property="AllowDrop" Value="True" /> | ||
<Setter Property="CaretBrush" Value="{DynamicResource TextBrush}" /> | ||
<Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> | ||
<Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}"/> | ||
<Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/> | ||
<Setter Property="BorderThickness" Value="{DynamicResource ControlBorderThickness}" /> | ||
<Setter Property="Padding" Value="3" /> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type TextBox}"> | ||
<Border x:Name="Border" BorderThickness="1" | ||
Background="{TemplateBinding Background}" CornerRadius="{DynamicResource ControlCornerRadius}" | ||
Style="{DynamicResource HighlightBorder}" BorderBrush="{TemplateBinding BorderBrush}"> | ||
<ScrollViewer x:Name="PART_ContentHost" | ||
VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}" | ||
HorizontalScrollBarVisibility="{TemplateBinding HorizontalScrollBarVisibility}"/> | ||
</Border> | ||
<ControlTemplate.Triggers> | ||
<Trigger Property="IsFocused" Value="True"> | ||
<Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" TargetName="Border" /> | ||
</Trigger> | ||
</ControlTemplate.Triggers> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
</ResourceDictionary> |
Oops, something went wrong.