mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Allow Shift to invert the Rotate button's direction
This commit is contained in:
1 parent
f1dfb4aad8
commit
e8bcff542a
1 file changed
+6
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user