2024-03-20 00:36:10 -07:00
|
|
|
<Styles xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-03-21 03:02:06 -07:00
|
|
|
xmlns:vm="using:SourceGit.ViewModels"
|
2024-06-24 21:12:58 -07:00
|
|
|
xmlns:c="using:SourceGit.Converters"
|
2024-03-20 00:36:10 -07:00
|
|
|
xmlns:ae="using:AvaloniaEdit"
|
|
|
|
xmlns:aes="using:AvaloniaEdit.Search">
|
|
|
|
<Design.PreviewWith>
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
</StackPanel>
|
|
|
|
</Design.PreviewWith>
|
|
|
|
|
|
|
|
<Style Selector="ScrollBar">
|
|
|
|
<Style.Resources>
|
|
|
|
<x:Double x:Key="ScrollBarSize">12</x:Double>
|
|
|
|
</Style.Resources>
|
2024-05-21 18:55:41 -07:00
|
|
|
|
|
|
|
<Setter Property="ShowDelay" Value="0:0:0.1"/>
|
|
|
|
<Setter Property="HideDelay" Value="0:0:0.2"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
|
2024-06-12 20:54:10 -07:00
|
|
|
<Style Selector="Window">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.Window}"/>
|
|
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border0}"/>
|
|
|
|
<Setter Property="ExtendClientAreaChromeHints" Value="NoChrome"/>
|
|
|
|
<Setter Property="ExtendClientAreaToDecorationsHint" Value="True"/>
|
|
|
|
<Setter Property="SystemDecorations" Value="Full"/>
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
2024-06-14 00:46:52 -07:00
|
|
|
|
|
|
|
<Style.Resources>
|
|
|
|
<SolidColorBrush x:Key="SystemControlErrorTextForegroundBrush" Color="Red"/>
|
2024-07-02 08:14:49 -07:00
|
|
|
<Color x:Key="SystemErrorTextColor">Red</Color>
|
2024-06-14 00:46:52 -07:00
|
|
|
</Style.Resources>
|
2024-06-12 20:54:10 -07:00
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Window[WindowState=Maximized]">
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
2024-06-12 21:31:45 -07:00
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Window[WindowState=Maximized].fix_maximized_padding">
|
2024-06-12 20:54:10 -07:00
|
|
|
<Setter Property="Padding" Value="6"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Window.custom_window_frame">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
<Setter Property="SystemDecorations" Value="None"/>
|
|
|
|
<Setter Property="Padding" Value="12"/>
|
|
|
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Grid>
|
2024-06-13 00:25:04 -07:00
|
|
|
<Border x:Name="PART_BorderTopLeft"
|
|
|
|
Classes="resize_border"
|
|
|
|
Width="12" Height="12"
|
|
|
|
Background="Transparent"
|
|
|
|
HorizontalAlignment="Left" VerticalAlignment="Top"
|
|
|
|
Cursor="TopLeftCorner"
|
|
|
|
Tag="{x:Static WindowEdge.NorthWest}"/>
|
|
|
|
|
|
|
|
<Border x:Name="PART_BorderTop"
|
|
|
|
Classes="resize_border"
|
|
|
|
Height="12" Margin="12,0"
|
|
|
|
Background="Transparent"
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Top"
|
|
|
|
Cursor="TopSide"
|
|
|
|
Tag="{x:Static WindowEdge.North}"/>
|
|
|
|
|
|
|
|
<Border x:Name="PART_BorderTopRight"
|
|
|
|
Classes="resize_border"
|
|
|
|
Width="12" Height="12"
|
|
|
|
Background="Transparent"
|
|
|
|
HorizontalAlignment="Right" VerticalAlignment="Top"
|
|
|
|
Cursor="TopRightCorner"
|
|
|
|
Tag="{x:Static WindowEdge.NorthEast}"/>
|
|
|
|
|
|
|
|
<Border x:Name="PART_BorderLeft"
|
|
|
|
Classes="resize_border"
|
|
|
|
Width="12" Margin="0,12"
|
|
|
|
Background="Transparent"
|
|
|
|
HorizontalAlignment="Left" VerticalAlignment="Stretch"
|
|
|
|
Cursor="LeftSide"
|
|
|
|
Tag="{x:Static WindowEdge.West}"/>
|
|
|
|
|
|
|
|
<Border x:Name="PART_BorderRight"
|
|
|
|
Classes="resize_border"
|
|
|
|
Width="12" Margin="0,12"
|
|
|
|
Background="Transparent"
|
|
|
|
HorizontalAlignment="Right" VerticalAlignment="Stretch"
|
|
|
|
Cursor="RightSide"
|
|
|
|
Tag="{x:Static WindowEdge.East}"/>
|
|
|
|
|
|
|
|
<Border x:Name="PART_BorderBottomLeft"
|
|
|
|
Classes="resize_border"
|
|
|
|
Width="12" Height="12"
|
|
|
|
Background="Transparent"
|
|
|
|
HorizontalAlignment="Left" VerticalAlignment="Bottom"
|
|
|
|
Cursor="BottomLeftCorner"
|
|
|
|
Tag="{x:Static WindowEdge.SouthWest}"/>
|
|
|
|
|
|
|
|
<Border x:Name="PART_BorderBottom"
|
|
|
|
Classes="resize_border"
|
|
|
|
Height="12" Margin="12,0"
|
|
|
|
Background="Transparent"
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Bottom"
|
|
|
|
Cursor="BottomSide"
|
|
|
|
Tag="{x:Static WindowEdge.South}"/>
|
|
|
|
|
|
|
|
<Border x:Name="PART_BorderBottomRight"
|
|
|
|
Classes="resize_border"
|
|
|
|
Width="12" Height="12"
|
|
|
|
Background="Transparent"
|
|
|
|
HorizontalAlignment="Right" VerticalAlignment="Bottom"
|
|
|
|
Cursor="BottomRightCorner"
|
|
|
|
Tag="{x:Static WindowEdge.SouthEast}"/>
|
2024-06-13 18:44:44 -07:00
|
|
|
|
|
|
|
<Grid Margin="{TemplateBinding Padding}" Effect="drop-shadow(0 0 12 #A0000000)">
|
|
|
|
<Border x:Name="PART_ContentRoot"
|
|
|
|
Background="{DynamicResource Brush.Window}"
|
2024-06-15 00:10:40 -07:00
|
|
|
BorderBrush="{DynamicResource Brush.WindowBorder}"
|
2024-06-13 18:44:44 -07:00
|
|
|
BorderThickness="1"
|
2024-06-14 23:53:31 -07:00
|
|
|
CornerRadius="8">
|
2024-06-13 18:44:44 -07:00
|
|
|
<VisualLayerManager>
|
2024-06-14 23:53:31 -07:00
|
|
|
<Border CornerRadius="8" ClipToBounds="True">
|
|
|
|
<ContentPresenter Name="PART_ContentPresenter"
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
|
|
</Border>
|
2024-06-13 18:44:44 -07:00
|
|
|
</VisualLayerManager>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
2024-06-12 20:54:10 -07:00
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Window.custom_window_frame[WindowState=Maximized]">
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Window.custom_window_frame[WindowState=Maximized] /template/ Border#PART_ContentRoot">
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
</Style>
|
|
|
|
|
2024-06-13 00:25:04 -07:00
|
|
|
<Style Selector="Window.custom_window_frame[WindowState=Maximized] /template/ Border.resize_border">
|
2024-06-12 20:54:10 -07:00
|
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
|
|
<Setter Property="IsHitTestVisible" Value="False"/>
|
|
|
|
</Style>
|
|
|
|
|
2024-06-13 00:25:04 -07:00
|
|
|
<Style Selector="Window.custom_window_frame[CanResize=False] /template/ Border.resize_border">
|
2024-06-12 20:54:10 -07:00
|
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
|
|
<Setter Property="IsHitTestVisible" Value="False"/>
|
|
|
|
</Style>
|
|
|
|
|
2024-03-21 03:02:06 -07:00
|
|
|
<Style Selector="ContentPresenter">
|
2024-03-21 08:19:09 -07:00
|
|
|
<Setter Property="FontFamily" Value="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFont}"/>
|
2024-03-21 21:03:04 -07:00
|
|
|
<Setter Property="FontSize" Value="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize}"/>
|
2024-03-21 03:02:06 -07:00
|
|
|
</Style>
|
|
|
|
|
2024-07-02 09:03:24 -07:00
|
|
|
<Style Selector="ToolTip">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.Popup}"/>
|
|
|
|
</Style>
|
|
|
|
|
2024-06-20 02:02:12 -07:00
|
|
|
<Style Selector="FlyoutPresenter">
|
|
|
|
<Setter Property="MaxWidth" Value="1024"/>
|
|
|
|
<Setter Property="MaxHeight" Value="768"/>
|
|
|
|
</Style>
|
2024-07-14 00:55:15 -07:00
|
|
|
|
|
|
|
<Style Selector="Grid.repository_leftpanel">
|
|
|
|
</Style>
|
2024-06-20 02:02:12 -07:00
|
|
|
|
2024-03-20 00:36:10 -07:00
|
|
|
<Style Selector="Path">
|
|
|
|
<Setter Property="Fill" Value="{DynamicResource Brush.FG1}"/>
|
|
|
|
<Setter Property="Stretch" Value="Uniform"/>
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Path[IsVisible=True].rotating">
|
|
|
|
<Setter Property="Opacity" Value="0"/>
|
2024-07-14 00:55:15 -07:00
|
|
|
<Setter Property="Data" Value="{StaticResource Icons.Loading}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Style.Animations>
|
|
|
|
<Animation Duration="0:0:1" IterationCount="Infinite">
|
|
|
|
<KeyFrame Cue="0%">
|
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
<Setter Property="RotateTransform.Angle" Value="0.0"/>
|
|
|
|
</KeyFrame>
|
|
|
|
<KeyFrame Cue="100%">
|
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
<Setter Property="RotateTransform.Angle" Value="360.0"/>
|
|
|
|
</KeyFrame>
|
|
|
|
</Animation>
|
|
|
|
</Style.Animations>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Path[IsVisible=True].waiting">
|
|
|
|
<Setter Property="Opacity" Value="0"/>
|
2024-07-14 00:55:15 -07:00
|
|
|
<Setter Property="Data" Value="{StaticResource Icons.Waiting}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Style.Animations>
|
|
|
|
<Animation Duration="0:0:1" IterationCount="Infinite">
|
|
|
|
<KeyFrame Cue="0%">
|
|
|
|
<Setter Property="Opacity" Value="0.0"/>
|
|
|
|
</KeyFrame>
|
|
|
|
<KeyFrame Cue="50%">
|
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
</KeyFrame>
|
|
|
|
<KeyFrame Cue="100%">
|
|
|
|
<Setter Property="Opacity" Value="0.0"/>
|
|
|
|
</KeyFrame>
|
|
|
|
</Animation>
|
|
|
|
</Style.Animations>
|
|
|
|
</Style>
|
2024-05-29 02:31:01 -07:00
|
|
|
<Style Selector="Path.change_mode_switcher_icon">
|
|
|
|
<Setter Property="Fill" Value="{DynamicResource Brush.FG2}"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button:pointerover Path.change_mode_switcher_icon">
|
|
|
|
<Setter Property="Fill" Value="{DynamicResource Brush.Accent}"/>
|
|
|
|
</Style>
|
2024-05-30 00:13:59 -07:00
|
|
|
<Style Selector="Button.max_or_restore_btn Path">
|
|
|
|
<Setter Property="Data" Value="{StaticResource Icons.Window.Maximize}"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Window[WindowState=Maximized] Button.max_or_restore_btn Path">
|
|
|
|
<Setter Property="Data" Value="{StaticResource Icons.Window.Restore}"/>
|
|
|
|
</Style>
|
2024-03-20 00:36:10 -07:00
|
|
|
|
|
|
|
<Style Selector="TextBlock">
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
2024-06-24 20:58:04 -07:00
|
|
|
<Setter Property="FontSize" Value="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBlock.bold">
|
|
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBlock.italic">
|
|
|
|
<Setter Property="FontStyle" Value="Italic"/>
|
|
|
|
</Style>
|
2024-05-28 21:50:26 -07:00
|
|
|
<Style Selector="TextBlock.monospace, SelectableTextBlock.monospace">
|
2024-03-21 08:19:09 -07:00
|
|
|
<Setter Property="FontFamily" Value="{Binding Source={x:Static vm:Preference.Instance}, Path=MonospaceFont}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBlock.group_header_label">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG2}"/>
|
|
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
2024-06-25 06:32:05 -07:00
|
|
|
<Setter Property="Margin" Value="10,0,0,0"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
2024-07-09 01:42:07 -07:00
|
|
|
<Style Selector="TextBlock.table_header">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
|
|
|
<Setter Property="Opacity" Value=".65"/>
|
|
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
|
|
</Style>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Style Selector="TextBlock.info_label">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG2}"/>
|
|
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
|
|
|
</Style>
|
2024-05-30 23:18:08 -07:00
|
|
|
|
|
|
|
<Style Selector="SelectableTextBlock">
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
|
|
|
</Style>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Style Selector="SelectableTextBlock[IsEnabled=True]">
|
|
|
|
<Setter Property="ContextFlyout">
|
|
|
|
<Setter.Value>
|
|
|
|
<MenuFlyout Placement="Bottom">
|
|
|
|
<MenuItem Header="{DynamicResource Text.Copy}"
|
2024-04-24 07:32:55 -07:00
|
|
|
Command="{Binding $parent[SelectableTextBlock].Copy}"
|
|
|
|
IsEnabled="{Binding $parent[SelectableTextBlock].CanCopy}"
|
|
|
|
InputGesture="{x:Static TextBox.CopyGesture}">
|
2024-03-20 00:36:10 -07:00
|
|
|
<MenuItem.Icon>
|
|
|
|
<Path Width="11" Height="11" Data="{StaticResource Icons.Copy}" VerticalAlignment="Center"/>
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
</MenuFlyout>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="TextBox">
|
|
|
|
<Setter Property="CornerRadius" Value="0"/>
|
|
|
|
<Setter Property="Padding" Value="4,0"/>
|
|
|
|
<Setter Property="MinHeight" Value="16"/>
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border1}"/>
|
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.Contents}"/>
|
2024-05-30 23:18:08 -07:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="ContextFlyout">
|
|
|
|
<Setter.Value>
|
|
|
|
<MenuFlyout>
|
|
|
|
<MenuItem Header="{DynamicResource Text.Cut}" Command="{Binding $parent[TextBox].Cut}" IsEnabled="{Binding $parent[TextBox].CanCut}" InputGesture="{x:Static TextBox.CutGesture}">
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Path Width="11" Height="11" Data="{StaticResource Icons.Cut}" VerticalAlignment="Center"/>
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
|
|
|
|
<MenuItem Header="{DynamicResource Text.Copy}" Command="{Binding $parent[TextBox].Copy}" IsEnabled="{Binding $parent[TextBox].CanCopy}" InputGesture="{x:Static TextBox.CopyGesture}">
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Path Width="11" Height="11" Data="{StaticResource Icons.Copy}" VerticalAlignment="Center"/>
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
|
|
|
|
<MenuItem Header="{DynamicResource Text.Paste}" Command="{Binding $parent[TextBox].Paste}" IsEnabled="{Binding $parent[TextBox].CanPaste}" InputGesture="{x:Static TextBox.PasteGesture}">
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Path Width="11" Height="11" Data="{StaticResource Icons.Paste}" VerticalAlignment="Center"/>
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
</MenuFlyout>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBox:pointerover /template/ Border#PART_BorderElement">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.Contents}"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBox:focus /template/ Border#PART_BorderElement">
|
|
|
|
<Setter Property="BorderThickness" Value="1"/>
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.Contents}"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBox:disabled /template/ Border#PART_BorderElement">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="Opacity" Value=".6"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBox.no_background">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBox.no_background:pointerover /template/ Border#PART_BorderElement">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBox.no_background:focus /template/ Border#PART_BorderElement">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBox.no_border">
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBox.no_border:pointerover /template/ Border#PART_BorderElement">
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBox.no_border:focus /template/ Border#PART_BorderElement">
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="TextBlock.tab_header">
|
2024-06-24 21:12:58 -07:00
|
|
|
<Setter Property="FontSize" Value="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize, Converter={x:Static c:DoubleConverters.Increase}}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
|
|
|
<Setter Property="Opacity" Value=".56"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="DataValidationErrors">
|
|
|
|
<Setter Property="Theme" Value="{DynamicResource TooltipDataValidationErrors}" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="DataValidationErrors Path">
|
|
|
|
<Setter Property="Fill" Value="Transparent" />
|
|
|
|
<Setter Property="Stroke" Value="Red"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Button.caption_button_macos">
|
|
|
|
<Setter Property="Width" Value="24"/>
|
|
|
|
<Setter Property="Height" Value="24"/>
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.caption_button_macos:nth-child(1)">
|
|
|
|
<Setter Property="Margin" Value="6,0,0,0"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.caption_button_macos Ellipse">
|
|
|
|
<Setter Property="Width" Value="14"/>
|
|
|
|
<Setter Property="Height" Value="14"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="StrokeThickness" Value=".5"/>
|
|
|
|
<Setter Property="Stroke" Value="#40000000"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.caption_button_macos Path">
|
|
|
|
<Setter Property="Width" Value="8"/>
|
|
|
|
<Setter Property="Height" Value="8"/>
|
|
|
|
<Setter Property="Fill" Value="Black"/>
|
|
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Grid.caption_button_box:pointerover Button.caption_button_macos Path">
|
|
|
|
<Setter Property="IsVisible" Value="True"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.caption_button_macos /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.caption_button_macos:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Button.caption_button">
|
|
|
|
<Setter Property="Width" Value="48"/>
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.caption_button > Path">
|
|
|
|
<Setter Property="Width" Value="10"/>
|
|
|
|
<Setter Property="Height" Value="10"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.caption_button /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="CornerRadius" Value="0"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.caption_button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="#40000000"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.caption_button:nth-last-child(1):pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Red"/>
|
|
|
|
</Style>
|
|
|
|
|
2024-05-11 07:50:49 -07:00
|
|
|
<Style Selector="Button.icon_button, RepeatButton.icon_button">
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
</Style>
|
2024-05-11 07:50:49 -07:00
|
|
|
<Style Selector="Button.icon_button /template/ ContentPresenter#PART_ContentPresenter, RepeatButton.icon_button /template/ ContentPresenter#PART_ContentPresenter">
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="Opacity" Value="0.8"/>
|
|
|
|
</Style>
|
2024-05-11 07:50:49 -07:00
|
|
|
<Style Selector="Button.icon_button:pointerover /template/ ContentPresenter#PART_ContentPresenter, RepeatButton.icon_button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
</Style>
|
2024-05-26 19:29:15 -07:00
|
|
|
<Style Selector="Button.icon_button:disabled Path">
|
|
|
|
<Setter Property="Fill" Value="{DynamicResource Brush.FG2}"/>
|
|
|
|
</Style>
|
2024-03-20 00:36:10 -07:00
|
|
|
|
|
|
|
<Style Selector="Button.flat">
|
2024-06-19 01:14:41 -07:00
|
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border2}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center"/>
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.FlatButton.Background}"/>
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Border x:Name="PART_Border"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
2024-06-19 01:14:41 -07:00
|
|
|
CornerRadius="{TemplateBinding CornerRadius}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
|
|
|
|
<ContentPresenter x:Name="PART_ContentPresenter"
|
|
|
|
Background="Transparent"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
HorizontalContentAlignment="Center"
|
|
|
|
VerticalContentAlignment="Center"/>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.flat:pointerover /template/ Border#PART_Border">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.FlatButton.BackgroundHovered}"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.flat:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.flat.primary">
|
2024-06-19 01:14:41 -07:00
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrush}"/>
|
|
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackground}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.flat.primary:pointerover /template/ Border#PART_Border">
|
2024-06-19 01:14:41 -07:00
|
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackgroundPointerOver}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
<Style Selector="Button.flat.primary:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
2024-06-22 03:38:18 -07:00
|
|
|
<Style Selector="Button.flat.primary TextBlock">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource AccentButtonForeground}"/>
|
|
|
|
</Style>
|
2024-03-20 00:36:10 -07:00
|
|
|
|
|
|
|
<Style Selector="aes|SearchPanel">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate TargetType="aes:SearchPanel">
|
|
|
|
<Border Name="PART_Border"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="{TemplateBinding CornerRadius}"
|
|
|
|
BorderBrush="{DynamicResource Brush.Border2}"
|
|
|
|
Background="{DynamicResource Brush.Popup}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Padding="10">
|
|
|
|
<Grid ColumnDefinitions="Auto,Auto,Auto"
|
|
|
|
RowDefinitions="Auto,Auto,Auto">
|
|
|
|
<ToggleButton Name="Expander"
|
|
|
|
Theme="{StaticResource SearchPanelExpanderToggle}"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
IsVisible="{Binding !TextEditor.IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
IsChecked="{Binding IsReplaceMode, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.Row="0"
|
|
|
|
Width="16"
|
|
|
|
Margin="0, 0, 5, 0">
|
|
|
|
<ToolTip.Tip>
|
|
|
|
<TextBlock Text="{x:Static ae:SR.SearchToggleReplace}" />
|
|
|
|
</ToolTip.Tip>
|
|
|
|
</ToggleButton>
|
|
|
|
<StackPanel Orientation="Horizontal"
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Row="0">
|
|
|
|
<TextBox Watermark="{x:Static ae:SR.SearchLabel}"
|
|
|
|
Name="PART_searchTextBox"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Row="0"
|
|
|
|
Width="265" Height="28"
|
|
|
|
Margin="0,0,0,0"
|
|
|
|
CornerRadius="2"
|
|
|
|
Text="{Binding SearchPattern, RelativeSource={RelativeSource TemplatedParent}}">
|
|
|
|
<TextBox.InnerRightContent>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<ToggleButton Theme="{StaticResource SearchPanelTextBoxButton}"
|
|
|
|
IsChecked="{Binding $parent[aes:SearchPanel].MatchCase, Mode=TwoWay}"
|
|
|
|
ToolTip.Tip="{x:Static ae:SR.SearchMatchCaseText}"
|
|
|
|
Width="24" Height="20"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<Path Data="{StaticResource CaseSensitiveIconPath}"
|
|
|
|
Stretch="Uniform"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Width="12"
|
2024-05-31 21:13:57 -07:00
|
|
|
Fill="{DynamicResource Brush.FG1}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</ToggleButton>
|
|
|
|
<ToggleButton Theme="{StaticResource SearchPanelTextBoxButton}"
|
|
|
|
IsChecked="{Binding $parent[aes:SearchPanel].WholeWords, Mode=TwoWay}"
|
|
|
|
ToolTip.Tip="{x:Static ae:SR.SearchMatchWholeWordsText}"
|
|
|
|
Margin="3,0,0,0" Width="24" Height="20"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<Path Data="{StaticResource CompleteWordIconPath}"
|
|
|
|
Stretch="Uniform"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Width="14"
|
2024-05-31 21:13:57 -07:00
|
|
|
Fill="{DynamicResource Brush.FG1}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</ToggleButton>
|
|
|
|
<ToggleButton Theme="{StaticResource SearchPanelTextBoxButton}"
|
|
|
|
IsChecked="{Binding $parent[aes:SearchPanel].UseRegex, Mode=TwoWay}"
|
|
|
|
ToolTip.Tip="{x:Static ae:SR.SearchUseRegexText}"
|
|
|
|
Margin="3,0,5,0" Width="24" Height="20"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<Path Data="{StaticResource RegularExpressionIconPath}"
|
|
|
|
Stretch="Uniform"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Width="12"
|
2024-05-31 21:13:57 -07:00
|
|
|
Fill="{DynamicResource Brush.FG1}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</ToggleButton>
|
|
|
|
</StackPanel>
|
|
|
|
</TextBox.InnerRightContent>
|
|
|
|
</TextBox>
|
|
|
|
<Button Margin="5,0,0,0"
|
|
|
|
Width="28"
|
|
|
|
Background="Transparent"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
Command="{x:Static aes:SearchCommands.FindPrevious}">
|
|
|
|
<ToolTip.Tip>
|
|
|
|
<TextBlock Text="{x:Static ae:SR.SearchFindPreviousText}" />
|
|
|
|
</ToolTip.Tip>
|
|
|
|
<Path Data="{StaticResource Icons.Up}"
|
|
|
|
Stretch="Uniform"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Width="14"
|
|
|
|
Fill="{DynamicResource Brush.FG1}"/>
|
|
|
|
</Button>
|
|
|
|
<Button Margin="3,0,0,0"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
Width="28"
|
|
|
|
Background="Transparent"
|
|
|
|
Command="{x:Static aes:SearchCommands.FindNext}">
|
|
|
|
<ToolTip.Tip>
|
|
|
|
<TextBlock Text="{x:Static ae:SR.SearchFindNextText}" />
|
|
|
|
</ToolTip.Tip>
|
|
|
|
<Path Data="{StaticResource Icons.Down}"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Stretch="Uniform"
|
|
|
|
Width="14"
|
|
|
|
Fill="{DynamicResource Brush.FG1}"/>
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Name="ReplaceButtons"
|
|
|
|
IsVisible="{Binding #Expander.IsChecked}"
|
|
|
|
Orientation="Horizontal"
|
|
|
|
Margin="0 5 0 0 "
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Row="1">
|
|
|
|
<TextBox Name="ReplaceBox" Watermark="{x:Static ae:SR.ReplaceLabel}"
|
|
|
|
IsVisible="{Binding IsReplaceMode, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Row="1"
|
|
|
|
Width="265" Height="28"
|
|
|
|
Margin="0 0 0 0"
|
|
|
|
CornerRadius="2"
|
|
|
|
Text="{Binding ReplacePattern, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
|
|
<Button Margin="5, 0, 0, 0"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
Width="28"
|
|
|
|
Background="Transparent"
|
|
|
|
Command="{x:Static aes:SearchCommands.ReplaceNext}">
|
|
|
|
<ToolTip.Tip>
|
|
|
|
<TextBlock Text="{x:Static ae:SR.SearchReplaceNext}" />
|
|
|
|
</ToolTip.Tip>
|
|
|
|
<Path Data="{StaticResource ReplaceNextIconPath}"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Stretch="Uniform"
|
|
|
|
Width="12"
|
|
|
|
Fill="{DynamicResource Brush.FG1}"/>
|
|
|
|
</Button>
|
|
|
|
<Button Margin="3, 0, 0, 0"
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
Width="28"
|
|
|
|
Background="Transparent"
|
|
|
|
Command="{x:Static aes:SearchCommands.ReplaceAll}">
|
|
|
|
<ToolTip.Tip>
|
|
|
|
<TextBlock Text="{x:Static ae:SR.SearchReplaceAll}" />
|
|
|
|
</ToolTip.Tip>
|
|
|
|
<Path Data="{StaticResource ReplaceAllIconPath}"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Stretch="Uniform"
|
|
|
|
Width="18"
|
|
|
|
Fill="{DynamicResource Brush.FG1}" />
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Name="PART_MessageView"
|
|
|
|
IsVisible="False"
|
|
|
|
Orientation="Horizontal"
|
|
|
|
Margin="0 5 0 0"
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Row="2">
|
2024-03-21 21:03:04 -07:00
|
|
|
<TextBlock Name="PART_MessageContent" FontSize="11" />
|
2024-03-20 00:36:10 -07:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="ListBox.launcher_page_tabbar">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ListBox.launcher_page_tabbar ListBoxItem">
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ListBox.launcher_page_tabbar ListBoxItem /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="Opacity" Value=".5"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ListBox.launcher_page_tabbar ListBoxItem:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
2024-06-29 02:04:39 -07:00
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Opacity" Value=".85"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ListBox.launcher_page_tabbar ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
|
2024-06-29 02:04:39 -07:00
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="ContextMenu">
|
|
|
|
<Setter Property="HorizontalOffset" Value="-4"/>
|
|
|
|
<Setter Property="VerticalOffset" Value="-4"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="4" CornerRadius="{TemplateBinding CornerRadius}">
|
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect OffsetX="0" OffsetY="0" BlurRadius="4" Color="Black" Opacity=".6"/>
|
|
|
|
</Border.Effect>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Border BorderThickness="0"
|
2024-04-24 07:32:55 -07:00
|
|
|
Margin="8,4"
|
|
|
|
MaxWidth="{TemplateBinding MaxWidth}"
|
|
|
|
MinHeight="{TemplateBinding MinHeight}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}">
|
2024-03-20 00:36:10 -07:00
|
|
|
<ScrollViewer Theme="{StaticResource FluentMenuScrollViewer}">
|
|
|
|
<ItemsPresenter Name="PART_ItemsPresenter"
|
2024-04-24 07:32:55 -07:00
|
|
|
ItemsPanel="{TemplateBinding ItemsPanel}"
|
|
|
|
Margin="{DynamicResource MenuFlyoutScrollerMargin}"
|
|
|
|
KeyboardNavigation.TabNavigation="Continue"
|
|
|
|
Grid.IsSharedSizeScope="True" />
|
2024-03-20 00:36:10 -07:00
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="MenuFlyoutPresenter">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="4" CornerRadius="{TemplateBinding CornerRadius}">
|
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect OffsetX="0" OffsetY="0" BlurRadius="4" Color="Black" Opacity=".6"/>
|
|
|
|
</Border.Effect>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Border Name="LayoutRoot"
|
2024-04-24 07:32:55 -07:00
|
|
|
Margin="4"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="0"
|
|
|
|
Padding="4,2"
|
|
|
|
CornerRadius="{TemplateBinding CornerRadius}">
|
2024-03-20 00:36:10 -07:00
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
2024-04-24 07:32:55 -07:00
|
|
|
Theme="{StaticResource FluentMenuScrollViewer}"
|
|
|
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
|
2024-03-20 00:36:10 -07:00
|
|
|
<ItemsPresenter Name="PART_ItemsPresenter"
|
2024-04-24 07:32:55 -07:00
|
|
|
ItemsPanel="{TemplateBinding ItemsPanel}"
|
|
|
|
Margin="{DynamicResource MenuFlyoutScrollerMargin}"
|
|
|
|
KeyboardNavigation.TabNavigation="Continue"
|
|
|
|
Grid.IsSharedSizeScope="True" />
|
2024-03-20 00:36:10 -07:00
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="MenuItem">
|
|
|
|
<Style.Resources>
|
|
|
|
<ControlTheme x:Key="{x:Type MenuItem}" TargetType="MenuItem">
|
2024-04-24 07:32:55 -07:00
|
|
|
<Setter Property="Height" Value="28"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Panel>
|
|
|
|
<Border Name="PART_LayoutRoot"
|
2024-04-24 07:32:55 -07:00
|
|
|
Padding="0,0,4,0"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="3">
|
2024-03-20 00:36:10 -07:00
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="MenuItemIcon" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="MenuItemIGT" />
|
|
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="MenuItemChevron" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Border Grid.Column="0" Width="28">
|
|
|
|
<ContentControl x:Name="PART_IconPresenter"
|
2024-04-24 07:32:55 -07:00
|
|
|
Content="{TemplateBinding Icon}"
|
|
|
|
IsVisible="False"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Border>
|
|
|
|
|
|
|
|
<ContentPresenter Grid.Column="1"
|
2024-04-24 07:32:55 -07:00
|
|
|
Name="PART_HeaderPresenter"
|
|
|
|
Content="{TemplateBinding Header}"
|
|
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
RecognizesAccessKey="True"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<TextBlock x:Name="PART_InputGestureText"
|
2024-04-24 07:32:55 -07:00
|
|
|
Grid.Column="2"
|
|
|
|
Classes="CaptionTextBlockStyle"
|
|
|
|
Margin="{DynamicResource MenuInputGestureTextMargin}"
|
|
|
|
Text="{TemplateBinding InputGesture, Converter={StaticResource KeyGestureConverter}}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="{DynamicResource MenuFlyoutItemKeyboardAcceleratorTextForeground}"
|
|
|
|
FontSize="11"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Path Name="PART_ChevronPath"
|
2024-04-24 07:32:55 -07:00
|
|
|
Width="6"
|
2024-04-26 06:39:33 -07:00
|
|
|
Data="M573 512 215 881c-20 20-20 51 0 61l61 61c20 20 51 20 61 0l461-461c10-10 10-20 10-31s0-20-10-31L338 20C317 0 287 0 276 20L215 82c-20 20-20 51 0 61L573 512z"
|
|
|
|
Fill="{DynamicResource Brush.FG2}"
|
2024-04-24 07:32:55 -07:00
|
|
|
Margin="8,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Grid.Column="3" />
|
2024-03-20 00:36:10 -07:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<Popup Name="PART_Popup"
|
2024-04-24 07:32:55 -07:00
|
|
|
WindowManagerAddShadowHint="False"
|
|
|
|
Placement="RightEdgeAlignedTop"
|
2024-07-06 18:56:22 -07:00
|
|
|
MaxHeight="400"
|
2024-04-24 07:32:55 -07:00
|
|
|
IsLightDismissEnabled="False"
|
|
|
|
HorizontalOffset="-4"
|
|
|
|
VerticalOffset="-4"
|
|
|
|
IsOpen="{TemplateBinding IsSubMenuOpen, Mode=TwoWay}">
|
2024-03-20 00:36:10 -07:00
|
|
|
<Grid>
|
|
|
|
<Border Background="{DynamicResource Brush.Popup}" Margin="4" CornerRadius="{DynamicResource OverlayCornerRadius}">
|
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect OffsetX="0" OffsetY="0" Color="Black" BlurRadius="4" Opacity=".6"/>
|
|
|
|
</Border.Effect>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Border BorderThickness="0"
|
2024-04-24 07:32:55 -07:00
|
|
|
Margin="8,4"
|
|
|
|
MaxWidth="{DynamicResource FlyoutThemeMaxWidth}"
|
|
|
|
MinHeight="{DynamicResource MenuFlyoutThemeMinHeight}"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
CornerRadius="{DynamicResource OverlayCornerRadius}">
|
2024-03-20 00:36:10 -07:00
|
|
|
<ScrollViewer Theme="{StaticResource FluentMenuScrollViewer}">
|
|
|
|
<ItemsPresenter Name="PART_ItemsPresenter"
|
2024-04-24 07:32:55 -07:00
|
|
|
Margin="{DynamicResource MenuFlyoutScrollerMargin}"
|
2024-07-06 18:56:22 -07:00
|
|
|
Grid.IsSharedSizeScope="True">
|
|
|
|
<ItemsPresenter.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
<VirtualizingStackPanel Orientation="Vertical"/>
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</ItemsPresenter.ItemsPanel>
|
|
|
|
</ItemsPresenter>
|
2024-03-20 00:36:10 -07:00
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Popup>
|
|
|
|
</Panel>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
<Style Selector="^:icon /template/ ContentControl#PART_IconPresenter">
|
|
|
|
<Setter Property="IsVisible" Value="True" />
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="^:selected">
|
|
|
|
<Style Selector="^ /template/ Border#PART_LayoutRoot">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource MenuFlyoutItemBackgroundPointerOver}" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^ /template/ ContentPresenter#PART_HeaderPresenter">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource MenuFlyoutItemForegroundPointerOver}" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^ /template/ TextBlock#PART_InputGestureText">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource MenuFlyoutItemKeyboardAcceleratorTextForegroundPointerOver}" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^ /template/ Path#PART_ChevronPath">
|
|
|
|
<Setter Property="Fill" Value="{DynamicResource MenuFlyoutSubItemChevronPointerOver}" />
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="^:disabled">
|
|
|
|
<Style Selector="^ /template/ Border#PART_LayoutRoot">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource MenuFlyoutItemBackgroundDisabled}" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^ /template/ ContentPresenter#PART_HeaderPresenter">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource MenuFlyoutItemForegroundDisabled}" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^ /template/ TextBlock#PART_InputGestureText">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource MenuFlyoutItemKeyboardAcceleratorTextForegroundDisabled}" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^ /template/ Path#PART_ChevronPath">
|
|
|
|
<Setter Property="Fill" Value="{DynamicResource MenuFlyoutSubItemChevronDisabled}" />
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="^:empty /template/ Path#PART_ChevronPath">
|
|
|
|
<Setter Property="IsVisible" Value="False" />
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="^:separator">
|
|
|
|
<Setter Property="Height" Value="5"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Separator Margin="28,0,4,0" Height=".5" VerticalAlignment="Center" Background="{DynamicResource Brush.Border2}"/>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</ControlTheme>
|
|
|
|
</Style.Resources>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="ComboBox">
|
|
|
|
<Style.Resources>
|
|
|
|
<Thickness x:Key="ComboBoxDropdownBorderPadding">4,0</Thickness>
|
|
|
|
<Thickness x:Key="ComboBoxItemThemePadding">6,4</Thickness>
|
|
|
|
<SolidColorBrush x:Key="ComboBoxDropDownBackground" Color="{DynamicResource Color.Contents}"/>
|
2024-05-25 05:06:49 -07:00
|
|
|
<SolidColorBrush x:Key="ComboBoxDropDownBorderBrush" Color="{DynamicResource SystemAccentColor}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style.Resources>
|
2024-04-24 07:32:55 -07:00
|
|
|
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="MinHeight" Value="20"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border1}"/>
|
|
|
|
|
|
|
|
<Style Selector="^ /template/ Popup#PART_Popup">
|
|
|
|
<Setter Property="Placement" Value="BottomEdgeAlignedLeft"/>
|
|
|
|
<Setter Property="VerticalOffset" Value="2"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^:pointerover /template/ Border#Background">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}" />
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
<Style Selector="^:disabled">
|
|
|
|
<Setter Property="Opacity" Value=".6"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^:disabled /template/ Border#Background">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ComboBoxItem">
|
|
|
|
<Setter Property="CornerRadius" Value="3"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="CheckBox">
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Grid Background="Transparent">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Border x:Name="Border" Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" BorderBrush="{DynamicResource Brush.Border1}" BorderThickness="1" Background="Transparent" CornerRadius="2">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Path x:Name="Icon" Height="12" Width="12" Data="{DynamicResource Icons.Check}" Fill="{DynamicResource Brush.Accent}" IsVisible="False" Margin="0,2,0,0"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Border>
|
|
|
|
|
2024-04-24 07:32:55 -07:00
|
|
|
<ContentPresenter x:Name="ContentPresenter"
|
2024-03-20 00:36:10 -07:00
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
Content="{TemplateBinding Content}"
|
2024-04-24 07:32:55 -07:00
|
|
|
Grid.Column="1"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Margin="8,0,0,0"
|
2024-03-20 00:36:10 -07:00
|
|
|
TextWrapping="Wrap"/>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
<Style Selector="^:pointerover /template/ Border#Border">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
<Style Selector="^:checked /template/ Path#Icon">
|
|
|
|
<Setter Property="IsVisible" Value="True"/>
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="RadioButton">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Grid ColumnDefinitions="16,*" Background="Transparent">
|
|
|
|
<Grid Grid.Column="0">
|
|
|
|
<Ellipse x:Name="Border"
|
|
|
|
Width="14"
|
|
|
|
Height="14"
|
|
|
|
Fill="Transparent"
|
|
|
|
Stroke="{DynamicResource Brush.Border1}"
|
|
|
|
StrokeThickness="1"
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
UseLayoutRounding="False" />
|
|
|
|
|
|
|
|
<Ellipse x:Name="Dot"
|
|
|
|
Width="10"
|
|
|
|
Height="10"
|
|
|
|
Fill="Transparent"
|
|
|
|
Stroke="Transparent"
|
|
|
|
StrokeThickness="1"
|
|
|
|
UseLayoutRounding="False" />
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<ContentPresenter x:Name="PART_ContentPresenter"
|
|
|
|
Grid.Column="1"
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
|
|
|
RecognizesAccessKey="True" />
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
<Style Selector="^:pointerover /template/ Ellipse#Border">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="Stroke" Value="{DynamicResource Brush.Accent}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
<Style Selector="^:checked /template/ Ellipse#Dot">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="Fill" Value="{DynamicResource Brush.Accent}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
|
2024-06-25 00:03:21 -07:00
|
|
|
<Style Selector="RadioButton.icon_button">
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Border Background="Transparent">
|
|
|
|
<ContentPresenter x:Name="PART_ContentPresenter"
|
|
|
|
Margin="0"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
|
|
|
RecognizesAccessKey="True" />
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
<Style Selector="^:checked Path">
|
|
|
|
<Setter Property="Fill" Value="{DynamicResource Brush.Accent}"/>
|
|
|
|
<Setter Property="Opacity" Value="0.65"/>
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
|
2024-03-20 00:36:10 -07:00
|
|
|
<Style Selector="ToggleButton.group_expander">
|
2024-06-28 20:02:05 -07:00
|
|
|
<Setter Property="Margin" Value="6,0,0,0"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
2024-07-11 20:01:02 -07:00
|
|
|
<Grid ColumnDefinitions="Auto,*" Background="Transparent">
|
2024-03-20 00:36:10 -07:00
|
|
|
<Path Grid.Column="0"
|
2024-04-24 07:32:55 -07:00
|
|
|
x:Name="PART_IndicatorIcon"
|
|
|
|
Width="10"
|
2024-06-25 06:32:05 -07:00
|
|
|
Margin="0,0,2,0"
|
2024-04-24 07:32:55 -07:00
|
|
|
Data="{StaticResource Icons.Down}"
|
|
|
|
Fill="{DynamicResource Brush.FG2}"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
RenderTransformOrigin="50%,50%"
|
|
|
|
RenderTransform="rotate(270deg)"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<ContentPresenter Grid.Column="1"
|
2024-04-24 07:32:55 -07:00
|
|
|
x:Name="PART_ContentPresenter"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
CornerRadius="{TemplateBinding CornerRadius}"
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
Padding="0"
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
HorizontalContentAlignment="Stretch"
|
|
|
|
VerticalContentAlignment="Stretch" />
|
2024-03-20 00:36:10 -07:00
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.group_expander:pressed">
|
|
|
|
<Setter Property="RenderTransform" Value="scale(1)"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.group_expander:checked /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.group_expander:checked /template/ Path#PART_IndicatorIcon">
|
|
|
|
<Setter Property="RenderTransform" Value="rotate(0deg)"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.group_expander:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="ToggleButton.filter">
|
|
|
|
<Setter Property="Margin" Value="0"/>
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
2024-07-09 20:06:32 -07:00
|
|
|
<Path x:Name="PART_IndicatorIcon"
|
2024-04-24 07:32:55 -07:00
|
|
|
Width="12"
|
|
|
|
Data="{StaticResource Icons.Filter}"
|
|
|
|
Fill="Transparent"
|
|
|
|
StrokeThickness="1"
|
|
|
|
Stroke="{DynamicResource Brush.FG2}"
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.filter:pressed">
|
|
|
|
<Setter Property="RenderTransform" Value="scale(1)"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.filter:checked /template/ Path#PART_IndicatorIcon">
|
|
|
|
<Setter Property="Fill" Value="{DynamicResource Brush.FG2}"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.filter:pointerover /template/ Path#PART_IndicatorIcon">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="Stroke" Value="{DynamicResource Brush.AccentHovered}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.tree_expander">
|
|
|
|
<Setter Property="Margin" Value="0" />
|
2024-07-15 00:40:15 -07:00
|
|
|
<Setter Property="Width" Value="9" />
|
|
|
|
<Setter Property="Height" Value="9" />
|
2024-07-11 20:01:02 -07:00
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Border Background="Transparent"
|
2024-04-24 07:32:55 -07:00
|
|
|
Width="{TemplateBinding Width}"
|
|
|
|
Height="{TemplateBinding Height}"
|
2024-07-11 22:54:13 -07:00
|
|
|
HorizontalAlignment="Left"
|
2024-04-24 07:32:55 -07:00
|
|
|
VerticalAlignment="Center">
|
2024-03-20 00:36:10 -07:00
|
|
|
<Path x:Name="ChevronPath"
|
2024-04-24 07:32:55 -07:00
|
|
|
Data="M 4 0 L 8 4 L 4 8 Z"
|
2024-07-15 22:26:04 -07:00
|
|
|
Fill="{DynamicResource Brush.FG1}"
|
2024-04-24 07:32:55 -07:00
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
<Style Selector="^:checked /template/ Path#ChevronPath">
|
|
|
|
<Setter Property="Data" Value="M 0 4 L 8 4 L 4 8 Z" />
|
|
|
|
</Style>
|
|
|
|
</Style>
|
2024-07-15 20:15:41 -07:00
|
|
|
|
|
|
|
<Style Selector="ToggleButton.time_display_mode">
|
|
|
|
<Setter Property="Margin" Value="0" />
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Border Background="Transparent"
|
|
|
|
Width="{TemplateBinding Width}"
|
|
|
|
Height="{TemplateBinding Height}"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<Path x:Name="ChevronPath"
|
|
|
|
Data="{StaticResource Icons.Calender}"
|
2024-07-15 22:26:04 -07:00
|
|
|
Fill="{DynamicResource Brush.FG1}"
|
2024-07-15 20:15:41 -07:00
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Opacity="0.65"/>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
<Style Selector="^:checked /template/ Path#ChevronPath">
|
|
|
|
<Setter Property="Data" Value="{StaticResource Icons.Stopwatch}" />
|
|
|
|
</Style>
|
2024-07-15 22:26:04 -07:00
|
|
|
|
|
|
|
<Style Selector="^:pointerover /template/ Path#ChevronPath">
|
|
|
|
<Setter Property="Fill" Value="{DynamicResource Brush.Accent}" />
|
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
</Style>
|
2024-07-15 20:15:41 -07:00
|
|
|
</Style>
|
2024-07-12 02:14:52 -07:00
|
|
|
|
2024-07-12 02:42:03 -07:00
|
|
|
<Style Selector="ToggleButton.folder">
|
2024-07-12 02:14:52 -07:00
|
|
|
<Setter Property="Margin" Value="0" />
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="IsHitTestVisible" Value="False"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Border Background="Transparent"
|
|
|
|
Width="{TemplateBinding Width}"
|
|
|
|
Height="{TemplateBinding Height}"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<Path x:Name="ChevronPath"
|
2024-07-15 00:40:15 -07:00
|
|
|
Data="{StaticResource Icons.Folder}"
|
2024-07-12 02:42:03 -07:00
|
|
|
Fill="{TemplateBinding Foreground}"
|
2024-07-15 00:40:15 -07:00
|
|
|
Stretch="Uniform"
|
2024-07-12 02:14:52 -07:00
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"/>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
<Style Selector="^:checked /template/ Path#ChevronPath">
|
|
|
|
<Setter Property="Data" Value="{StaticResource Icons.Folder.Open}" />
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
|
2024-03-20 00:36:10 -07:00
|
|
|
<Style Selector="ToggleButton.layout_direction">
|
|
|
|
<Setter Property="Margin" Value="0"/>
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Border Background="Transparent">
|
2024-07-09 20:06:32 -07:00
|
|
|
<Path x:Name="PART_IndicatorIcon"
|
2024-03-20 20:16:34 -07:00
|
|
|
Width="14" Height="14"
|
|
|
|
Stretch="Uniform"
|
2024-04-24 07:32:55 -07:00
|
|
|
Data="{StaticResource Icons.LayoutVertical}"
|
|
|
|
Fill="{DynamicResource Brush.FG1}"
|
2024-03-20 20:16:34 -07:00
|
|
|
Opacity=".8"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.layout_direction:checked /template/ Path#PART_IndicatorIcon">
|
2024-03-20 20:16:34 -07:00
|
|
|
<Setter Property="Data" Value="{StaticResource Icons.LayoutHorizontal}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.layout_direction:pointerover /template/ Path#PART_IndicatorIcon">
|
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
</Style>
|
2024-04-24 07:32:55 -07:00
|
|
|
|
2024-03-20 00:36:10 -07:00
|
|
|
<Style Selector="ToggleButton.line_path">
|
|
|
|
<Setter Property="Margin" Value="0"/>
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.line_path:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.line_path:checked /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.line_path:checked Path">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="Fill" Value="{DynamicResource Brush.Accent}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
2024-04-24 07:32:55 -07:00
|
|
|
|
2024-03-20 00:36:10 -07:00
|
|
|
<Style Selector="ToggleButton.toggle_untracked">
|
|
|
|
<Setter Property="Margin" Value="0"/>
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<Border Background="Transparent">
|
2024-07-09 20:06:32 -07:00
|
|
|
<Path x:Name="PART_IndicatorIcon"
|
2024-03-20 00:36:10 -07:00
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
Stretch="Fill"
|
|
|
|
Width="14" Height="10"
|
2024-04-24 07:32:55 -07:00
|
|
|
Data="{StaticResource Icons.EyeClose}"
|
|
|
|
Fill="{DynamicResource Brush.FG1}"
|
2024-03-20 00:36:10 -07:00
|
|
|
Opacity=".8"/>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.toggle_untracked:pressed">
|
|
|
|
<Setter Property="RenderTransform" Value="scale(1)"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.toggle_untracked:checked /template/ Path#PART_IndicatorIcon">
|
|
|
|
<Setter Property="Data" Value="{StaticResource Icons.Eye}"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="ToggleButton.toggle_untracked:pointerover /template/ Path#PART_IndicatorIcon">
|
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
</Style>
|
2024-07-14 00:55:15 -07:00
|
|
|
|
|
|
|
<Style Selector="Slider">
|
|
|
|
<Style.Resources>
|
|
|
|
<Thickness x:Key="SliderTopHeaderMargin">0,0,0,4</Thickness>
|
|
|
|
<GridLength x:Key="SliderPreContentMargin">0</GridLength>
|
|
|
|
<GridLength x:Key="SliderPostContentMargin">0</GridLength>
|
|
|
|
<CornerRadius x:Key="SliderThumbCornerRadius">8</CornerRadius>
|
|
|
|
<x:Double x:Key="SliderHorizontalThumbWidth">16</x:Double>
|
|
|
|
<x:Double x:Key="SliderHorizontalThumbHeight">16</x:Double>
|
|
|
|
</Style.Resources>
|
|
|
|
</Style>
|
2024-03-20 00:36:10 -07:00
|
|
|
|
|
|
|
<Style Selector="TabItem">
|
|
|
|
<Setter Property="FontSize" Value="14"/>
|
|
|
|
<Setter Property="Padding" Value="10,0"/>
|
|
|
|
<Setter Property="MinHeight" Value="24"/>
|
2024-05-20 20:06:05 -07:00
|
|
|
<Setter Property="Opacity" Value="1"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
|
|
|
|
<Style.Resources>
|
|
|
|
<x:Double x:Key="TabItemPipeThickness">1</x:Double>
|
|
|
|
</Style.Resources>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="TabItem:pointerover TextBlock.tab_header">
|
2024-05-20 20:06:05 -07:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
|
|
|
<Setter Property="Opacity" Value="1"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="TabItem:selected TextBlock.tab_header">
|
2024-05-20 20:06:05 -07:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.Accent}"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="DataGrid /template/ Rectangle#PART_ColumnHeadersAndRowsSeparator">
|
|
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="DataGridCell:focus /template/ Grid#FocusVisual">
|
|
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="DataGridRow /template/ Rectangle#PART_BottomGridLine">
|
|
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="DataGridRow /template/ DataGridDetailsPresenter#PART_DetailsPresenter">
|
|
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="TreeViewItem">
|
|
|
|
<Style.Resources>
|
|
|
|
<x:Double x:Key="TreeViewItemIndent">16</x:Double>
|
|
|
|
</Style.Resources>
|
|
|
|
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
<Setter Property="MinHeight" Value="24" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<ControlTemplate>
|
|
|
|
<StackPanel>
|
|
|
|
<Border Name="PART_LayoutRoot"
|
2024-06-04 02:29:08 -07:00
|
|
|
Background="Transparent"
|
|
|
|
BorderThickness="0"
|
|
|
|
CornerRadius="0"
|
2024-04-24 07:32:55 -07:00
|
|
|
MinHeight="{TemplateBinding MinHeight}"
|
|
|
|
TemplatedControl.IsTemplateFocusTarget="True">
|
2024-06-04 02:29:08 -07:00
|
|
|
<Grid>
|
|
|
|
<Border Name="PART_Background" CornerRadius="{TemplateBinding CornerRadius}" Background="Transparent"/>
|
|
|
|
|
|
|
|
<Grid Name="PART_Header" ColumnDefinitions="16,*" Margin="{TemplateBinding Level, Mode=OneWay, Converter={StaticResource TreeViewItemLeftMarginConverter}}">
|
|
|
|
<Panel Name="PART_ExpandCollapseChevronContainer">
|
|
|
|
<ToggleButton Name="PART_ExpandCollapseChevron"
|
|
|
|
Classes="tree_expander"
|
2024-04-24 07:32:55 -07:00
|
|
|
Focusable="False"
|
2024-06-04 02:29:08 -07:00
|
|
|
HorizontalAlignment="Center"
|
2024-07-11 20:01:02 -07:00
|
|
|
IsChecked="{TemplateBinding IsExpanded, Mode=TwoWay}"/>
|
2024-06-04 02:29:08 -07:00
|
|
|
</Panel>
|
|
|
|
<ContentPresenter Name="PART_HeaderPresenter"
|
|
|
|
Grid.Column="1"
|
|
|
|
Focusable="False"
|
|
|
|
Background="Transparent"
|
|
|
|
Content="{TemplateBinding Header}"
|
|
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
|
|
|
Margin="{TemplateBinding Padding}" />
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Border>
|
|
|
|
<ItemsPresenter Name="PART_ItemsPresenter"
|
2024-04-24 07:32:55 -07:00
|
|
|
IsVisible="{TemplateBinding IsExpanded}"
|
|
|
|
ItemsPanel="{TemplateBinding ItemsPanel}" />
|
2024-03-20 00:36:10 -07:00
|
|
|
</StackPanel>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
<Style Selector="^ /template/ Border#PART_LayoutRoot:pointerover">
|
2024-06-04 02:29:08 -07:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^ /template/ Border#PART_LayoutRoot:pointerover Border#PART_Background">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.AccentHovered}" />
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="^:selected /template/ Border#PART_LayoutRoot">
|
2024-06-04 02:29:08 -07:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^:selected /template/ Border#PART_LayoutRoot Border#PART_Background">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.Accent}" />
|
|
|
|
<Setter Property="Opacity" Value=".4"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^:selected /template/ Border#PART_LayoutRoot:pointerover Border#PART_Background">
|
2024-05-20 19:54:19 -07:00
|
|
|
<Setter Property="Background" Value="{DynamicResource Brush.Accent}" />
|
2024-06-04 02:29:08 -07:00
|
|
|
<Setter Property="Opacity" Value=".65"/>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Style>
|
|
|
|
</Style>
|
2024-05-28 06:19:53 -07:00
|
|
|
|
2024-06-14 00:46:52 -07:00
|
|
|
<Style Selector="NumericUpDown">
|
|
|
|
<Style Selector="^ /template/ ButtonSpinner#PART_Spinner">
|
|
|
|
<Setter Property="MinHeight" Value="0"/>
|
|
|
|
<Setter Property="Height" Value="28"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^ /template/ TextBox#PART_TextBox">
|
|
|
|
<Setter Property="MinHeight" Value="0"/>
|
|
|
|
<Setter Property="Height" Value="28"/>
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^:focus-within /template/ ButtonSpinner#PART_Spinner">
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^ /template/ TextBox#PART_TextBox /template/ Border#PART_BorderElement">
|
|
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
|
|
</Style>
|
|
|
|
</Style>
|
2024-03-20 00:36:10 -07:00
|
|
|
</Styles>
|