Skip to content

Commit 27b3b45

Browse files
committed
Use DefaultListBoxItemStyle for plugin item & plugin store item & Remove StoreItemFocusVisualStyleKey style
1 parent 71e0a55 commit 27b3b45

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

Flow.Launcher/Resources/SettingWindowStyle.xaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@
122122
</Style>
123123

124124
<!--#region Plugin Style-->
125-
<Style x:Key="PluginList" TargetType="ListBoxItem">
125+
<Style
126+
x:Key="PluginList"
127+
BasedOn="{StaticResource DefaultListBoxItemStyle}"
128+
TargetType="ListBoxItem">
126129
<Setter Property="Background" Value="{DynamicResource Color00B}" />
127130
<Setter Property="Padding" Value="0 0 0 0" />
128131
<Setter Property="UseLayoutRounding" Value="True" />
@@ -233,19 +236,10 @@
233236
</Style>
234237

235238
<!--#region PluginStore Style-->
236-
<Style x:Key="StoreItemFocusVisualStyleKey">
237-
<Setter Property="Control.Template">
238-
<Setter.Value>
239-
<ControlTemplate>
240-
<Rectangle
241-
Margin="0"
242-
Stroke="{DynamicResource Color05B}"
243-
StrokeThickness="2" />
244-
</ControlTemplate>
245-
</Setter.Value>
246-
</Setter>
247-
</Style>
248-
<Style x:Key="StoreList" TargetType="ListBoxItem">
239+
<Style
240+
x:Key="StoreList"
241+
BasedOn="{StaticResource DefaultListBoxItemStyle}"
242+
TargetType="ListBoxItem">
249243
<Setter Property="Padding" Value="0 0 0 0" />
250244
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
251245
<Setter Property="HorizontalAlignment" Value="Stretch" />

Flow.Launcher/SettingPages/Views/SettingsPanePluginStore.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@
235235
HorizontalContentAlignment="Stretch"
236236
VerticalContentAlignment="Stretch"
237237
BorderThickness="0"
238-
FocusVisualStyle="{DynamicResource StoreItemFocusVisualStyleKey}"
239238
Style="{DynamicResource StoreListItemBtnStyle}">
240239
<ui:FlyoutService.Flyout>
241240
<ui:Flyout x:Name="InstallFlyout" Placement="Bottom">

0 commit comments

Comments
 (0)