Merge branch 'dev' into bug_1269

This commit is contained in:
Kevin Zhang 2022-08-05 14:43:55 -05:00 committed by GitHub
commit d28fbeffa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View file

@ -85,10 +85,13 @@ namespace Flow.Launcher.Core.Resource
Settings.Theme = theme;
// reload all resources even if the theme itself hasn't changed in order to pickup changes
// to things like fonts
UpdateResourceDictionary(GetResourceDictionary());
//always allow re-loading default theme, in case of failure of switching to a new theme from default theme
if (_oldTheme != theme || theme == defaultTheme)
{
UpdateResourceDictionary(GetResourceDictionary());
_oldTheme = Path.GetFileNameWithoutExtension(_oldResource.Source.AbsolutePath);
}

View file

@ -915,6 +915,7 @@
Padding="0,0,0,0"
Background="{DynamicResource Color01B}">
<ListBox
Name="Plugins"
Width="Auto"
Margin="5,0,0,0"
Padding="0,0,7,0"
@ -926,8 +927,7 @@
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
SelectedItem="{Binding SelectedPlugin}"
SelectionChanged="SelectedPluginChanged"
SnapsToDevicePixels="True"
Name="Plugins">
SnapsToDevicePixels="True">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Margin="0,0,0,18" />
@ -1116,8 +1116,8 @@
Margin="0"
Padding="1"
VerticalAlignment="Stretch"
Content="{Binding SettingControl}"
SizeChanged="ItemSizeChanged"/>
Content="{Binding SettingControl}"
SizeChanged="ItemSizeChanged" />
</StackPanel>
<StackPanel>
@ -1127,8 +1127,7 @@
VerticalAlignment="Center"
BorderThickness="0,1,0,0"
CornerRadius="0"
Style="{DynamicResource SettingGroupBox}"
Visibility="{Binding ActionKeywordsVisibility}">
Style="{DynamicResource SettingGroupBox}">
<ItemsControl Style="{DynamicResource SettingGrid}">
<StackPanel
Margin="0,0,-14,0"