Skip to content

Commit 6adaca5

Browse files
Jack251970TBM13
authored andcommitted
Add & Use ThemeListStyle
1 parent 3ae9fb8 commit 6adaca5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Flow.Launcher/Resources/SettingWindowStyle.xaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@
8282
</Style>
8383

8484
<!--#region Theme Style-->
85+
<Style
86+
x:Key="ThemeListStyle"
87+
BasedOn="{StaticResource DefaultListBoxStyle}"
88+
TargetType="{x:Type ListBox}">
89+
<Setter Property="BorderBrush" Value="Transparent" />
90+
<Setter Property="Background" Value="Transparent" />
91+
<Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
92+
<Setter Property="Padding" Value="0 0 0 0" />
93+
</Style>
8594
<Style
8695
x:Key="ThemeList"
8796
BasedOn="{StaticResource DefaultListBoxItemStyle}"
@@ -136,7 +145,6 @@
136145
<Setter Property="Background" Value="{DynamicResource Color00B}" />
137146
<Setter Property="Padding" Value="0 0 0 0" />
138147
<Setter Property="UseLayoutRounding" Value="True" />
139-
<Setter Property="SnapsToDevicePixels" Value="True" />
140148
<Setter Property="Margin" Value="0 0 18 5" />
141149
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
142150
<Setter Property="BorderBrush" Value="{DynamicResource Color03B}" />

Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@
387387
ItemsSource="{Binding Themes}"
388388
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
389389
ScrollViewer.VerticalScrollBarVisibility="Disabled"
390-
SelectedValue="{Binding SelectedTheme}">
390+
SelectedValue="{Binding SelectedTheme}"
391+
Style="{DynamicResource ThemeListStyle}">
391392
<ListBox.ItemsPanel>
392393
<ItemsPanelTemplate>
393394
<WrapPanel />

0 commit comments

Comments
 (0)