File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Flow.Launcher/SettingPages Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,14 @@ public partial class SettingsPaneThemeViewModel : BaseModel
27
27
public static string LinkHowToCreateTheme => @"https://flowlauncher.com/docs/#/how-to-create-a-theme" ;
28
28
public static string LinkThemeGallery => "https://github.com/Flow-Launcher/Flow.Launcher/discussions/1438" ;
29
29
30
- public string SelectedTheme
30
+ private Theme . ThemeData _selectedTheme ;
31
+ public Theme . ThemeData SelectedTheme
31
32
{
32
- get => Settings . Theme ;
33
+ get => _selectedTheme ??= Themes . Find ( v => v . FileNameWithoutExtension == Settings . Theme ) ;
33
34
set
34
35
{
35
- ThemeManager . Instance . ChangeTheme ( value ) ;
36
+ _selectedTheme = value ;
37
+ ThemeManager . Instance . ChangeTheme ( value . FileNameWithoutExtension ) ;
36
38
37
39
if ( ThemeManager . Instance . BlurEnabled && Settings . UseDropShadowEffect )
38
40
DropShadowEffect = false ;
Original file line number Diff line number Diff line change 401
401
ItemsSource =" {Binding Themes}"
402
402
ScrollViewer.HorizontalScrollBarVisibility=" Disabled"
403
403
ScrollViewer.VerticalScrollBarVisibility=" Auto"
404
- SelectedValue =" {Binding SelectedTheme}"
405
- SelectedValuePath =" FileNameWithoutExtension" >
404
+ SelectedValue =" {Binding SelectedTheme}" >
406
405
<ListBox .ItemsPanel>
407
406
<ItemsPanelTemplate >
408
407
<WrapPanel />
You can’t perform that action at this time.
0 commit comments