29 lines
863 B
C#
29 lines
863 B
C#
using System.Windows;
|
|
using CursorLang.Settings.Services;
|
|
using CursorLang.Settings.ViewModels;
|
|
|
|
namespace CursorLang.Settings.Views;
|
|
|
|
/// <summary>
|
|
/// The settings window of the application.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Both buttons in the title bar mean what they say now: the window used to hide into
|
|
/// the tray, because closing it would have thrown away the visual tree the background
|
|
/// half was still using. The background half is a separate process and no longer cares,
|
|
/// so closing closes and the process ends with it.
|
|
/// </remarks>
|
|
public partial class MainWindow : Window
|
|
{
|
|
public MainWindow(
|
|
SettingsViewModel viewModel,
|
|
IThemeService theme,
|
|
MainWindowPlacement placement)
|
|
{
|
|
InitializeComponent();
|
|
DataContext = viewModel;
|
|
theme.Register(this);
|
|
placement.Attach(this);
|
|
}
|
|
}
|