forked from xiaoyaocz/biliuwp-lite
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Showing
3 changed files
with
80 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
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
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,75 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<ResourceDictionary.ThemeDictionaries> | ||
<ResourceDictionary x:Key="Light"> | ||
<Color x:Key="CardBackground">#1A333333</Color> | ||
</ResourceDictionary> | ||
<ResourceDictionary x:Key="Dark"> | ||
<Color x:Key="CardBackground">#1ACFCFCF</Color> | ||
</ResourceDictionary> | ||
<ResourceDictionary x:Key="HighContrast"> | ||
<Color x:Key="CardBackground">#00000000</Color> | ||
</ResourceDictionary> | ||
</ResourceDictionary.ThemeDictionaries> | ||
|
||
<Style x:Key="DefaultGridViewItem" TargetType="GridViewItem"> | ||
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" /> | ||
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" /> | ||
<Setter Property="Background" Value="{ThemeResource CardBackground}" /> | ||
<Setter Property="Foreground" Value="{ThemeResource GridViewItemForeground}" /> | ||
<Setter Property="TabNavigation" Value="Local" /> | ||
<Setter Property="IsHoldingEnabled" Value="True" /> | ||
<Setter Property="HorizontalContentAlignment" Value="Center" /> | ||
<Setter Property="VerticalContentAlignment" Value="Center" /> | ||
<Setter Property="Margin" Value="5" /> | ||
<Setter Property="MinWidth" Value="165" /> | ||
<Setter Property="MinHeight" Value="{ThemeResource GridViewItemMinHeight}" /> | ||
<Setter Property="AllowDrop" Value="True" /> | ||
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" /> | ||
<Setter Property="FocusVisualMargin" Value="-3" /> | ||
<Setter Property="FocusVisualPrimaryBrush" Value="{ThemeResource GridViewItemFocusVisualPrimaryBrush}" /> | ||
<Setter Property="FocusVisualPrimaryThickness" Value="2" /> | ||
<Setter Property="FocusVisualSecondaryBrush" Value="{ThemeResource GridViewItemFocusVisualSecondaryBrush}" /> | ||
<Setter Property="FocusVisualSecondaryThickness" Value="1" /> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="GridViewItem"> | ||
<ListViewItemPresenter | ||
x:Name="Root" | ||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" | ||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" | ||
CheckBoxBrush="{ThemeResource GridViewItemCheckBoxBrush}" | ||
CheckBrush="{ThemeResource GridViewItemCheckBrush}" | ||
CheckMode="{ThemeResource GridViewItemCheckMode}" | ||
ContentMargin="{TemplateBinding Padding}" | ||
ContentTransitions="{TemplateBinding ContentTransitions}" | ||
Control.IsTemplateFocusTarget="True" | ||
CornerRadius="{ThemeResource OverlayCornerRadius}" | ||
DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}" | ||
DragBackground="{ThemeResource GridViewItemDragBackground}" | ||
DragForeground="{ThemeResource GridViewItemDragForeground}" | ||
DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}" | ||
FocusBorderBrush="{ThemeResource GridViewItemFocusBorderBrush}" | ||
FocusVisualMargin="{TemplateBinding FocusVisualMargin}" | ||
FocusVisualPrimaryBrush="{TemplateBinding FocusVisualPrimaryBrush}" | ||
FocusVisualPrimaryThickness="{TemplateBinding FocusVisualPrimaryThickness}" | ||
FocusVisualSecondaryBrush="{TemplateBinding FocusVisualSecondaryBrush}" | ||
FocusVisualSecondaryThickness="{TemplateBinding FocusVisualSecondaryThickness}" | ||
PlaceholderBackground="{ThemeResource GridViewItemPlaceholderBackground}" | ||
PointerOverBackground="{ThemeResource GridViewItemBackgroundPointerOver}" | ||
PointerOverForeground="{ThemeResource GridViewItemForegroundPointerOver}" | ||
PressedBackground="{ThemeResource GridViewItemBackgroundPressed}" | ||
ReorderHintOffset="{ThemeResource GridViewItemReorderHintThemeOffset}" | ||
SelectedBackground="{ThemeResource GridViewItemBackgroundSelected}" | ||
SelectedForeground="{ThemeResource GridViewItemForegroundSelected}" | ||
SelectedPointerOverBackground="{ThemeResource GridViewItemBackgroundSelectedPointerOver}" | ||
SelectedPressedBackground="{ThemeResource GridViewItemBackgroundSelectedPressed}" | ||
SelectionCheckMarkVisualEnabled="{ThemeResource GridViewItemSelectionCheckMarkVisualEnabled}" /> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
<!--<Style TargetType="FlyoutPresenter"> | ||
<Setter Property="MaxWidth" Value="100"/> | ||
</Style>--> | ||
</ResourceDictionary> |