Skip to content

Commit 9b21e7d

Browse files
committed
Improve store item focus visual style
1 parent aa3cfb7 commit 9b21e7d

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Flow.Launcher/Resources/SettingWindowStyle.xaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@
1111

1212
<!-- Icon for Theme Type Label -->
1313
<Geometry x:Key="circle_half_stroke_solid">F1 M512,512z M0,0z M448,256C448,150,362,64,256,64L256,448C362,448,448,362,448,256z M0,256A256,256,0,1,1,512,256A256,256,0,1,1,0,256z</Geometry>
14-
<Style x:Key="StoreItemFocusVisualStyleKey">
15-
<Setter Property="Control.Template">
16-
<Setter.Value>
17-
<ControlTemplate>
18-
<Rectangle
19-
Margin="0"
20-
Stroke="Black"
21-
StrokeThickness="2" />
22-
</ControlTemplate>
23-
</Setter.Value>
24-
</Setter>
25-
</Style>
2614
<Style x:Key="SwitchFocusVisualStyleKey">
2715
<Setter Property="Control.Template">
2816
<Setter.Value>
@@ -327,6 +315,18 @@
327315
</Style>
328316

329317
<!--#region PluginStore Style-->
318+
<Style x:Key="StoreItemFocusVisualStyleKey">
319+
<Setter Property="Control.Template">
320+
<Setter.Value>
321+
<ControlTemplate>
322+
<Rectangle
323+
Margin="0"
324+
Stroke="{DynamicResource Color05B}"
325+
StrokeThickness="2" />
326+
</ControlTemplate>
327+
</Setter.Value>
328+
</Setter>
329+
</Style>
330330
<Style x:Key="StoreList" TargetType="ListBoxItem">
331331
<Setter Property="Padding" Value="0 0 0 0" />
332332
<Setter Property="HorizontalContentAlignment" Value="Stretch" />

Flow.Launcher/SettingPages/Views/SettingsPanePluginStore.xaml

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

0 commit comments

Comments
 (0)