2025-07-11 09:20:23 +08:00
|
|
|
|
using WPFluent.Appearance;
|
2025-04-24 20:56:44 +08:00
|
|
|
|
using WPFluent.Gallery.ViewModels.Windows;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WPFluent.Gallery.Views.Windows;
|
|
|
|
|
|
|
2025-05-05 17:04:06 +08:00
|
|
|
|
public partial class MainWindow
|
2025-04-24 20:56:44 +08:00
|
|
|
|
{
|
2025-05-05 17:04:06 +08:00
|
|
|
|
public MainWindow()
|
2025-04-24 20:56:44 +08:00
|
|
|
|
{
|
2025-05-05 17:04:06 +08:00
|
|
|
|
ViewModel = new MainWindowViewModel();
|
|
|
|
|
|
DataContext = ViewModel;
|
2025-04-24 20:56:44 +08:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
public MainWindowViewModel ViewModel { get; }
|
2025-07-11 09:20:23 +08:00
|
|
|
|
|
|
|
|
|
|
private void TitleBar_HelpClicked(TitleBar sender, RoutedEventArgs args)
|
|
|
|
|
|
{
|
|
|
|
|
|
var theme = ThemeManager.GetAppTheme();
|
|
|
|
|
|
ThemeManager.ChangeAppTheme(theme
|
|
|
|
|
|
== ThemeType.Light ? ThemeType.Dark : ThemeType.Light);
|
|
|
|
|
|
//var res = Application.Current.Resources;
|
|
|
|
|
|
}
|
2025-04-24 20:56:44 +08:00
|
|
|
|
}
|