mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix PluginStoreItem Color (Darkmode)
This commit is contained in:
parent
fa4739821f
commit
d96e2919e6
1 changed files with 43 additions and 7 deletions
|
|
@ -94,7 +94,6 @@
|
||||||
<Setter Property="Margin" Value="0,5,0,0" />
|
<Setter Property="Margin" Value="0,5,0,0" />
|
||||||
<Setter Property="Padding" Value="0,15,0,15" />
|
<Setter Property="Padding" Value="0,15,0,15" />
|
||||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||||
|
|
||||||
</Style>
|
</Style>
|
||||||
<Style x:Key="SettingTitleLabel" TargetType="{x:Type TextBlock}">
|
<Style x:Key="SettingTitleLabel" TargetType="{x:Type TextBlock}">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource Color05B}" />
|
<Setter Property="Foreground" Value="{DynamicResource Color05B}" />
|
||||||
|
|
@ -262,9 +261,6 @@
|
||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Plugin Store Item when Selected layout for nothing -->
|
|
||||||
<Style x:Key="StoreItem" TargetType="{x:Type ToggleButton}" />
|
|
||||||
|
|
||||||
<Style x:Key="PluginList" TargetType="ListBoxItem">
|
<Style x:Key="PluginList" TargetType="ListBoxItem">
|
||||||
<Setter Property="Background" Value="{DynamicResource Color00B}" />
|
<Setter Property="Background" Value="{DynamicResource Color00B}" />
|
||||||
<Setter Property="Padding" Value="0,0,0,0" />
|
<Setter Property="Padding" Value="0,0,0,0" />
|
||||||
|
|
@ -400,6 +396,7 @@
|
||||||
x:Key="StoreListStyle"
|
x:Key="StoreListStyle"
|
||||||
BasedOn="{StaticResource {x:Type ListBox}}"
|
BasedOn="{StaticResource {x:Type ListBox}}"
|
||||||
TargetType="ListBox">
|
TargetType="ListBox">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource Color01B}" />
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
<DataTrigger Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Items.Count}" Value="0">
|
<DataTrigger Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Items.Count}" Value="0">
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
|
|
@ -1044,7 +1041,7 @@
|
||||||
<ListBox
|
<ListBox
|
||||||
Name="Plugins"
|
Name="Plugins"
|
||||||
Width="Auto"
|
Width="Auto"
|
||||||
Margin="0,0,0,0"
|
Margin="5,0,0,0"
|
||||||
Padding="0,0,7,0"
|
Padding="0,0,7,0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
Background="{DynamicResource Color01B}"
|
Background="{DynamicResource Color01B}"
|
||||||
|
|
@ -1534,7 +1531,45 @@
|
||||||
|
|
||||||
<ListView.ItemTemplate>
|
<ListView.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<!-- Hover Layout Style -->
|
<DataTemplate.Resources>
|
||||||
|
<Style x:Key="StoreListItemBtnStyle" TargetType="Button">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="Button">
|
||||||
|
<Border
|
||||||
|
x:Name="Background"
|
||||||
|
Background="{DynamicResource Color00B}"
|
||||||
|
BorderBrush="{DynamicResource Color03B}"
|
||||||
|
BorderThickness="1"
|
||||||
|
CornerRadius="4"
|
||||||
|
SnapsToDevicePixels="True">
|
||||||
|
<Border
|
||||||
|
x:Name="Border"
|
||||||
|
Padding="{TemplateBinding Padding}"
|
||||||
|
BorderThickness="1"
|
||||||
|
CornerRadius="4">
|
||||||
|
<ContentPresenter
|
||||||
|
x:Name="ContentPresenter"
|
||||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
|
Focusable="False"
|
||||||
|
RecognizesAccessKey="True"
|
||||||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter TargetName="Background" Property="Background" Value="{DynamicResource Color07B}" />
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsPressed" Value="True">
|
||||||
|
<Setter TargetName="Background" Property="Background" Value="{DynamicResource Color07B}" />
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</DataTemplate.Resources>
|
||||||
<Button
|
<Button
|
||||||
Name="StoreListItem"
|
Name="StoreListItem"
|
||||||
Margin="0"
|
Margin="0"
|
||||||
|
|
@ -1545,7 +1580,8 @@
|
||||||
VerticalContentAlignment="Stretch"
|
VerticalContentAlignment="Stretch"
|
||||||
BorderThickness="0"
|
BorderThickness="0"
|
||||||
Click="StoreListItem_Click"
|
Click="StoreListItem_Click"
|
||||||
FocusVisualStyle="{StaticResource StoreItemFocusVisualStyleKey}">
|
FocusVisualStyle="{StaticResource StoreItemFocusVisualStyleKey}"
|
||||||
|
Style="{DynamicResource StoreListItemBtnStyle}">
|
||||||
<ui:FlyoutService.Flyout>
|
<ui:FlyoutService.Flyout>
|
||||||
<ui:Flyout x:Name="InstallFlyout" Placement="Bottom">
|
<ui:Flyout x:Name="InstallFlyout" Placement="Bottom">
|
||||||
<Grid MinWidth="200">
|
<Grid MinWidth="200">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue