File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Flow.Launcher.Core/Resource Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,13 @@ public bool ChangeTheme(string theme)
85
85
86
86
Settings . Theme = theme ;
87
87
88
+ // reload all resources even if the theme itself hasn't changed in order to pickup changes
89
+ // to things like fonts
90
+ UpdateResourceDictionary ( GetResourceDictionary ( ) ) ;
91
+
88
92
//always allow re-loading default theme, in case of failure of switching to a new theme from default theme
89
93
if ( _oldTheme != theme || theme == defaultTheme )
90
94
{
91
- UpdateResourceDictionary ( GetResourceDictionary ( ) ) ;
92
95
_oldTheme = Path . GetFileNameWithoutExtension ( _oldResource . Source . AbsolutePath ) ;
93
96
}
94
97
Original file line number Diff line number Diff line change 915
915
Padding =" 0,0,0,0"
916
916
Background =" {DynamicResource Color01B}" >
917
917
<ListBox
918
+ Name =" Plugins"
918
919
Width =" Auto"
919
920
Margin =" 5,0,0,0"
920
921
Padding =" 0,0,7,0"
926
927
ScrollViewer.HorizontalScrollBarVisibility=" Disabled"
927
928
SelectedItem =" {Binding SelectedPlugin}"
928
929
SelectionChanged =" SelectedPluginChanged"
929
- SnapsToDevicePixels =" True"
930
- Name =" Plugins" >
930
+ SnapsToDevicePixels =" True" >
931
931
<ListBox .ItemsPanel>
932
932
<ItemsPanelTemplate >
933
933
<StackPanel Margin =" 0,0,0,18" />
1116
1116
Margin =" 0"
1117
1117
Padding =" 1"
1118
1118
VerticalAlignment =" Stretch"
1119
- Content =" {Binding SettingControl}"
1120
- SizeChanged =" ItemSizeChanged" />
1119
+ Content =" {Binding SettingControl}"
1120
+ SizeChanged =" ItemSizeChanged" />
1121
1121
</StackPanel >
1122
1122
1123
1123
<StackPanel >
1127
1127
VerticalAlignment =" Center"
1128
1128
BorderThickness =" 0,1,0,0"
1129
1129
CornerRadius =" 0"
1130
- Style =" {DynamicResource SettingGroupBox}"
1131
- Visibility =" {Binding ActionKeywordsVisibility}" >
1130
+ Style =" {DynamicResource SettingGroupBox}" >
1132
1131
<ItemsControl Style =" {DynamicResource SettingGrid}" >
1133
1132
<StackPanel
1134
1133
Margin =" 0,0,-14,0"
You can’t perform that action at this time.
0 commit comments