inital
This commit is contained in:
111
FasdDesktopUi/ResourceDictionaries/Basic/SearchBarResources.xaml
Normal file
111
FasdDesktopUi/ResourceDictionaries/Basic/SearchBarResources.xaml
Normal file
@@ -0,0 +1,111 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon">
|
||||
|
||||
<Style x:Key="SearchBar.TextBox"
|
||||
TargetType="TextBox">
|
||||
<Setter Property="VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Margin"
|
||||
Value="5 2.5 30 2.5" />
|
||||
<Setter Property="Padding"
|
||||
Value="2" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="0" />
|
||||
<Setter Property="Background"
|
||||
Value="Transparent" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
<Setter Property="CaretBrush"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.CategoryBase"
|
||||
TargetType="Border">
|
||||
<Setter Property="Margin"
|
||||
Value="-10, 0.5, -10, 0.5" />
|
||||
<Setter Property="Padding"
|
||||
Value="10, 0, 10, 0" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="0, 0.5, 0, 0.5" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{DynamicResource BackgroundColor.Menu.Categories}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.CategoryBase.TextBlock"
|
||||
TargetType="TextBlock">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
<Setter Property="VerticalAlignment"
|
||||
Value="Center" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.CategoryBase.Icon"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="17" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="17" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="0" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.ResultBorder"
|
||||
TargetType="Border"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase}">
|
||||
|
||||
<Setter Property="Height"
|
||||
Value="45" />
|
||||
<Setter Property="Background"
|
||||
Value="Transparent" />
|
||||
|
||||
<Style.Resources>
|
||||
<Style TargetType="TextBlock"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase.TextBlock}">
|
||||
<Setter Property="Margin"
|
||||
Value="15, 0, 0, 0" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase.Icon}" />
|
||||
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.ResultBorder.Hover"
|
||||
TargetType="Border"
|
||||
BasedOn="{StaticResource SearchBar.ResultBorder}">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.Menu.MainCategory.Hover}" />
|
||||
|
||||
<Style.Resources>
|
||||
<Style TargetType="TextBlock"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase.TextBlock}">
|
||||
<Setter Property="Margin"
|
||||
Value="15, 0, 0, 0" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories.Hover}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase.Icon}">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="20" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="20" />
|
||||
<Setter Property="Margin"
|
||||
Value="-1.5, -1.5, -1.5, -1.5" />
|
||||
</Style>
|
||||
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user