mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Add Reset Button Function
- Fix Conflict
This commit is contained in:
parent
acde180a46
commit
cedf0c6c1e
4 changed files with 31 additions and 1 deletions
|
|
@ -521,6 +521,7 @@
|
|||
<ContentControl Content="{Binding Result.PreviewPanel.Value}" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Window>
|
||||
|
|
|
|||
|
|
@ -470,4 +470,28 @@ public partial class SettingsPaneThemeViewModel : BaseModel
|
|||
{
|
||||
Settings = settings;
|
||||
}
|
||||
|
||||
public void ResetCustomize()
|
||||
{
|
||||
Settings.QueryBoxFont = "Segoe UI";
|
||||
Settings.QueryBoxFontStyle = "Normal";
|
||||
Settings.QueryBoxFontWeight = "Normal";
|
||||
Settings.QueryBoxFontStretch = "Normal";
|
||||
Settings.QueryBoxFontSize = 20;
|
||||
|
||||
Settings.ResultFont = "Segoe UI";
|
||||
Settings.ResultFontStyle = "Normal";
|
||||
Settings.ResultFontWeight = "Normal";
|
||||
Settings.ResultFontStretch = "Normal";
|
||||
Settings.ResultItemFontSize = 18;
|
||||
|
||||
Settings.ResultSubFont = "Segoe UI";
|
||||
Settings.ResultSubFontStyle = "Normal";
|
||||
Settings.ResultSubFontWeight = "Normal";
|
||||
Settings.ResultSubFontStretch = "Normal";
|
||||
Settings.ResultSubItemFontSize = 14;
|
||||
|
||||
Settings.ItemHeightSize = 52;
|
||||
Settings.WindowHeightSize = 42;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@
|
|||
Width="140"
|
||||
Margin="8"
|
||||
HorizontalAlignment="Center"
|
||||
Content="{DynamicResource resetCustomize}" />
|
||||
Content="{DynamicResource resetCustomize}" Click="Reset_Click" />
|
||||
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
|
|
|||
|
|
@ -28,4 +28,9 @@ public partial class SettingsPaneTheme : Page
|
|||
{
|
||||
_viewModel.UpdateColorScheme();
|
||||
}
|
||||
|
||||
private void Reset_Click(object sender, System.Windows.RoutedEventArgs e)
|
||||
{
|
||||
_viewModel.ResetCustomize();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue