Skip to content

Commit 4865ae3

Browse files
committed
Fixed scroll wheel not working in the theme list
1 parent 87c5a17 commit 4865ae3

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,16 +407,13 @@
407407
</StackPanel>
408408
</cc:ExCard.SideContent>
409409
<ListBox
410-
Padding="18 12 18 12"
411410
HorizontalAlignment="Stretch"
412411
HorizontalContentAlignment="Stretch"
413412
Background="Transparent"
414-
BorderBrush="{DynamicResource Color03B}"
415-
BorderThickness="0 1 0 0"
416413
ItemContainerStyle="{DynamicResource ThemeList}"
417414
ItemsSource="{Binding Themes}"
418415
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
419-
ScrollViewer.VerticalScrollBarVisibility="Auto"
416+
ScrollViewer.VerticalScrollBarVisibility="Disabled"
420417
SelectedValue="{Binding SelectedTheme}">
421418
<ListBox.ItemsPanel>
422419
<ItemsPanelTemplate>
@@ -428,7 +425,8 @@
428425
<Grid
429426
Width="Auto"
430427
Height="34"
431-
Margin="0">
428+
Margin="0"
429+
Focusable="True">
432430
<StackPanel Margin="14 2 14 0" Orientation="Horizontal">
433431
<TextBlock
434432
Margin="0 0 0 0"
@@ -452,6 +450,16 @@
452450
</Grid>
453451
</DataTemplate>
454452
</ListBox.ItemTemplate>
453+
<ListBox.Template>
454+
<ControlTemplate>
455+
<Border
456+
Padding="18 12 18 12"
457+
BorderBrush="{DynamicResource Color03B}"
458+
BorderThickness="0 1 0 0">
459+
<ItemsPresenter />
460+
</Border>
461+
</ControlTemplate>
462+
</ListBox.Template>
455463
</ListBox>
456464
</cc:ExCard>
457465
<cc:HyperLink

0 commit comments

Comments
 (0)