From c4eccb36661a3d1d8217edde0ea23a177472b640 Mon Sep 17 00:00:00 2001 From: "Sekan, Tobias" Date: Mon, 26 Oct 2020 15:24:37 +0100 Subject: [PATCH] correct order + correct docu --- .../Enumerations/ColorRepresentationType.cs | 48 +++++++++---------- .../Views/ColorPickerPage.xaml | 10 ++-- .../Helpers/ColorRepresentationHelper.cs | 36 +++++++------- 3 files changed, 47 insertions(+), 47 deletions(-) diff --git a/src/core/Microsoft.PowerToys.Settings.UI.Library/Enumerations/ColorRepresentationType.cs b/src/core/Microsoft.PowerToys.Settings.UI.Library/Enumerations/ColorRepresentationType.cs index abcc78f775..76bddff8ef 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI.Library/Enumerations/ColorRepresentationType.cs +++ b/src/core/Microsoft.PowerToys.Settings.UI.Library/Enumerations/ColorRepresentationType.cs @@ -6,49 +6,49 @@ namespace Microsoft.PowerToys.Settings.UI.Library.Enumerations { public enum ColorRepresentationType { - /// - /// Color presentation as hexadecimal color value without the alpha-value (e.g. #0055FF) - /// - HEX = 0, - - /// - /// Color presentation as RGB color value (red[0..255], green[0..255], blue[0..255]) - /// - RGB = 1, - /// /// Color presentation as CMYK color value (cyan[0%..100%], magenta[0%..100%], yellow[0%..100%], black key[0%..100%]) /// - CMYK = 2, + CMYK = 0, /// - /// Color presentation as HSL color value (hue[0°..360°], saturation[0..100%], lightness[0%..100%]) + /// Color presentation as hexadecimal color value without the alpha-value (e.g. #0055FF) /// - HSL = 3, - - /// - /// Color presentation as HSV color value (hue[0°..360°], saturation[0%..100%], value[0%..100%]) - /// - HSV = 4, + HEX = 1, /// /// Color presentation as HSB color value (hue[0°..360°], saturation[0%..100%], brightness[0%..100%]) /// - HSB = 5, + HSB = 2, /// - /// Color presentation as HSI color value (hue[0°..360°], saturation[0%..100%], value[0%..100%]) + /// Color presentation as HSI color value (hue[0°..360°], saturation[0%..100%], intensity[0%..100%]) /// - HSI = 6, + HSI = 3, + + /// + /// Color presentation as HSL color value (hue[0°..360°], saturation[0..100%], lightness[0%..100%]) + /// + HSL = 4, + + /// + /// Color presentation as HSV color value (hue[0°..360°], saturation[0%..100%], value[0%..100%]) + /// + HSV = 5, /// /// Color presentation as HWB color value (hue[0°..360°], whiteness[0%..100%], blackness[0%..100%]) /// - HWB = 7, + HWB = 6, /// - /// Color presentation as natural color (hue, saturation[0%..100%], value[0%..100%]) + /// Color presentation as natural color (hue, whiteness[0%..100%], blackness[0%..100%]) /// - NCol = 8, + NCol = 7, + + /// + /// Color presentation as RGB color value (red[0..255], green[0..255], blue[0..255]) + /// + RGB = 8, } } diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/ColorPickerPage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/ColorPickerPage.xaml index dac5f414d4..c5c58272e1 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Views/ColorPickerPage.xaml +++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/ColorPickerPage.xaml @@ -69,15 +69,15 @@ IsEnabled="{Binding IsEnabled}" HorizontalAlignment="Left" MinWidth="240"> - - - - + + + - + +