From 48acb10db4f2e069f3036e5181486dd1b236c6da Mon Sep 17 00:00:00 2001 From: SpoinkyNL Date: Thu, 14 Nov 2019 23:36:57 +0100 Subject: [PATCH] Things, I need this on a different PC --- src/Artemis.UI/Artemis.UI.csproj | 4 +- .../Screens/SurfaceEditorViewModel.cs | 4 +- .../ProfileEditor/ProfileEditorView.xaml | 48 +++++++++++-------- .../Views/Screens/SurfaceEditorView.xaml | 10 ++-- 4 files changed, 36 insertions(+), 30 deletions(-) diff --git a/src/Artemis.UI/Artemis.UI.csproj b/src/Artemis.UI/Artemis.UI.csproj index 50e19fad7..5127bd6a9 100644 --- a/src/Artemis.UI/Artemis.UI.csproj +++ b/src/Artemis.UI/Artemis.UI.csproj @@ -311,9 +311,7 @@ - - - + diff --git a/src/Artemis.UI/ViewModels/Screens/SurfaceEditorViewModel.cs b/src/Artemis.UI/ViewModels/Screens/SurfaceEditorViewModel.cs index d92c4c98d..b1c8b38d0 100644 --- a/src/Artemis.UI/ViewModels/Screens/SurfaceEditorViewModel.cs +++ b/src/Artemis.UI/ViewModels/Screens/SurfaceEditorViewModel.cs @@ -224,9 +224,9 @@ namespace Artemis.UI.ViewModels.Screens private Surface _selectedSurface; // ReSharper disable once UnusedMember.Global - Called from view - public void EditorGridMouseClick(object sender, MouseEventArgs e) + public void EditorGridMouseClick(object sender, MouseButtonEventArgs e) { - if (IsPanKeyDown()) + if (IsPanKeyDown() || e.ChangedButton == MouseButton.Right) return; var position = e.GetPosition((IInputElement) sender); diff --git a/src/Artemis.UI/Views/Controls/ProfileEditor/ProfileEditorView.xaml b/src/Artemis.UI/Views/Controls/ProfileEditor/ProfileEditorView.xaml index 9916eee04..92005f7b3 100644 --- a/src/Artemis.UI/Views/Controls/ProfileEditor/ProfileEditorView.xaml +++ b/src/Artemis.UI/Views/Controls/ProfileEditor/ProfileEditorView.xaml @@ -30,18 +30,17 @@ - + - + - - The profile defines what colors the LEDs will have. Multiple groups of LEDs are defined into layers. On these layers you can apply effects. + + The profile defines what colors the LEDs will have. Multiple groups of LEDs are defined into layers. On these layers you can apply effects. - + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/src/Artemis.UI/Views/Screens/SurfaceEditorView.xaml b/src/Artemis.UI/Views/Screens/SurfaceEditorView.xaml index 8a3097815..d2c36c23e 100644 --- a/src/Artemis.UI/Views/Screens/SurfaceEditorView.xaml +++ b/src/Artemis.UI/Views/Screens/SurfaceEditorView.xaml @@ -3,12 +3,10 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:screens="clr-namespace:Artemis.UI.ViewModels.Screens" xmlns:s="https://github.com/canton7/Stylet" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:models="clr-namespace:Artemis.Core.Models.Surface;assembly=Artemis.Core" mc:Ignorable="d" - d:DataContext="{d:DesignInstance screens:SurfaceEditorViewModel}" d:DesignHeight="600" d:DesignWidth="600"> @@ -33,8 +31,8 @@ - - The surface is a digital representation of your LED setup. Set this up accurately and effects will seamlessly move from one device to the other. + + The surface is a digital representation of your LED setup. Set this up accurately and effects will seamlessly move from one device to the other. @@ -177,7 +175,7 @@ - + @@ -226,7 +224,7 @@ - +