Skip to content

Commit d28fbef

Browse files
authored
Merge branch 'dev' into bug_1269
2 parents ec4f3a7 + dfed91f commit d28fbef

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Flow.Launcher.Core/Resource/Theme.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,13 @@ public bool ChangeTheme(string theme)
8585

8686
Settings.Theme = theme;
8787

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+
8892
//always allow re-loading default theme, in case of failure of switching to a new theme from default theme
8993
if (_oldTheme != theme || theme == defaultTheme)
9094
{
91-
UpdateResourceDictionary(GetResourceDictionary());
9295
_oldTheme = Path.GetFileNameWithoutExtension(_oldResource.Source.AbsolutePath);
9396
}
9497

Flow.Launcher/SettingWindow.xaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@
915915
Padding="0,0,0,0"
916916
Background="{DynamicResource Color01B}">
917917
<ListBox
918+
Name="Plugins"
918919
Width="Auto"
919920
Margin="5,0,0,0"
920921
Padding="0,0,7,0"
@@ -926,8 +927,7 @@
926927
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
927928
SelectedItem="{Binding SelectedPlugin}"
928929
SelectionChanged="SelectedPluginChanged"
929-
SnapsToDevicePixels="True"
930-
Name="Plugins">
930+
SnapsToDevicePixels="True">
931931
<ListBox.ItemsPanel>
932932
<ItemsPanelTemplate>
933933
<StackPanel Margin="0,0,0,18" />
@@ -1116,8 +1116,8 @@
11161116
Margin="0"
11171117
Padding="1"
11181118
VerticalAlignment="Stretch"
1119-
Content="{Binding SettingControl}"
1120-
SizeChanged="ItemSizeChanged"/>
1119+
Content="{Binding SettingControl}"
1120+
SizeChanged="ItemSizeChanged" />
11211121
</StackPanel>
11221122

11231123
<StackPanel>
@@ -1127,8 +1127,7 @@
11271127
VerticalAlignment="Center"
11281128
BorderThickness="0,1,0,0"
11291129
CornerRadius="0"
1130-
Style="{DynamicResource SettingGroupBox}"
1131-
Visibility="{Binding ActionKeywordsVisibility}">
1130+
Style="{DynamicResource SettingGroupBox}">
11321131
<ItemsControl Style="{DynamicResource SettingGrid}">
11331132
<StackPanel
11341133
Margin="0,0,-14,0"

0 commit comments

Comments
 (0)