mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
UI - Updated Fluent Avalonia and made the titlebar work well on Linux
This commit is contained in:
1 parent
013bc1c316
commit
ea9b87967d
29 files changed
+376
-222
No files matched your search
@@ -47,7 +47,6 @@ namespace Artemis.Core
|
||||
/// </summary>
|
||||
public List<ScriptConfiguration> ScriptConfigurations { get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a boolean indicating whether this profile is freshly imported i.e. no changes have been made to it
|
||||
/// since import
|
||||
|
||||
@@ -130,6 +130,16 @@ namespace Artemis.Core
|
||||
/// </summary>
|
||||
public event EventHandler<ProfileElementEventArgs>? ChildRemoved;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when a child was added to the <see cref="Children" /> list of this element or any of it's descendents.
|
||||
/// </summary>
|
||||
public event EventHandler<ProfileElementEventArgs>? DescendentAdded;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when a child was removed from the <see cref="Children" /> list of this element or any of it's descendents.
|
||||
/// </summary>
|
||||
public event EventHandler<ProfileElementEventArgs>? DescendentRemoved;
|
||||
|
||||
/// <summary>
|
||||
/// Invokes the <see cref="ChildAdded" /> event
|
||||
/// </summary>
|
||||
@@ -146,6 +156,24 @@ namespace Artemis.Core
|
||||
ChildRemoved?.Invoke(this, new ProfileElementEventArgs(child));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invokes the <see cref="DescendentAdded" /> event
|
||||
/// </summary>
|
||||
protected virtual void OnDescendentAdded(ProfileElement child)
|
||||
{
|
||||
DescendentAdded?.Invoke(this, new ProfileElementEventArgs(child));
|
||||
Parent?.OnDescendentAdded(child);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invokes the <see cref="DescendentRemoved" /> event
|
||||
/// </summary>
|
||||
protected virtual void OnDescendentRemoved(ProfileElement child)
|
||||
{
|
||||
DescendentRemoved?.Invoke(this, new ProfileElementEventArgs(child));
|
||||
Parent?.OnDescendentRemoved(child);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disposes the profile element
|
||||
/// </summary>
|
||||
@@ -200,6 +228,7 @@ namespace Artemis.Core
|
||||
}
|
||||
|
||||
OnChildAdded(child);
|
||||
OnDescendentAdded(child);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -220,6 +249,7 @@ namespace Artemis.Core
|
||||
}
|
||||
|
||||
OnChildRemoved(child);
|
||||
OnDescendentRemoved(child);
|
||||
}
|
||||
|
||||
private void StreamlineOrder()
|
||||
|
||||
Reference in new issue
Block a user