mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Layers - Finished effects on layers, groups still missing
Effects - Added filter effect with different SkiaSharp image filters
This commit is contained in:
1 parent
fd991112a9
commit
9fc6191015
18 files changed
+264
-55
No files matched your search
@@ -80,6 +80,8 @@ namespace Artemis.UI.Shared.Controls
|
||||
|
||||
private void InputMouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
e.Handled = true;
|
||||
|
||||
_startValue = Value;
|
||||
((IInputElement) sender).CaptureMouse();
|
||||
_mouseDragStartPoint = e.GetPosition((IInputElement) sender);
|
||||
@@ -87,6 +89,8 @@ namespace Artemis.UI.Shared.Controls
|
||||
|
||||
private void InputMouseUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
e.Handled = true;
|
||||
|
||||
var position = e.GetPosition((IInputElement) sender);
|
||||
if (position == _mouseDragStartPoint)
|
||||
DisplayInput();
|
||||
@@ -104,6 +108,8 @@ namespace Artemis.UI.Shared.Controls
|
||||
if (e.LeftButton != MouseButtonState.Pressed)
|
||||
return;
|
||||
|
||||
e.Handled = true;
|
||||
|
||||
if (!_calledDragStarted)
|
||||
{
|
||||
OnDragStarted();
|
||||
|
||||
@@ -28,6 +28,11 @@ namespace Artemis.UI.Shared.Utilities
|
||||
|
||||
return Enum.GetValues(t).Cast<Enum>().Select(e => new ValueDescription {Value = e, Description = e.Humanize()}).ToList();
|
||||
}
|
||||
|
||||
public static string HumanizeValue(Enum value)
|
||||
{
|
||||
return value.Humanize();
|
||||
}
|
||||
}
|
||||
|
||||
public class ValueDescription
|
||||
|
||||
Reference in new issue
Block a user