313 lines
19 KiB
XML
313 lines
19 KiB
XML
<Application x:Class="TaskbarLauncher.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
ShutdownMode="OnExplicitShutdown">
|
|
<Application.Resources>
|
|
<Style TargetType="Button">
|
|
<Setter Property="Margin" Value="0,2"/>
|
|
<Setter Property="Padding" Value="12,8"/>
|
|
<Setter Property="MinHeight" Value="34"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Background" Value="{DynamicResource AppControlBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AppBorderBrush}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="ButtonBorder"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="10"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
RecognizesAccessKey="True"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="ButtonBorder" Property="Background" Value="{DynamicResource AppControlHoverBrush}"/>
|
|
<Setter TargetName="ButtonBorder" Property="BorderBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="ButtonBorder" Property="Background" Value="{DynamicResource AppAccentSoftBrush}"/>
|
|
<Setter TargetName="ButtonBorder" Property="BorderBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Opacity" Value="0.55"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Background" Value="{DynamicResource AppSurfaceBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AppBorderBrush}"/>
|
|
<Setter Property="CaretBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
<Setter Property="Padding" Value="9,6"/>
|
|
<Setter Property="MinHeight" Value="34"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TextBox">
|
|
<Border x:Name="TextBoxBorder"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="10">
|
|
<ScrollViewer x:Name="PART_ContentHost"
|
|
Margin="{TemplateBinding Padding}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="TextBoxBorder" Property="Background" Value="{DynamicResource AppPanelBrush}"/>
|
|
<Setter TargetName="TextBoxBorder" Property="BorderBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsKeyboardFocused" Value="True">
|
|
<Setter TargetName="TextBoxBorder" Property="Background" Value="{DynamicResource AppSurfaceBrush}"/>
|
|
<Setter TargetName="TextBoxBorder" Property="BorderBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Opacity" Value="0.55"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="ComboBox">
|
|
<Setter Property="Background" Value="{DynamicResource AppSurfaceBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AppBorderBrush}"/>
|
|
<Setter Property="Padding" Value="9,6"/>
|
|
<Setter Property="MinHeight" Value="34"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBox">
|
|
<Grid>
|
|
<ToggleButton x:Name="ToggleButton"
|
|
Focusable="False"
|
|
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ClickMode="Press"
|
|
Background="{DynamicResource AppSurfaceBrush}"
|
|
BorderBrush="{DynamicResource AppBorderBrush}">
|
|
<ToggleButton.Template>
|
|
<ControlTemplate TargetType="ToggleButton">
|
|
<Border x:Name="ComboToggleBorder"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="10">
|
|
<ContentPresenter/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="ComboToggleBorder" Property="Background" Value="{DynamicResource AppPanelBrush}"/>
|
|
<Setter TargetName="ComboToggleBorder" Property="BorderBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="ComboToggleBorder" Property="Background" Value="{DynamicResource AppAccentSoftBrush}"/>
|
|
<Setter TargetName="ComboToggleBorder" Property="BorderBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter TargetName="ComboToggleBorder" Property="Background" Value="{DynamicResource AppAccentSoftBrush}"/>
|
|
<Setter TargetName="ComboToggleBorder" Property="BorderBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</ToggleButton.Template>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="28"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter Margin="8,3,4,3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding SelectionBoxItem}"
|
|
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
|
|
ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"/>
|
|
<Path Grid.Column="1"
|
|
Width="9"
|
|
Height="5"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Fill="{DynamicResource AppTextBrush}"
|
|
Data="M 0 0 L 4.5 5 L 9 0 Z"/>
|
|
</Grid>
|
|
</ToggleButton>
|
|
<Popup x:Name="Popup"
|
|
Placement="Bottom"
|
|
AllowsTransparency="True"
|
|
Focusable="False"
|
|
IsOpen="{TemplateBinding IsDropDownOpen}"
|
|
PopupAnimation="Slide">
|
|
<Border Background="{DynamicResource AppSurfaceBrush}"
|
|
BorderBrush="{DynamicResource AppBorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="10"
|
|
Padding="3"
|
|
MinWidth="{TemplateBinding ActualWidth}"
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}">
|
|
<ScrollViewer>
|
|
<ItemsPresenter/>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</Popup>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Opacity" Value="0.55"/>
|
|
</Trigger>
|
|
<Trigger SourceName="ToggleButton" Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="ToggleButton" Property="Background" Value="{DynamicResource AppPanelBrush}"/>
|
|
<Setter TargetName="ToggleButton" Property="BorderBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
</Trigger>
|
|
<Trigger SourceName="ToggleButton" Property="IsPressed" Value="True">
|
|
<Setter TargetName="ToggleButton" Property="Background" Value="{DynamicResource AppAccentSoftBrush}"/>
|
|
<Setter TargetName="ToggleButton" Property="BorderBrush" Value="{DynamicResource AppAccentBrush}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="ComboBoxItem">
|
|
<Setter Property="Background" Value="{DynamicResource AppSurfaceBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="Padding" Value="9,7"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsHighlighted" Value="True">
|
|
<Setter Property="Background" Value="{DynamicResource AppAccentSoftBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="{DynamicResource AppAccentSoftBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style TargetType="TreeView">
|
|
<Setter Property="Background" Value="{DynamicResource AppSurfaceBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AppBorderBrush}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Padding" Value="8"/>
|
|
</Style>
|
|
<Style TargetType="TreeViewItem">
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="Background" Value="{DynamicResource AppSurfaceBrush}"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="{DynamicResource AppAccentBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppSelectedTextBrush}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style TargetType="ContextMenu">
|
|
<Setter Property="Background" Value="{DynamicResource AppSurfaceBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AppBorderBrush}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Padding" Value="2"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ContextMenu">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="10"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ItemsPresenter/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="MenuItem">
|
|
<Setter Property="Background" Value="{DynamicResource AppSurfaceBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="Padding" Value="12,8"/>
|
|
<Setter Property="MinWidth" Value="190"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="MenuItem">
|
|
<Border x:Name="MenuItemBorder"
|
|
Background="{TemplateBinding Background}"
|
|
Padding="{TemplateBinding Padding}"
|
|
CornerRadius="8">
|
|
<ContentPresenter ContentSource="Header"
|
|
RecognizesAccessKey="True"
|
|
VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsHighlighted" Value="True">
|
|
<Setter TargetName="MenuItemBorder" Property="Background" Value="{DynamicResource AppAccentSoftBrush}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Opacity" Value="0.55"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="Separator">
|
|
<Setter Property="Margin" Value="6,4"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Separator">
|
|
<Border Height="1" Background="{DynamicResource AppBorderBrush}"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="GroupBox">
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AppBorderBrush}"/>
|
|
<Setter Property="Padding" Value="12"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="GroupBox">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="1"
|
|
Margin="0,8,0,0"
|
|
Background="{DynamicResource AppSurfaceBrush}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="14"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter/>
|
|
</Border>
|
|
<Border Grid.Row="0"
|
|
HorizontalAlignment="Left"
|
|
Background="{DynamicResource AppOrangeSoftBrush}"
|
|
BorderBrush="{DynamicResource AppBorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="999"
|
|
Padding="10,4">
|
|
<ContentPresenter ContentSource="Header"
|
|
RecognizesAccessKey="True"/>
|
|
</Border>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="CheckBox">
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
</Style>
|
|
<Style TargetType="Expander">
|
|
<Setter Property="Foreground" Value="{DynamicResource AppTextBrush}"/>
|
|
</Style>
|
|
</Application.Resources>
|
|
</Application>
|