| | |
| | | xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"> |
| | | <ResourceDictionary.MergedDictionaries> |
| | | <ResourceDictionary Source="/HMI.UI;component/Style/Colors.xaml"/> |
| | | <pu:StyleDictionary Includes="PasswordBox,TextBox,ComboBox,Button,DataGrid,TreeView,Menu" /> |
| | | <pu:StyleDictionary Includes="PasswordBox,TextBox,ComboBox,Button,DataGrid,TreeView,Menu,ListBox" /> |
| | | <ResourceDictionary Source="/HMI.UI;component/Resources/Font/Font.xaml"/> |
| | | </ResourceDictionary.MergedDictionaries> |
| | | <sys:Double x:Key="TitleFontSize">20</sys:Double> |
| | |
| | | <Setter Property="Padding" Value="8"/> |
| | | <Setter Property="BorderThickness" Value="0"/> |
| | | <Setter Property="Cursor" Value="Hand"/> |
| | | <Setter Property="Focusable" Value="False"/> |
| | | </Style> |
| | | |
| | | <Style x:Key="CommonButton" TargetType="Button" BasedOn="{StaticResource PrimaryButton}"> |
| | |
| | | <Style x:Key="CardBoarder" TargetType="Border"> |
| | | <Setter Property="BorderBrush" Value="{StaticResource CommonBoarder}"/> |
| | | <Setter Property="BorderThickness" Value="2"/> |
| | | <Setter Property="Background" Value="#FFF"/> |
| | | <Setter Property="Background" Value="#f3f9ff"/> |
| | | <Setter Property="Margin" Value="10"/> |
| | | <Setter Property="Padding" Value="10"/> |
| | | </Style> |
| | |
| | | </Style.Triggers> |
| | | </Style> |
| | | |
| | | <Style x:Key="TableTextBlock" TargetType="TextBlock"> |
| | | <Setter Property="Padding" Value="0"/> |
| | | <Setter Property="Margin" Value="0"/> |
| | | <Setter Property="VerticalAlignment" Value="Center"/> |
| | | </Style> |
| | | |
| | | <Style x:Key="DefaultDataGrid" TargetType="DataGrid" BasedOn="{StaticResource {x:Static pu:StyleKeys.DataGridStyle}}"> |
| | | <Style.Resources> |
| | | <Style TargetType="DataGridCell" |
| | | BasedOn="{StaticResource {x:Static pu:StyleKeys.DataGridCellStyle}}"> |
| | | <Setter Property="Background" Value="Transparent"/> |
| | | <Setter Property="Padding" Value="5"/> |
| | | <Setter Property="Margin" Value="0"/> |
| | | <Setter Property="BorderThickness" Value="0"/> |
| | | <Setter Property="VerticalAlignment" Value="Stretch"/> |
| | | <Setter Property="Background" Value="Transparent"/> |
| | | </Style> |
| | | <!--<Style TargetType="TextBlock"> |
| | | <Setter Property="VerticalAlignment" Value="Center"/> |
| | | <Setter Property="Padding" Value="5"/> |
| | | </Style>--> |
| | | <Style TargetType="DataGridColumnHeader" |
| | | BasedOn="{StaticResource {x:Static pu:StyleKeys.DataGridColumnHeaderStyle}}"> |
| | | <Setter Property="Padding" Value="10"/> |
| | |
| | | Opacity="0" |
| | | Visibility="Visible" /> |
| | | </Popup> |
| | | |
| | | <Style x:Key="DefaultListBox" TargetType="ListBox" BasedOn="{StaticResource {x:Static pu:StyleKeys.ListBoxStyle}}"> |
| | | <Setter Property="pu:ListBoxHelper.ItemsHoverBackground" Value="{StaticResource SecondPrimaryColor}"/> |
| | | <Setter Property="pu:ListBoxHelper.ItemsHoverForeground" Value="{StaticResource SecondPrimaryColorContract}"/> |
| | | <Setter Property="pu:ListBoxHelper.ItemsSelectedBackground" Value="{StaticResource PrimaryColor}"/> |
| | | <Setter Property="pu:ListBoxHelper.ItemsSelectedForeground" Value="{StaticResource PrimaryColorContract}"/> |
| | | <Setter Property="pu:ListBoxHelper.ItemsMargin" Value="0"/> |
| | | <Setter Property="pu:ListBoxHelper.ItemsPadding" Value="7,5,7,5"/> |
| | | <Setter Property="FontSize" Value="{StaticResource ContentFontSize}"/> |
| | | <Setter Property="Background" Value="Transparent"/> |
| | | <Setter Property="BorderThickness" Value="0"/> |
| | | </Style> |
| | | </ResourceDictionary> |