diff --git a/src/Artemis.UI/Artemis.UI.csproj b/src/Artemis.UI/Artemis.UI.csproj index bcea98876..3cfd90f1c 100644 --- a/src/Artemis.UI/Artemis.UI.csproj +++ b/src/Artemis.UI/Artemis.UI.csproj @@ -147,6 +147,7 @@ + diff --git a/src/Artemis.UI/Converters/InverseBooleanConverter.cs b/src/Artemis.UI/Converters/InverseBooleanConverter.cs new file mode 100644 index 000000000..c183dcf51 --- /dev/null +++ b/src/Artemis.UI/Converters/InverseBooleanConverter.cs @@ -0,0 +1,29 @@ +using System; +using System.Globalization; +using System.Windows.Data; + +namespace Artemis.UI.Converters +{ + [ValueConversion(typeof(bool), typeof(bool))] + public class InverseBooleanConverter : IValueConverter + { + #region IValueConverter Members + + public object Convert(object value, Type targetType, object parameter, + CultureInfo culture) + { + if (targetType != typeof(bool)) + throw new InvalidOperationException("The target must be a boolean"); + + return !(bool) value; + } + + public object ConvertBack(object value, Type targetType, object parameter, + CultureInfo culture) + { + throw new NotSupportedException(); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/Artemis.UI/Screens/Module/ProfileEditor/ProfileEditorView.xaml b/src/Artemis.UI/Screens/Module/ProfileEditor/ProfileEditorView.xaml index 199b7e00e..11d47b754 100644 --- a/src/Artemis.UI/Screens/Module/ProfileEditor/ProfileEditorView.xaml +++ b/src/Artemis.UI/Screens/Module/ProfileEditor/ProfileEditorView.xaml @@ -81,7 +81,7 @@ - + @@ -95,14 +95,14 @@ - + - + @@ -115,7 +115,7 @@ - + diff --git a/src/Artemis.UI/Screens/RootView.xaml b/src/Artemis.UI/Screens/RootView.xaml index 7d2446a2e..024049d67 100644 --- a/src/Artemis.UI/Screens/RootView.xaml +++ b/src/Artemis.UI/Screens/RootView.xaml @@ -36,7 +36,7 @@ - + diff --git a/src/Artemis.UI/Screens/SurfaceEditor/SurfaceEditorView.xaml b/src/Artemis.UI/Screens/SurfaceEditor/SurfaceEditorView.xaml index a652db166..10682f34e 100644 --- a/src/Artemis.UI/Screens/SurfaceEditor/SurfaceEditorView.xaml +++ b/src/Artemis.UI/Screens/SurfaceEditor/SurfaceEditorView.xaml @@ -1,13 +1,14 @@ - + @@ -16,6 +17,7 @@ + @@ -32,13 +34,16 @@ - 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. + + + + + VerticalAlignment="Stretch" Margin="0,0,5,0"> - + - + - + - + - + @@ -101,7 +106,7 @@ - @@ -155,7 +160,7 @@ @@ -182,30 +187,29 @@ - + - + - + - +