refactor: cleaup and implemented mvvm

This commit is contained in:
tux
2025-07-05 06:18:00 +05:30
parent 896b2a9f40
commit 7ffdfea18f
13 changed files with 249 additions and 210 deletions

13
models/MainViewModel.cs Normal file
View File

@@ -0,0 +1,13 @@
using CommunityToolkit.Mvvm.ComponentModel;
namespace highminded.models;
public partial class MainViewModel : ObservableObject
{
[ObservableProperty] private string _appName = "High Minded";
[ObservableProperty] private string _hideShortcutKey = "SHIFT + \\";
[ObservableProperty] private string _screenshotShortcutKey = "SHIFT + S";
[ObservableProperty] private string _audioShortcutKey = "SHIFT + A";
[ObservableProperty] private bool _isRecording = false;
[ObservableProperty] private bool _isHidden = true;
}