From cfa9fb2075029b9de72083568137ff17703ef9ff Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Thu, 17 May 2018 12:36:28 -0500 Subject: Round to higher precision than the model (3 digits) --- .../Controls/Custom/ChannelEditor.cs | 16 ++++++++-------- .../Controls/Custom/ComponentSpinEditor.cs | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'Xamarin.PropertyEditing.Mac/Controls/Custom') diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/ChannelEditor.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/ChannelEditor.cs index 8a09f44..e8b6837 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/ChannelEditor.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/ChannelEditor.cs @@ -142,7 +142,7 @@ namespace Xamarin.PropertyEditing.Mac class CyanChannelEditor : ChannelEditor { - public CyanChannelEditor () : base ("C", 0d, 1d, .01d) + public CyanChannelEditor () : base ("C", 0d, 1d, .001d) { } @@ -155,7 +155,7 @@ namespace Xamarin.PropertyEditing.Mac class MagentaChannelEditor : ChannelEditor { - public MagentaChannelEditor () : base ("M", 0d, 1d, .01d) + public MagentaChannelEditor () : base ("M", 0d, 1d, .001d) { } @@ -168,7 +168,7 @@ namespace Xamarin.PropertyEditing.Mac class YellowChannelEditor : ChannelEditor { - public YellowChannelEditor () : base ("Y", 0d, 1d, .01d) + public YellowChannelEditor () : base ("Y", 0d, 1d, .001d) { } @@ -181,7 +181,7 @@ namespace Xamarin.PropertyEditing.Mac class BlackChannelEditor : ChannelEditor { - public BlackChannelEditor () : base ("K", 0d, 1d, .01d) + public BlackChannelEditor () : base ("K", 0d, 1d, .001d) { } @@ -207,7 +207,7 @@ namespace Xamarin.PropertyEditing.Mac class HsbSaturationChannelEditor : ChannelEditor { - public HsbSaturationChannelEditor () : base ("S", 0d, 1d, .01d) + public HsbSaturationChannelEditor () : base ("S", 0d, 1d, .001d) { } @@ -220,7 +220,7 @@ namespace Xamarin.PropertyEditing.Mac class HsbBrightnessChannelEditor : ChannelEditor { - public HsbBrightnessChannelEditor () : base ("B", 0d, 1d, .01d) + public HsbBrightnessChannelEditor () : base ("B", 0d, 1d, .001d) { } @@ -246,7 +246,7 @@ namespace Xamarin.PropertyEditing.Mac class HlsLightnessChannelEditor : ChannelEditor { - public HlsLightnessChannelEditor () : base ("L", 0d, 1d, .01d) + public HlsLightnessChannelEditor () : base ("L", 0d, 1d, .001d) { } @@ -259,7 +259,7 @@ namespace Xamarin.PropertyEditing.Mac class HlsSaturationChannelEditor : ChannelEditor { - public HlsSaturationChannelEditor () : base ("S", 0d, 1d, .01d) + public HlsSaturationChannelEditor () : base ("S", 0d, 1d, .001d) { } diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/ComponentSpinEditor.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/ComponentSpinEditor.cs index 0f05b29..a02973d 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/ComponentSpinEditor.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/ComponentSpinEditor.cs @@ -8,7 +8,7 @@ MinimumValue = component.MinimumValue; MaximumValue = component.MaximumValue; IncrementValue = component.IncrementValue; - Digits = 2; + Digits = 3; } public ChannelEditor ComponentEditor { get; } -- cgit v1.2.3