From e8bcff542a32990fd3361d19c414c7680ea36dfe Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Wed, 28 Apr 2021 13:08:37 -0400 Subject: [PATCH] Allow Shift to invert the Rotate button's direction --- .../Screens/GradientEditor/GradientEditorViewModel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Artemis.UI.Shared/Screens/GradientEditor/GradientEditorViewModel.cs b/src/Artemis.UI.Shared/Screens/GradientEditor/GradientEditorViewModel.cs index 7e4badcbd..84042b671 100644 --- a/src/Artemis.UI.Shared/Screens/GradientEditor/GradientEditorViewModel.cs +++ b/src/Artemis.UI.Shared/Screens/GradientEditor/GradientEditorViewModel.cs @@ -104,7 +104,12 @@ namespace Artemis.UI.Shared.Screens.GradientEditor public void RotateColorStops() { - List stops = ColorStopViewModels.OrderByDescending(x => x.OffsetFloat).ToList(); + List stops; + if (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift)) + stops = ColorStopViewModels.OrderBy(x => x.OffsetFloat).ToList(); + else + stops = ColorStopViewModels.OrderByDescending(x => x.OffsetFloat).ToList(); + float lastStopPosition = stops.Last().OffsetFloat; foreach (ColorStopViewModel stop in stops) {