From 04350dcead3a5aee6d6397e1f9cc87494920dcb7 Mon Sep 17 00:00:00 2001 From: Victor Grycuk Date: Wed, 16 Sep 2020 23:17:53 -0300 Subject: [PATCH] Update to 1.3 - Fix dark color detection - Update assembly and manifest - Add icon for binaries --- .../Helpers/ColorHelper.cs | 2 +- .../Properties/AssemblyInfo.cs | 10 +++++----- .../StreamDeck.ColorPicker.csproj | 4 ++++ .../StreamDeck.ColorPicker/colorpicker.ico | Bin 0 -> 103422 bytes .../StreamDeck.ColorPicker/manifest.json | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 StreamDeck.ColorPicker/StreamDeck.ColorPicker/colorpicker.ico diff --git a/StreamDeck.ColorPicker/StreamDeck.ColorPicker/Helpers/ColorHelper.cs b/StreamDeck.ColorPicker/StreamDeck.ColorPicker/Helpers/ColorHelper.cs index 8bb8ad6..bed8bb6 100644 --- a/StreamDeck.ColorPicker/StreamDeck.ColorPicker/Helpers/ColorHelper.cs +++ b/StreamDeck.ColorPicker/StreamDeck.ColorPicker/Helpers/ColorHelper.cs @@ -40,7 +40,7 @@ internal static string GetColorName(Color pixelColor, List colo internal static bool IsDarkColor(Color color) { var luminance = 0.2126 * color.R + 0.7152 * color.G + 0.0722 * color.B; - return luminance < 0.179; + return luminance < 150; } } } diff --git a/StreamDeck.ColorPicker/StreamDeck.ColorPicker/Properties/AssemblyInfo.cs b/StreamDeck.ColorPicker/StreamDeck.ColorPicker/Properties/AssemblyInfo.cs index af173cc..229de6f 100644 --- a/StreamDeck.ColorPicker/StreamDeck.ColorPicker/Properties/AssemblyInfo.cs +++ b/StreamDeck.ColorPicker/StreamDeck.ColorPicker/Properties/AssemblyInfo.cs @@ -5,12 +5,12 @@ // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("StreamDeck.ColorPicker")] +[assembly: AssemblyTitle("Color Picker")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("StreamDeck.ColorPicker")] -[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyProduct("Color Picker for Stream Deck")] +[assembly: AssemblyCopyright("Copyright © Victor Grycuk 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.3.0.0")] +[assembly: AssemblyFileVersion("1.3.0.0")] diff --git a/StreamDeck.ColorPicker/StreamDeck.ColorPicker/StreamDeck.ColorPicker.csproj b/StreamDeck.ColorPicker/StreamDeck.ColorPicker/StreamDeck.ColorPicker.csproj index 2eb064a..92a1caa 100644 --- a/StreamDeck.ColorPicker/StreamDeck.ColorPicker/StreamDeck.ColorPicker.csproj +++ b/StreamDeck.ColorPicker/StreamDeck.ColorPicker/StreamDeck.ColorPicker.csproj @@ -32,6 +32,9 @@ prompt 4 + + colorpicker.ico + ..\packages\CommandLineParser.2.7.82\lib\net461\CommandLine.dll @@ -102,6 +105,7 @@ + PreserveNewest diff --git a/StreamDeck.ColorPicker/StreamDeck.ColorPicker/colorpicker.ico b/StreamDeck.ColorPicker/StreamDeck.ColorPicker/colorpicker.ico new file mode 100644 index 0000000000000000000000000000000000000000..179635291a65c79309f2e08982ad9e6313499736 GIT binary patch literal 103422 zcmeI52Yggj+W$`yLPCc?dIi+Qbyo%duI{?NxL96Y-PKo7*R?^{a=LW2BxQ4hwp!Y?C3{`@w=-O`t_E3b5ZzL>FdX^d&L z&hzgKV=HcAY#8D|P{b(v!(j~Z4D2OK`s{;$*=f}*GqolxJFRMHc3Nfs?9@s&@ow&Q z%s7WZbZ!asF?3H>T4gj`ui~I^P(SD+h(mg4UUo`#&+L?{R^!MTdX~;7-Ih?M*IKGr#^c1MSg5iFLOyj zt8wt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Ti+nX39JoaCp{r^1pOoo_ z49el8OgCI&*-y%#o1bf~%HgC8Hq>AXe%mQCc`o_mrR101x}Qs}I@55e!4~{nYS0-@ zzU+A?q?BF#4!HP98T>D~{*`c24MxjFcJs@llNCQHgU)NB_(?VBEV7%QbWIdLIfL@g zuEB3R)fSVWY0*#0pd6whoK%Be_&GDEE{D{TA>r2jwl~e6e2JwBY{*NqesTu$RQ2a< z0VJp!&y{O+q)RxNL8`#UaB>Y2z>R)#;avUX_$Y&o;ha~lRX=A%k5r%Q^h;O!IV<1A z&zS}?(Og1Cfpbf>HC8eemM zlri^k4Q;I|FU|XvHgm3&8<)H|jfNQf9pI(;#84t}9T1%(&LQ2R~G+%e6!> gvT82Z-025+UFv{7j%?z$of=TLa1?>?^H>M}2M{stMgRZ+ literal 0 HcmV?d00001 diff --git a/StreamDeck.ColorPicker/StreamDeck.ColorPicker/manifest.json b/StreamDeck.ColorPicker/StreamDeck.ColorPicker/manifest.json index 98bcf41..87ad0f1 100644 --- a/StreamDeck.ColorPicker/StreamDeck.ColorPicker/manifest.json +++ b/StreamDeck.ColorPicker/StreamDeck.ColorPicker/manifest.json @@ -21,7 +21,7 @@ "Description": "Colorblind Helper & Color Picker for Stream Deck.\nShows a color's name, its RGB or hexadecimal value.", "Icon": "Images/pluginIcon", "URL": "https://github.com/VictorGrycuk/streamdeck-color-picker", - "Version": "1.2", + "Version": "1.3", "CodePath": "StreamDeck.ColorPicker", "Category": "Color Picker", "CategoryIcon": "Images/categoryIcon",