mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
UI VM factories - Shortened names for readibility
Layer properties - Ensure only LayerBrushes can add properties and make sure that method instantiates a keyframe engine Layer properties UI - Respond to properties being added/removed
This commit is contained in:
1 parent
b3e1ba6d1c
commit
f4c1c9de3d
29 files changed
+417
-303
No files matched your search
@@ -8,14 +8,14 @@ namespace Artemis.UI.Screens.Module
|
||||
{
|
||||
public class ModuleRootViewModel : Conductor<Screen>.Collection.OneActive
|
||||
{
|
||||
private readonly IProfileEditorViewModelFactory _profileEditorViewModelFactory;
|
||||
private readonly IProfileEditorVmFactory _profileEditorVmFactory;
|
||||
|
||||
public ModuleRootViewModel(Core.Plugins.Abstract.Module module, IProfileEditorViewModelFactory profileEditorViewModelFactory)
|
||||
public ModuleRootViewModel(Core.Plugins.Abstract.Module module, IProfileEditorVmFactory profileEditorVmFactory)
|
||||
{
|
||||
DisplayName = module?.DisplayName;
|
||||
Module = module;
|
||||
|
||||
_profileEditorViewModelFactory = profileEditorViewModelFactory;
|
||||
_profileEditorVmFactory = profileEditorVmFactory;
|
||||
|
||||
Task.Run(AddTabsAsync);
|
||||
}
|
||||
@@ -30,7 +30,7 @@ namespace Artemis.UI.Screens.Module
|
||||
// Create the profile editor and module VMs
|
||||
if (Module is ProfileModule profileModule)
|
||||
{
|
||||
var profileEditor = _profileEditorViewModelFactory.Create(profileModule);
|
||||
var profileEditor = _profileEditorVmFactory.Create(profileModule);
|
||||
Items.Add(profileEditor);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user