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:
parent
f1dfb4aad8
commit
e8bcff542a
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user