1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Allow Shift to invert the Rotate button's direction

This commit is contained in:
Luke Taylor 2021-04-28 13:08:37 -04:00
parent f1dfb4aad8
commit e8bcff542a

View File

@ -104,7 +104,12 @@ namespace Artemis.UI.Shared.Screens.GradientEditor
public void RotateColorStops()
{
List<ColorStopViewModel> stops = ColorStopViewModels.OrderByDescending(x => x.OffsetFloat).ToList();
List<ColorStopViewModel> 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)
{