mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
24 lines
632 B
C#
24 lines
632 B
C#
using Artemis.Core.LayerEffects;
|
|
using Avalonia;
|
|
using Avalonia.Input;
|
|
using Avalonia.Markup.Xaml;
|
|
using Avalonia.ReactiveUI;
|
|
|
|
namespace Artemis.UI.Screens.ProfileEditor.Properties.Dialogs;
|
|
|
|
public partial class AddEffectView : ReactiveUserControl<AddEffectViewModel>
|
|
{
|
|
public AddEffectView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
|
|
private void InputElement_OnPointerReleased(object? sender, PointerReleasedEventArgs e)
|
|
{
|
|
if (sender is not IDataContextProvider {DataContext: LayerEffectDescriptor descriptor} || ViewModel == null)
|
|
return;
|
|
|
|
ViewModel?.AddLayerEffect(descriptor);
|
|
}
|
|
} |