refactor: rewrite Launcher

* move main tabbar to a standalone control
* simpfy notification
This commit is contained in:
leo 2024-06-26 20:56:29 +08:00
parent 1ce0d0f7bf
commit e330862ec9
No known key found for this signature in database
8 changed files with 406 additions and 349 deletions

View file

@ -24,11 +24,11 @@ namespace SourceGit.ViewModels
set => SetProperty(ref _isTabSplitterVisible, value);
}
public AvaloniaList<Models.Notification> Notifications
public AvaloniaList<Notification> Notifications
{
get;
set;
} = new AvaloniaList<Models.Notification>();
} = new AvaloniaList<Notification>();
public LauncherPage()
{
@ -53,12 +53,6 @@ namespace SourceGit.ViewModels
App.CopyText(_node.Id);
}
public void DismissNotification(object param)
{
if (param is Models.Notification notice)
Notifications.Remove(notice);
}
private RepositoryNode _node = null;
private object _data = null;
private bool _isTabSplitterVisible = true;