mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using CommunityToolkit.Mvvm.DependencyInjection;
|
|
using Flow.Launcher.Infrastructure.UserSettings;
|
|
using Flow.Launcher.Plugin;
|
|
|
|
namespace Flow.Launcher.ViewModel;
|
|
|
|
public partial class SettingWindowViewModel : BaseModel
|
|
{
|
|
public readonly Settings _settings;
|
|
|
|
public SettingWindowViewModel(Settings settings)
|
|
{
|
|
_settings = settings;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Save Flow settings. Plugins settings are not included.
|
|
/// </summary>
|
|
public void Save()
|
|
{
|
|
_settings.Save();
|
|
}
|
|
|
|
public double SettingWindowWidth
|
|
{
|
|
get => _settings.SettingWindowWidth;
|
|
set => _settings.SettingWindowWidth = value;
|
|
}
|
|
|
|
public double SettingWindowHeight
|
|
{
|
|
get => _settings.SettingWindowHeight;
|
|
set => _settings.SettingWindowHeight = value;
|
|
}
|
|
|
|
public double? SettingWindowTop
|
|
{
|
|
get => _settings.SettingWindowTop;
|
|
set => _settings.SettingWindowTop = value;
|
|
}
|
|
|
|
public double? SettingWindowLeft
|
|
{
|
|
get => _settings.SettingWindowLeft;
|
|
set => _settings.SettingWindowLeft = value;
|
|
}
|
|
}
|