mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
413 lines
20 KiB
XML
413 lines
20 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:converters="clr-namespace:Flow.Launcher.Converters"
|
|
xmlns:core="clr-namespace:Flow.Launcher.Core.Resource;assembly=Flow.Launcher.Core">
|
|
<converters:BorderClipConverter x:Key="BorderClipConverter" />
|
|
<converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
|
|
<converters:TextConverter x:Key="TextConverter" />
|
|
<core:TranslationConverter x:Key="TranslationConverter" />
|
|
|
|
<Style x:Key="StoreItemFocusVisualStyleKey">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle
|
|
Margin="0"
|
|
Stroke="Black"
|
|
StrokeThickness="2" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="SwitchFocusVisualStyleKey">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle
|
|
Margin="-8,-4,-8,-4"
|
|
RadiusX="5"
|
|
RadiusY="5"
|
|
Stroke="{DynamicResource Color05B}"
|
|
StrokeThickness="2" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="SettingGrid" TargetType="ItemsControl">
|
|
<Setter Property="Focusable" Value="False" />
|
|
<Setter Property="Margin" Value="0" />
|
|
<Setter Property="ItemsPanel">
|
|
<Setter.Value>
|
|
<ItemsPanelTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition
|
|
Width="auto"
|
|
MinWidth="20"
|
|
MaxWidth="60" />
|
|
<ColumnDefinition Width="8*" />
|
|
<ColumnDefinition Width="Auto" MinWidth="30" />
|
|
</Grid.ColumnDefinitions>
|
|
</Grid>
|
|
</ItemsPanelTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="SettingGroupBox" TargetType="{x:Type Border}">
|
|
<Setter Property="Background" Value="{DynamicResource Color00B}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="5" />
|
|
<Setter Property="Margin" Value="0,5,0,0" />
|
|
<Setter Property="Padding" Value="0,15,0,15" />
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
</Style>
|
|
<Style x:Key="SettingTitleLabel" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="Foreground" Value="{DynamicResource Color05B}" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
<Setter Property="TextWrapping" Value="Wrap" />
|
|
</Style>
|
|
|
|
<Style x:Key="SettingSubTitleLabel" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="Foreground" Value="{DynamicResource Color04B}" />
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
<Setter Property="Padding" Value="0,0,24,0" />
|
|
<Setter Property="TextWrapping" Value="WrapWithOverflow" />
|
|
</Style>
|
|
<Style x:Key="TextPanel" TargetType="{x:Type StackPanel}">
|
|
<Setter Property="Grid.Column" Value="1" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
<Setter Property="Width" Value="Auto" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
</Style>
|
|
<Style
|
|
x:Key="SideControlCheckBox"
|
|
BasedOn="{StaticResource DefaultCheckBoxStyle}"
|
|
TargetType="{x:Type CheckBox}">
|
|
<Setter Property="Width" Value="24" />
|
|
<Setter Property="Grid.Column" Value="2" />
|
|
<Setter Property="Margin" Value="0,4,10,4" />
|
|
<Setter Property="LayoutTransform">
|
|
<Setter.Value>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="SideTextAbout" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="HorizontalAlignment" Value="Right" />
|
|
<Setter Property="Grid.Column" Value="1" />
|
|
<Setter Property="Margin" Value="0,0,-18,0" />
|
|
</Style>
|
|
|
|
|
|
<Style x:Key="logo" TargetType="{x:Type TabItem}">
|
|
<!--#region Logo Style-->
|
|
<Setter Property="Margin" Value="0" />
|
|
<Setter Property="HorizontalAlignment" Value="center" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="black" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="Focusable" Value="false" />
|
|
<Setter Property="Cursor" Value="Arrow" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Border>
|
|
<Grid>
|
|
<Grid>
|
|
<Border
|
|
x:Name="Spacer"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
Margin="0,10,5,0"
|
|
Padding="0,0,0,0"
|
|
BorderBrush="Transparent"
|
|
BorderThickness="0">
|
|
<Border
|
|
x:Name="border"
|
|
Background="Transparent"
|
|
CornerRadius="5">
|
|
<ContentPresenter
|
|
x:Name="ContentSite"
|
|
Margin="12,12,0,12"
|
|
HorizontalAlignment="LEFT"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header"
|
|
TextBlock.Foreground="#000" />
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="Transparent" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="transparent" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<!--#endregion-->
|
|
</Style>
|
|
<Style x:Key="NavTabItem" TargetType="{x:Type TabItem}">
|
|
<Setter Property="DockPanel.Dock" Value="Top" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid>
|
|
<Border
|
|
x:Name="border"
|
|
Height="40"
|
|
Margin="14,4,8,4"
|
|
Padding="0,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
Background="{DynamicResource Color01B}"
|
|
CornerRadius="5">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="4" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Rectangle
|
|
x:Name="Bullet"
|
|
Grid.Column="0"
|
|
Width="4"
|
|
Height="18"
|
|
Margin="0,11,0,11"
|
|
Fill="{DynamicResource ToggleSwitchFillOn}"
|
|
RadiusX="2"
|
|
RadiusY="2"
|
|
Visibility="Hidden" />
|
|
<ContentPresenter
|
|
x:Name="ContentSite"
|
|
Grid.Column="1"
|
|
Margin="12,11,18,11"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header"
|
|
TextBlock.Foreground="#000" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="{DynamicResource Color06B}" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="{DynamicResource Color06B}" />
|
|
<Setter TargetName="Bullet" Property="Visibility" Value="Visible" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="PluginList" TargetType="ListBoxItem">
|
|
<Setter Property="Background" Value="{DynamicResource Color00B}" />
|
|
<Setter Property="Padding" Value="0,0,0,0" />
|
|
<Setter Property="UseLayoutRounding" Value="True" />
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
<Setter Property="Margin" Value="0,0,18,5" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
|
<!--#region Template for blue highlight win10-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
|
<Border
|
|
x:Name="Bd"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="5"
|
|
UseLayoutRounding="True">
|
|
<ContentPresenter
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsMouseOver" Value="True" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource Color07B}" />
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
|
<Setter TargetName="Bd" Property="CornerRadius" Value="5" />
|
|
|
|
</MultiTrigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="Selector.IsSelectionActive" Value="False" />
|
|
<Condition Property="IsSelected" Value="True" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource Color00B}" />
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
|
<Setter TargetName="Bd" Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
|
</MultiTrigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="Selector.IsSelectionActive" Value="True" />
|
|
<Condition Property="IsSelected" Value="True" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource Color00B}" />
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
|
<Setter TargetName="Bd" Property="CornerRadius" Value="5" />
|
|
<Setter TargetName="Bd" Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
|
</MultiTrigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="Bd" Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<!--#endregion-->
|
|
<Setter Property="Height" Value="Auto" />
|
|
</Style>
|
|
|
|
<!--#region PluginStore Style-->
|
|
<Style x:Key="StoreList" TargetType="ListViewItem">
|
|
<Setter Property="Padding" Value="0,0,0,0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
<Setter Property="Margin" Value="0,0,8,8" />
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
|
<!--#region Template for blue highlight win10-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
|
<Border
|
|
x:Name="Bd"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="5"
|
|
SnapsToDevicePixels="True"
|
|
UseLayoutRounding="True">
|
|
<ContentPresenter
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<!--#endregion-->
|
|
</Style>
|
|
|
|
<Style
|
|
x:Key="PluginListStyle"
|
|
BasedOn="{StaticResource {x:Type ListBox}}"
|
|
TargetType="ListBox">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Items.Count}" Value="0">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid Margin="20,0,0,0">
|
|
<StackPanel>
|
|
<TextBlock
|
|
Margin="0,20,0,4"
|
|
FontWeight="Bold"
|
|
Text="{DynamicResource searchplugin_Noresult_Title}" />
|
|
<TextBlock Text="{DynamicResource searchplugin_Noresult_Subtitle}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style
|
|
x:Key="StoreListStyle"
|
|
BasedOn="{StaticResource {x:Type ListBox}}"
|
|
TargetType="ListBox">
|
|
<Setter Property="Background" Value="{DynamicResource Color01B}" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Items.Count}" Value="0">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid Margin="20,0,0,0">
|
|
<StackPanel>
|
|
<TextBlock
|
|
Margin="0,20,0,4"
|
|
FontWeight="Bold"
|
|
Text="{DynamicResource searchplugin_Noresult_Title}" />
|
|
<TextBlock Text="{DynamicResource searchplugin_Noresult}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<!-- For Tab Header responsive Width -->
|
|
<Style x:Key="NavTabControl" TargetType="{x:Type TabControl}">
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
<Setter Property="VerticalContentAlignment" Value="Top" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabControl}">
|
|
<Grid
|
|
x:Name="templateRoot"
|
|
ClipToBounds="true"
|
|
SnapsToDevicePixels="true">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition
|
|
x:Name="ColumnDefinition0"
|
|
Width="Auto"
|
|
MinWidth="230" />
|
|
<ColumnDefinition x:Name="ColumnDefinition1" Width="7.5*" />
|
|
</Grid.ColumnDefinitions>
|
|
<!-- here is the edit -->
|
|
<DockPanel
|
|
x:Name="headerPanel"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="2,2,2,0"
|
|
Panel.ZIndex="1"
|
|
Background="Transparent"
|
|
IsItemsHost="true"
|
|
LastChildFill="False" />
|
|
<Border Grid.Column="1">
|
|
<ContentPresenter
|
|
x:Name="PART_SelectedContentHost"
|
|
Grid.Column="1"
|
|
ContentSource="SelectedContent" />
|
|
</Border>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|