- Add Reset Button Function

- Fix Conflict
This commit is contained in:
DB p 2024-05-25 16:16:02 +09:00
parent acde180a46
commit cedf0c6c1e
4 changed files with 31 additions and 1 deletions

View file

@ -521,6 +521,7 @@
<ContentControl Content="{Binding Result.PreviewPanel.Value}" /> <ContentControl Content="{Binding Result.PreviewPanel.Value}" />
</Border> </Border>
</Grid> </Grid>
</Grid>
</StackPanel> </StackPanel>
</Border> </Border>
</Window> </Window>

View file

@ -470,4 +470,28 @@ public partial class SettingsPaneThemeViewModel : BaseModel
{ {
Settings = settings; 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;
}
} }

View file

@ -255,7 +255,7 @@
Width="140" Width="140"
Margin="8" Margin="8"
HorizontalAlignment="Center" HorizontalAlignment="Center"
Content="{DynamicResource resetCustomize}" /> Content="{DynamicResource resetCustomize}" Click="Reset_Click" />
</StackPanel> </StackPanel>
</ScrollViewer> </ScrollViewer>

View file

@ -28,4 +28,9 @@ public partial class SettingsPaneTheme : Page
{ {
_viewModel.UpdateColorScheme(); _viewModel.UpdateColorScheme();
} }
private void Reset_Click(object sender, System.Windows.RoutedEventArgs e)
{
_viewModel.ResetCustomize();
}
} }