Jake Volynko 5 years ago
parent
commit
49e33b093a
56 changed files with 925 additions and 439 deletions
  1. BIN
      .vs/quick-color-picker/v16/.suo
  2. BIN
      .vs/quick-color-picker/v16/Server/sqlite3/storage.ide
  3. BIN
      QuickColorPicker-Setup/Debug/QuickColorPicker-Setup.msi
  4. 50 92
      QuickColorPicker-Setup/QuickColorPicker-Setup.vdproj
  5. BIN
      QuickColorPicker-Setup/Release/QuickColorPicker-Setup.msi
  6. 4 4
      README.md
  7. BIN
      docs/darkmode.png
  8. BIN
      packages/GitHubUpdate.1.2.0.0/GitHubUpdate.1.2.0.0.nupkg
  9. BIN
      packages/GitHubUpdate.1.2.0.0/lib/net45/GitHubUpdate.dll
  10. BIN
      packages/semver.1.1.2/lib/net20/Semver.dll
  11. BIN
      packages/semver.1.1.2/lib/net35/Semver.dll
  12. BIN
      packages/semver.1.1.2/lib/net40/Semver.dll
  13. BIN
      packages/semver.1.1.2/lib/net45/Semver.dll
  14. BIN
      packages/semver.1.1.2/lib/net451/Semver.dll
  15. BIN
      packages/semver.1.1.2/semver.1.1.2.nupkg
  16. 35 6
      quick-color-picker/AboutForm.Designer.cs
  17. 6 0
      quick-color-picker/AboutForm.cs
  18. 14 14
      quick-color-picker/MainForm.Designer.cs
  19. 26 18
      quick-color-picker/MainForm.cs
  20. 430 287
      quick-color-picker/MainForm.resx
  21. 2 2
      quick-color-picker/Properties/AssemblyInfo.cs
  22. 13 3
      quick-color-picker/ThemeManager.cs
  23. 86 0
      quick-color-picker/UpdateChecker.cs
  24. 194 0
      quick-color-picker/UpdateForm.Designer.cs
  25. 54 0
      quick-color-picker/UpdateForm.cs
  26. BIN
      quick-color-picker/bin/Debug/GitHubUpdate.dll
  27. BIN
      quick-color-picker/bin/Debug/Semver.dll
  28. 1 0
      quick-color-picker/bin/Debug/color-list.txt
  29. BIN
      quick-color-picker/bin/Debug/quick-color-picker.exe
  30. BIN
      quick-color-picker/bin/Debug/quick-color-picker.pdb
  31. BIN
      quick-color-picker/bin/Release/GitHubUpdate.dll
  32. BIN
      quick-color-picker/bin/Release/Semver.dll
  33. BIN
      quick-color-picker/bin/Release/quick-color-picker.exe
  34. BIN
      quick-color-picker/bin/Release/quick-color-picker.pdb
  35. BIN
      quick-color-picker/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  36. BIN
      quick-color-picker/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  37. BIN
      quick-color-picker/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
  38. 0 2
      quick-color-picker/obj/Debug/quick-color-picker.csproj.FileListAbsolute.txt
  39. BIN
      quick-color-picker/obj/Debug/quick-color-picker.csproj.GenerateResource.cache
  40. BIN
      quick-color-picker/obj/Debug/quick-color-picker.csprojAssemblyReference.cache
  41. BIN
      quick-color-picker/obj/Debug/quick-color-picker.exe
  42. BIN
      quick-color-picker/obj/Debug/quick-color-picker.pdb
  43. BIN
      quick-color-picker/obj/Debug/quick_color_picker.MainForm.resources
  44. BIN
      quick-color-picker/obj/Release/DesignTimeResolveAssemblyReferences.cache
  45. 0 2
      quick-color-picker/obj/Release/quick-color-picker.csproj.FileListAbsolute.txt
  46. BIN
      quick-color-picker/obj/Release/quick-color-picker.csproj.GenerateResource.cache
  47. BIN
      quick-color-picker/obj/Release/quick-color-picker.csprojAssemblyReference.cache
  48. BIN
      quick-color-picker/obj/Release/quick-color-picker.exe
  49. BIN
      quick-color-picker/obj/Release/quick-color-picker.pdb
  50. BIN
      quick-color-picker/obj/Release/quick_color_picker.MainForm.resources
  51. 0 2
      quick-color-picker/packages.config
  52. BIN
      quick-color-picker/picker.ico
  53. 10 7
      quick-color-picker/quick-color-picker.csproj
  54. BIN
      quick-color-picker/resources/imgs/install-header.bmp
  55. BIN
      quick-color-picker/resources/imgs/picker.ico
  56. BIN
      quick-color-picker/resources/imgs/picker64.png

BIN
.vs/quick-color-picker/v16/.suo


BIN
.vs/quick-color-picker/v16/Server/sqlite3/storage.ide


BIN
QuickColorPicker-Setup/Debug/QuickColorPicker-Setup.msi


+ 50 - 92
QuickColorPicker-Setup/QuickColorPicker-Setup.vdproj

@@ -28,30 +28,18 @@
         "Entry"
         {
         "MsmKey" = "8:_737284792620041AA725AC471B11769A"
-        "OwnerKey" = "8:_EFE069039AD4B6DA733D547CDD64B8C8"
-        "MsmSig" = "8:_UNDEFINED"
-        }
-        "Entry"
-        {
-        "MsmKey" = "8:_737284792620041AA725AC471B11769A"
-        "OwnerKey" = "8:_E929A9F44EE84118A9055D6931B25A82"
-        "MsmSig" = "8:_UNDEFINED"
-        }
-        "Entry"
-        {
-        "MsmKey" = "8:_AB402BA3D08386C004B3D13444827BC5"
         "OwnerKey" = "8:_E929A9F44EE84118A9055D6931B25A82"
         "MsmSig" = "8:_UNDEFINED"
         }
         "Entry"
         {
-        "MsmKey" = "8:_B4642CAD627F9383DFD215DD66BB57C8"
-        "OwnerKey" = "8:_EFE069039AD4B6DA733D547CDD64B8C8"
+        "MsmKey" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
+        "OwnerKey" = "8:_UNDEFINED"
         "MsmSig" = "8:_UNDEFINED"
         }
         "Entry"
         {
-        "MsmKey" = "8:_B4642CAD627F9383DFD215DD66BB57C8"
+        "MsmKey" = "8:_AB402BA3D08386C004B3D13444827BC5"
         "OwnerKey" = "8:_E929A9F44EE84118A9055D6931B25A82"
         "MsmSig" = "8:_UNDEFINED"
         }
@@ -69,12 +57,6 @@
         }
         "Entry"
         {
-        "MsmKey" = "8:_EFE069039AD4B6DA733D547CDD64B8C8"
-        "OwnerKey" = "8:_E929A9F44EE84118A9055D6931B25A82"
-        "MsmSig" = "8:_UNDEFINED"
-        }
-        "Entry"
-        {
         "MsmKey" = "8:_UNDEFINED"
         "OwnerKey" = "8:_E929A9F44EE84118A9055D6931B25A82"
         "MsmSig" = "8:_UNDEFINED"
@@ -82,31 +64,19 @@
         "Entry"
         {
         "MsmKey" = "8:_UNDEFINED"
-        "OwnerKey" = "8:_AB402BA3D08386C004B3D13444827BC5"
-        "MsmSig" = "8:_UNDEFINED"
-        }
-        "Entry"
-        {
-        "MsmKey" = "8:_UNDEFINED"
-        "OwnerKey" = "8:_BF57E0CBB28BCA74671101FE09DC693E"
-        "MsmSig" = "8:_UNDEFINED"
-        }
-        "Entry"
-        {
-        "MsmKey" = "8:_UNDEFINED"
         "OwnerKey" = "8:_737284792620041AA725AC471B11769A"
         "MsmSig" = "8:_UNDEFINED"
         }
         "Entry"
         {
         "MsmKey" = "8:_UNDEFINED"
-        "OwnerKey" = "8:_B4642CAD627F9383DFD215DD66BB57C8"
+        "OwnerKey" = "8:_BF57E0CBB28BCA74671101FE09DC693E"
         "MsmSig" = "8:_UNDEFINED"
         }
         "Entry"
         {
         "MsmKey" = "8:_UNDEFINED"
-        "OwnerKey" = "8:_EFE069039AD4B6DA733D547CDD64B8C8"
+        "OwnerKey" = "8:_AB402BA3D08386C004B3D13444827BC5"
         "MsmSig" = "8:_UNDEFINED"
         }
     }
@@ -251,6 +221,11 @@
             "AssemblyAsmDisplayName" = "8:Octokit, Version=0.3.4.0, Culture=neutral, processorArchitecture=MSIL"
                 "ScatterAssemblies"
                 {
+                    "_737284792620041AA725AC471B11769A"
+                    {
+                    "Name" = "8:Octokit.dll"
+                    "Attributes" = "3:512"
+                    }
                 }
             "SourcePath" = "8:Octokit.dll"
             "TargetName" = "8:"
@@ -270,16 +245,10 @@
             "IsDependency" = "11:TRUE"
             "IsolateTo" = "8:"
             }
-            "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_AB402BA3D08386C004B3D13444827BC5"
+            "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_AA92DBA4DADE448D8D452BCE30C28B20"
             {
-            "AssemblyRegister" = "3:1"
-            "AssemblyIsInGAC" = "11:FALSE"
-            "AssemblyAsmDisplayName" = "8:System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
-                "ScatterAssemblies"
-                {
-                }
-            "SourcePath" = "8:System.Net.Http.dll"
-            "TargetName" = "8:"
+            "SourcePath" = "8:..\\quick-color-picker\\resources\\imgs\\install-header.bmp"
+            "TargetName" = "8:install-header.bmp"
             "Tag" = "8:"
             "Folder" = "8:_4E105E1FB7D74141BA826FE0A8CC7FE5"
             "Condition" = "8:"
@@ -292,19 +261,24 @@
             "SharedLegacy" = "11:FALSE"
             "PackageAs" = "3:1"
             "Register" = "3:1"
-            "Exclude" = "11:FALSE"
-            "IsDependency" = "11:TRUE"
+            "Exclude" = "11:TRUE"
+            "IsDependency" = "11:FALSE"
             "IsolateTo" = "8:"
             }
-            "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_B4642CAD627F9383DFD215DD66BB57C8"
+            "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_AB402BA3D08386C004B3D13444827BC5"
             {
             "AssemblyRegister" = "3:1"
             "AssemblyIsInGAC" = "11:FALSE"
-            "AssemblyAsmDisplayName" = "8:Semver, Version=1.1.2.0, Culture=neutral, processorArchitecture=MSIL"
+            "AssemblyAsmDisplayName" = "8:System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
                 "ScatterAssemblies"
                 {
+                    "_AB402BA3D08386C004B3D13444827BC5"
+                    {
+                    "Name" = "8:System.Net.Http.dll"
+                    "Attributes" = "3:512"
+                    }
                 }
-            "SourcePath" = "8:Semver.dll"
+            "SourcePath" = "8:System.Net.Http.dll"
             "TargetName" = "8:"
             "Tag" = "8:"
             "Folder" = "8:_4E105E1FB7D74141BA826FE0A8CC7FE5"
@@ -353,32 +327,6 @@
             "IsDependency" = "11:TRUE"
             "IsolateTo" = "8:"
             }
-            "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_EFE069039AD4B6DA733D547CDD64B8C8"
-            {
-            "AssemblyRegister" = "3:1"
-            "AssemblyIsInGAC" = "11:FALSE"
-            "AssemblyAsmDisplayName" = "8:GitHubUpdate, Version=1.2.0.0, Culture=neutral, processorArchitecture=MSIL"
-                "ScatterAssemblies"
-                {
-                }
-            "SourcePath" = "8:GitHubUpdate.dll"
-            "TargetName" = "8:"
-            "Tag" = "8:"
-            "Folder" = "8:_4E105E1FB7D74141BA826FE0A8CC7FE5"
-            "Condition" = "8:"
-            "Transitive" = "11:FALSE"
-            "Vital" = "11:TRUE"
-            "ReadOnly" = "11:FALSE"
-            "Hidden" = "11:FALSE"
-            "System" = "11:FALSE"
-            "Permanent" = "11:FALSE"
-            "SharedLegacy" = "11:FALSE"
-            "PackageAs" = "3:1"
-            "Register" = "3:1"
-            "Exclude" = "11:FALSE"
-            "IsDependency" = "11:TRUE"
-            "IsolateTo" = "8:"
-            }
         }
         "FileType"
         {
@@ -435,15 +383,15 @@
         {
         "Name" = "8:Microsoft Visual Studio"
         "ProductName" = "8:Quick Color Picker"
-        "ProductCode" = "8:{39B0DA17-ED06-4546-89D8-E055AF0CE53D}"
-        "PackageCode" = "8:{499313E6-1C46-402C-9251-0293A2C7A1B9}"
+        "ProductCode" = "8:{B9F52475-2E86-4166-BB34-FF96E1067878}"
+        "PackageCode" = "8:{D7762BF7-0AF5-447E-8AF8-3FB540142975}"
         "UpgradeCode" = "8:{B447EAAB-B636-490E-8AC4-266A6136D6BF}"
         "AspNetVersion" = "8:2.0.50727.0"
         "RestartWWWService" = "11:FALSE"
         "RemovePreviousVersions" = "11:TRUE"
         "DetectNewerInstalledVersion" = "11:TRUE"
         "InstallAllUsers" = "11:FALSE"
-        "ProductVersion" = "8:1.2.0"
+        "ProductVersion" = "8:1.2.1"
         "Manufacturer" = "8:Module Art"
         "ARPHELPTELEPHONE" = "8:"
         "ARPHELPLINK" = "8:"
@@ -617,7 +565,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                             "ShowProgress"
@@ -661,7 +610,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                             "ShowProgress"
@@ -705,7 +655,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                             "CopyrightWarning"
@@ -716,8 +667,8 @@
                             "Type" = "3:3"
                             "ContextData" = "8:"
                             "Attributes" = "3:0"
-                            "Setting" = "3:1"
-                            "Value" = "8:#1202"
+                            "Setting" = "3:2"
+                            "Value" = "8:Copyright © 2019 ModuleArt"
                             "DefaultValue" = "8:#1202"
                             "UsePlugInResources" = "11:TRUE"
                             }
@@ -753,7 +704,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                         }
@@ -775,7 +727,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                         }
@@ -812,7 +765,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                             "UpdateText"
@@ -856,7 +810,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                             "InstallAllUsersVisible"
@@ -891,7 +846,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                             "CopyrightWarning"
@@ -902,8 +858,8 @@
                             "Type" = "3:3"
                             "ContextData" = "8:"
                             "Attributes" = "3:0"
-                            "Setting" = "3:1"
-                            "Value" = "8:#1202"
+                            "Setting" = "3:2"
+                            "Value" = "8:Copyright © 2019 ModuleArt"
                             "DefaultValue" = "8:#1202"
                             "UsePlugInResources" = "11:TRUE"
                             }
@@ -939,7 +895,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                         }
@@ -970,7 +927,8 @@
                             "Type" = "3:8"
                             "ContextData" = "8:Bitmap"
                             "Attributes" = "3:4"
-                            "Setting" = "3:1"
+                            "Setting" = "3:2"
+                            "Value" = "8:_AA92DBA4DADE448D8D452BCE30C28B20"
                             "UsePlugInResources" = "11:TRUE"
                             }
                         }

BIN
QuickColorPicker-Setup/Release/QuickColorPicker-Setup.msi


+ 4 - 4
README.md

@@ -4,7 +4,7 @@
 <h1 align="center">Quick Color Picker</h1>
 
 <p align="center">
-  Quick Color Picker is a lightweight desktop color picker and color editor utility to get and save colors code quickly for Windows, build on top of WinForms (C#).
+  Quick Color Picker is a lightweight desktop color picker and color editor utility to get and save colors code quickly for Windows, built on top of WinForms (C#).
 </p>
 
 <p align="center">
@@ -22,7 +22,7 @@
 
 <h2 align="center">Install</h2>
 <p align="center">
-  Windows 7, 8.1, 10  |  Size: 0.9 MB | v1.2.0 |  <a href="https://github.com/ModuleArt/quick-color-picker/releases/download/v1.2.0/QuickColorPicker-Setup.msi">Download</a><br>
+  Windows 7, 8.1, 10  |  Size: 1 MB | v1.2.1 |  <a href="https://github.com/ModuleArt/quick-color-picker/releases/download/v1.2.1/QuickColorPicker-Setup.msi">Download</a><br>
   Uses <a href="https://dotnet.microsoft.com/download/dotnet-framework/net472">.Net 4.7.2</a>
 </p>
 
@@ -35,8 +35,8 @@
 
 <h2 align="center">Additional</h2>
 <p align="center">
-  How to <a href="https://winaero.com/blog/enable-dark-title-bars-custom-accent-color-windows-10/">enable dark title bars</a> with custom accent color in Windows 10<br>
-  How to <a href="https://www.howtogeek.com/224798/how-to-uninstall-windows-10s-built-in-apps-and-how-to-reinstall-them/">uninstall built-in photos app</a> in Windows 10
+  How to <a href="https://www.onmsft.com/how-to/how-to-get-dark-theme-title-bars-in-windows-10-without-changing-your-accent-colour/">enable dark title bars</a> with custom accent color in Windows 10:<br><br>
+  <img src="/docs/darkmode.png">
 </p>
 
 <h2 align="center">Inspirers</h2>

BIN
docs/darkmode.png


BIN
packages/GitHubUpdate.1.2.0.0/GitHubUpdate.1.2.0.0.nupkg


BIN
packages/GitHubUpdate.1.2.0.0/lib/net45/GitHubUpdate.dll


BIN
packages/semver.1.1.2/lib/net20/Semver.dll


BIN
packages/semver.1.1.2/lib/net35/Semver.dll


BIN
packages/semver.1.1.2/lib/net40/Semver.dll


BIN
packages/semver.1.1.2/lib/net45/Semver.dll


BIN
packages/semver.1.1.2/lib/net451/Semver.dll


BIN
packages/semver.1.1.2/semver.1.1.2.nupkg


+ 35 - 6
quick-color-picker/AboutForm.Designer.cs

@@ -41,6 +41,8 @@
 			this.updatesLink = new System.Windows.Forms.LinkLabel();
 			this.issuesLink = new System.Windows.Forms.LinkLabel();
 			this.pagesGroup = new System.Windows.Forms.GroupBox();
+			this.licenseLabel = new System.Windows.Forms.Label();
+			this.licenseLink = new System.Windows.Forms.LinkLabel();
 			((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
 			this.infoGroup.SuspendLayout();
 			this.pagesGroup.SuspendLayout();
@@ -103,10 +105,10 @@
 			this.descriptionLabel.Location = new System.Drawing.Point(6, 151);
 			this.descriptionLabel.Margin = new System.Windows.Forms.Padding(3, 9, 3, 3);
 			this.descriptionLabel.Name = "descriptionLabel";
-			this.descriptionLabel.Size = new System.Drawing.Size(242, 45);
+			this.descriptionLabel.Size = new System.Drawing.Size(239, 45);
 			this.descriptionLabel.TabIndex = 31;
 			this.descriptionLabel.Text = "Lightweight desktop color picker and color \r\neditor utility to get and save color" +
-    "s quickly \r\nfor Windows, build on top of WinForms (C#)";
+    "s quickly \r\nfor Windows, built on top of WinForms (C#)";
 			// 
 			// developerLink
 			// 
@@ -139,7 +141,7 @@
 			this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
 			this.okButton.FlatAppearance.BorderSize = 0;
 			this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
-			this.okButton.Location = new System.Drawing.Point(9, 408);
+			this.okButton.Location = new System.Drawing.Point(9, 433);
 			this.okButton.Margin = new System.Windows.Forms.Padding(0);
 			this.okButton.Name = "okButton";
 			this.okButton.Size = new System.Drawing.Size(256, 23);
@@ -158,7 +160,7 @@
 			this.infoGroup.Location = new System.Drawing.Point(9, 118);
 			this.infoGroup.Margin = new System.Windows.Forms.Padding(0, 9, 0, 0);
 			this.infoGroup.Name = "infoGroup";
-			this.infoGroup.Size = new System.Drawing.Size(256, 213);
+			this.infoGroup.Size = new System.Drawing.Size(256, 238);
 			this.infoGroup.TabIndex = 34;
 			this.infoGroup.TabStop = false;
 			this.infoGroup.Text = "Info";
@@ -189,10 +191,11 @@
 			// 
 			// pagesGroup
 			// 
+			this.pagesGroup.Controls.Add(this.licenseLink);
 			this.pagesGroup.Controls.Add(this.developerLink);
 			this.pagesGroup.Controls.Add(this.projectLink);
 			this.pagesGroup.Controls.Add(this.issuesLink);
-			this.pagesGroup.Location = new System.Drawing.Point(9, 340);
+			this.pagesGroup.Location = new System.Drawing.Point(9, 365);
 			this.pagesGroup.Margin = new System.Windows.Forms.Padding(0, 9, 0, 0);
 			this.pagesGroup.Name = "pagesGroup";
 			this.pagesGroup.Size = new System.Drawing.Size(256, 60);
@@ -200,12 +203,35 @@
 			this.pagesGroup.TabStop = false;
 			this.pagesGroup.Text = "Links";
 			// 
+			// licenseLabel
+			// 
+			this.licenseLabel.AutoSize = true;
+			this.licenseLabel.Location = new System.Drawing.Point(15, 326);
+			this.licenseLabel.Margin = new System.Windows.Forms.Padding(3, 9, 3, 3);
+			this.licenseLabel.Name = "licenseLabel";
+			this.licenseLabel.Size = new System.Drawing.Size(93, 15);
+			this.licenseLabel.TabIndex = 38;
+			this.licenseLabel.Text = "License: GPL-3.0";
+			// 
+			// licenseLink
+			// 
+			this.licenseLink.AutoSize = true;
+			this.licenseLink.Location = new System.Drawing.Point(202, 29);
+			this.licenseLink.Margin = new System.Windows.Forms.Padding(3, 9, 3, 3);
+			this.licenseLink.Name = "licenseLink";
+			this.licenseLink.Size = new System.Drawing.Size(46, 15);
+			this.licenseLink.TabIndex = 36;
+			this.licenseLink.TabStop = true;
+			this.licenseLink.Text = "License";
+			this.licenseLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.licenseLink_LinkClicked);
+			// 
 			// AboutForm
 			// 
 			this.AcceptButton = this.okButton;
 			this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
 			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
-			this.ClientSize = new System.Drawing.Size(274, 440);
+			this.ClientSize = new System.Drawing.Size(274, 465);
+			this.Controls.Add(this.licenseLabel);
 			this.Controls.Add(this.pagesGroup);
 			this.Controls.Add(this.infoGroup);
 			this.Controls.Add(this.okButton);
@@ -228,6 +254,7 @@
 			this.pagesGroup.ResumeLayout(false);
 			this.pagesGroup.PerformLayout();
 			this.ResumeLayout(false);
+			this.PerformLayout();
 
 		}
 
@@ -246,5 +273,7 @@
 		private System.Windows.Forms.LinkLabel issuesLink;
 		private System.Windows.Forms.LinkLabel updatesLink;
 		private System.Windows.Forms.GroupBox pagesGroup;
+		private System.Windows.Forms.Label licenseLabel;
+		private System.Windows.Forms.LinkLabel licenseLink;
 	}
 }

+ 6 - 0
quick-color-picker/AboutForm.cs

@@ -28,6 +28,7 @@ namespace quick_color_picker
 				developerLink.LinkColor = linkColor;
 				projectLink.LinkColor = linkColor;
 				issuesLink.LinkColor = linkColor;
+				licenseLink.LinkColor = linkColor;
 
 				okButton.BackColor = ThemeManager.SecondColorDark;
 			}
@@ -62,5 +63,10 @@ namespace quick_color_picker
 				this.Close();
 			}
 		}
+
+		private void licenseLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+		{
+			System.Diagnostics.Process.Start("https://github.com/ModuleArt/quick-color-picker/blob/master/LICENSE.md/");
+		}
 	}
 }

+ 14 - 14
quick-color-picker/MainForm.Designer.cs

@@ -67,8 +67,8 @@
 			this.hsvLabel = new System.Windows.Forms.Label();
 			this.hsvCopyButton = new System.Windows.Forms.Button();
 			this.ratioPanel = new System.Windows.Forms.Panel();
-			this.ratioBlackLabel = new System.Windows.Forms.Label();
 			this.ratioWhiteLabel = new System.Windows.Forms.Label();
+			this.ratioBlackLabel = new System.Windows.Forms.Label();
 			this.toolStrip1.SuspendLayout();
 			((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
 			this.ratioPanel.SuspendLayout();
@@ -517,19 +517,6 @@
 			this.ratioPanel.Size = new System.Drawing.Size(120, 33);
 			this.ratioPanel.TabIndex = 32;
 			// 
-			// ratioBlackLabel
-			// 
-			this.ratioBlackLabel.AutoSize = true;
-			this.ratioBlackLabel.BackColor = System.Drawing.Color.Transparent;
-			this.ratioBlackLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-			this.ratioBlackLabel.ForeColor = System.Drawing.Color.Black;
-			this.ratioBlackLabel.Location = new System.Drawing.Point(13, 8);
-			this.ratioBlackLabel.Margin = new System.Windows.Forms.Padding(3);
-			this.ratioBlackLabel.Name = "ratioBlackLabel";
-			this.ratioBlackLabel.Size = new System.Drawing.Size(37, 15);
-			this.ratioBlackLabel.TabIndex = 33;
-			this.ratioBlackLabel.Text = "Black";
-			// 
 			// ratioWhiteLabel
 			// 
 			this.ratioWhiteLabel.AutoSize = true;
@@ -543,6 +530,19 @@
 			this.ratioWhiteLabel.TabIndex = 34;
 			this.ratioWhiteLabel.Text = "White";
 			// 
+			// ratioBlackLabel
+			// 
+			this.ratioBlackLabel.AutoSize = true;
+			this.ratioBlackLabel.BackColor = System.Drawing.Color.Transparent;
+			this.ratioBlackLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+			this.ratioBlackLabel.ForeColor = System.Drawing.Color.Black;
+			this.ratioBlackLabel.Location = new System.Drawing.Point(13, 8);
+			this.ratioBlackLabel.Margin = new System.Windows.Forms.Padding(3);
+			this.ratioBlackLabel.Name = "ratioBlackLabel";
+			this.ratioBlackLabel.Size = new System.Drawing.Size(37, 15);
+			this.ratioBlackLabel.TabIndex = 33;
+			this.ratioBlackLabel.Text = "Black";
+			// 
 			// MainForm
 			// 
 			this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);

+ 26 - 18
quick-color-picker/MainForm.cs

@@ -1,9 +1,6 @@
-using GitHubUpdate;
-using System;
-using System.Collections.Generic;
+using System;
 using System.Drawing;
 using System.IO;
-using System.Text;
 using System.Threading;
 using System.Threading.Tasks;
 using System.Windows.Forms;
@@ -332,6 +329,8 @@ namespace quick_color_picker
 
 		private void applyDarkTheme()
 		{
+			ThemeManager.setDarkModeToControl(colorList.Handle);
+
 			this.BackColor = ThemeManager.BackColorDark;
 			this.ForeColor = Color.White;
 			toolStrip1.BackColor = ThemeManager.BackColorDark;
@@ -497,11 +496,11 @@ namespace quick_color_picker
 		{
 			try
 			{
-				var checker = new UpdateChecker("ModuleArt", "quick-color-picker");
+				UpdateChecker checker = new UpdateChecker("ModuleArt", "quick-color-picker");
 
-				UpdateType update = await checker.CheckUpdate();
+				bool update = await checker.CheckUpdate();
 
-				if (update == UpdateType.None)
+				if (update == false)
 				{
 					if (showUpToDateDialog)
 					{
@@ -510,10 +509,22 @@ namespace quick_color_picker
 				}
 				else
 				{
-					var result = new UpdateNotifyDialog(checker).ShowDialog();
+					UpdateForm updateDialog = new UpdateForm(checker, "Quick Picture Viewer");
+
+					if (alwaysOnTop)
+					{
+						updateDialog.TopMost = true;
+					}
+
+					var result = updateDialog.ShowDialog();
 					if (result == DialogResult.Yes)
 					{
 						checker.DownloadAsset("QuickColorPicker-Setup.msi");
+						this.Close();
+					}
+					else
+					{
+						updateDialog.Dispose();
 					}
 				}
 			}
@@ -531,19 +542,16 @@ namespace quick_color_picker
 			try
 			{
 				string path = "color-list.txt";
+				FileInfo fi1 = new FileInfo(path);
 
-				if (!File.Exists(path))
-				{
-					File.Create(path);
-				}
-
-				string[] linesToWrite = new string[colorList.Items.Count];
-				for (int i = 0; i < colorList.Items.Count; i++)
+				using (StreamWriter sw = fi1.CreateText())
 				{
-					linesToWrite[i] = colorList.Items[i].ToString();
+					string[] linesToWrite = new string[colorList.Items.Count];
+					for (int i = 0; i < colorList.Items.Count; i++)
+					{
+						sw.WriteLine(colorList.Items[i].ToString());
+					}
 				}
-
-				File.WriteAllLines(path, linesToWrite);
 			}
 			catch
 			{

File diff suppressed because it is too large
+ 430 - 287
quick-color-picker/MainForm.resx


+ 2 - 2
quick-color-picker/Properties/AssemblyInfo.cs

@@ -33,6 +33,6 @@ using System.Runtime.InteropServices;
 // 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.2.0")]
-[assembly: AssemblyFileVersion("1.2.0")]
+[assembly: AssemblyVersion("1.2.1")]
+[assembly: AssemblyFileVersion("1.2.1")]
 [assembly: NeutralResourcesLanguage("en")]

+ 13 - 3
quick-color-picker/ThemeManager.cs

@@ -1,15 +1,25 @@
 using Microsoft.Win32;
+using System;
 using System.Drawing;
+using System.Runtime.InteropServices;
 
 namespace quick_color_picker
 {
 	class ThemeManager
 	{
-		public static Color MainColorDark = Color.Black;
-		public static Color BackColorDark = Color.FromArgb(32, 32, 32);
-		public static Color SecondColorDark = Color.FromArgb(51, 51, 51);
+		public static Color MainColorDark = Color.FromArgb(23, 23, 23);
+		public static Color BackColorDark = Color.FromArgb(37, 37, 37);
+		public static Color SecondColorDark = Color.FromArgb(56, 56, 56);
 		public static Color AccentColorDark = Color.FromArgb(73, 169, 207);
 
+		[DllImport("uxtheme.dll", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Unicode)]
+		private static extern int SetWindowTheme(IntPtr hWnd, string pszSubAppName, string pszSubIdList);
+
+		public static void setDarkModeToControl(IntPtr handle)
+		{
+			SetWindowTheme(handle, "DarkMode_Explorer", null);
+		}
+
 		public static bool isDarkTheme()
 		{
 			if (isWindows10())

+ 86 - 0
quick-color-picker/UpdateChecker.cs

@@ -0,0 +1,86 @@
+using Octokit;
+using System;
+using System.Threading.Tasks;
+
+namespace quick_color_picker
+{
+	public class UpdateChecker
+	{
+		private IReleasesClient _releaseClient;
+		internal GitHubClient Github;
+
+		internal string CurrentVersion;
+		internal string RepositoryOwner;
+		internal string RepostoryName;
+		internal Release LatestRelease;
+
+		public UpdateChecker(string owner, string name)
+		{
+			string version = System.Windows.Forms.Application.ProductVersion;
+
+			Github = new GitHubClient(new ProductHeaderValue(name + @"-UpdateCheck"));
+			_releaseClient = Github.Release;
+
+			RepositoryOwner = owner;
+			RepostoryName = name;
+			CurrentVersion = version;
+		}
+
+		public async Task<bool> CheckUpdate()
+		{
+			var releases = await _releaseClient.GetAll(RepositoryOwner, RepostoryName);
+			LatestRelease = releases[0];
+
+			string[] curDots = CurrentVersion.Split('.');
+			int curMajor = Convert.ToInt32(curDots[0]);
+			int curMinor = Convert.ToInt32(curDots[1]);
+			int curPatch = Convert.ToInt32(curDots[2]);
+
+			for (int i = 0; i < releases.Count; i++)
+			{
+				string[] dots = releases[i].TagName.Substring(1, releases[i].TagName.Length - 1).Split('.');
+				int major = Convert.ToInt32(dots[0]);
+				int minor = Convert.ToInt32(dots[1]);
+				int patch = Convert.ToInt32(dots[2]);
+
+				if (major > curMajor)
+				{
+					return true;
+				}
+				else if (major == curMajor)
+				{
+					if (minor > curMinor)
+					{
+						return true;
+					}
+					else if (minor == curMinor)
+					{
+						if (patch > curPatch)
+						{
+							return true;
+						}
+					}
+				}
+			}
+
+			return false;
+		}
+
+		public async Task<string> RenderReleaseNotes()
+		{
+			if (LatestRelease == null)
+			{
+				throw new InvalidOperationException();
+			}
+			return await Github.Miscellaneous.RenderRawMarkdown(LatestRelease.Body);
+		}
+
+		public void DownloadAsset(string assetname)
+		{
+			const string template = "https://github.com/{0}/{1}/releases/download/{2}/{3}";
+			var url = string.Format(template, RepositoryOwner, RepostoryName, LatestRelease.TagName, assetname);
+
+			System.Diagnostics.Process.Start(url);
+		}
+	}
+}

+ 194 - 0
quick-color-picker/UpdateForm.Designer.cs

@@ -0,0 +1,194 @@
+namespace quick_color_picker
+{
+	partial class UpdateForm
+	{
+		/// <summary>
+		/// Required designer variable.
+		/// </summary>
+		private System.ComponentModel.IContainer components = null;
+
+		/// <summary>
+		/// Clean up any resources being used.
+		/// </summary>
+		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+		protected override void Dispose(bool disposing)
+		{
+			if (disposing && (components != null))
+			{
+				components.Dispose();
+			}
+			base.Dispose(disposing);
+		}
+
+		#region Windows Form Designer generated code
+
+		/// <summary>
+		/// Required method for Designer support - do not modify
+		/// the contents of this method with the code editor.
+		/// </summary>
+		private void InitializeComponent()
+		{
+			this.buttonNo = new System.Windows.Forms.Button();
+			this.buttonYes = new System.Windows.Forms.Button();
+			this.label1 = new System.Windows.Forms.Label();
+			this.label2 = new System.Windows.Forms.Label();
+			this.boxReleaseNotes = new System.Windows.Forms.CheckBox();
+			this.ReleaseNotes = new System.Windows.Forms.WebBrowser();
+			this.currentLabel = new System.Windows.Forms.Label();
+			this.latestLabel = new System.Windows.Forms.Label();
+			this.SuspendLayout();
+			// 
+			// buttonNo
+			// 
+			this.buttonNo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+			this.buttonNo.BackColor = System.Drawing.SystemColors.ControlLight;
+			this.buttonNo.DialogResult = System.Windows.Forms.DialogResult.No;
+			this.buttonNo.FlatAppearance.BorderSize = 0;
+			this.buttonNo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+			this.buttonNo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+			this.buttonNo.Location = new System.Drawing.Point(206, 108);
+			this.buttonNo.Margin = new System.Windows.Forms.Padding(0);
+			this.buttonNo.Name = "buttonNo";
+			this.buttonNo.Size = new System.Drawing.Size(75, 23);
+			this.buttonNo.TabIndex = 2;
+			this.buttonNo.Text = "No";
+			this.buttonNo.UseVisualStyleBackColor = false;
+			// 
+			// buttonYes
+			// 
+			this.buttonYes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+			this.buttonYes.BackColor = System.Drawing.SystemColors.ControlLight;
+			this.buttonYes.DialogResult = System.Windows.Forms.DialogResult.Yes;
+			this.buttonYes.FlatAppearance.BorderSize = 0;
+			this.buttonYes.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+			this.buttonYes.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+			this.buttonYes.Location = new System.Drawing.Point(290, 108);
+			this.buttonYes.Margin = new System.Windows.Forms.Padding(0);
+			this.buttonYes.Name = "buttonYes";
+			this.buttonYes.Size = new System.Drawing.Size(75, 23);
+			this.buttonYes.TabIndex = 1;
+			this.buttonYes.Text = "Yes";
+			this.buttonYes.UseVisualStyleBackColor = false;
+			// 
+			// label1
+			// 
+			this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
+			this.label1.AutoSize = true;
+			this.label1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+			this.label1.Location = new System.Drawing.Point(12, 12);
+			this.label1.Margin = new System.Windows.Forms.Padding(3);
+			this.label1.Name = "label1";
+			this.label1.Size = new System.Drawing.Size(205, 15);
+			this.label1.TabIndex = 0;
+			this.label1.Text = "There is a new version of {0} available!";
+			this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
+			// 
+			// label2
+			// 
+			this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
+			this.label2.AutoSize = true;
+			this.label2.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+			this.label2.Location = new System.Drawing.Point(12, 33);
+			this.label2.Margin = new System.Windows.Forms.Padding(3);
+			this.label2.Name = "label2";
+			this.label2.Size = new System.Drawing.Size(197, 15);
+			this.label2.TabIndex = 1;
+			this.label2.Text = "Would you like to download it now?";
+			this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
+			// 
+			// boxReleaseNotes
+			// 
+			this.boxReleaseNotes.Appearance = System.Windows.Forms.Appearance.Button;
+			this.boxReleaseNotes.BackColor = System.Drawing.SystemColors.ControlLight;
+			this.boxReleaseNotes.FlatAppearance.BorderSize = 0;
+			this.boxReleaseNotes.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+			this.boxReleaseNotes.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+			this.boxReleaseNotes.Location = new System.Drawing.Point(9, 108);
+			this.boxReleaseNotes.Margin = new System.Windows.Forms.Padding(0, 9, 0, 9);
+			this.boxReleaseNotes.Name = "boxReleaseNotes";
+			this.boxReleaseNotes.Size = new System.Drawing.Size(83, 23);
+			this.boxReleaseNotes.TabIndex = 3;
+			this.boxReleaseNotes.Text = "What\'s new?";
+			this.boxReleaseNotes.UseVisualStyleBackColor = false;
+			this.boxReleaseNotes.CheckedChanged += new System.EventHandler(this.boxReleaseNotes_CheckedChanged);
+			// 
+			// ReleaseNotes
+			// 
+			this.ReleaseNotes.AllowNavigation = false;
+			this.ReleaseNotes.AllowWebBrowserDrop = false;
+			this.ReleaseNotes.IsWebBrowserContextMenuEnabled = false;
+			this.ReleaseNotes.Location = new System.Drawing.Point(9, 142);
+			this.ReleaseNotes.Margin = new System.Windows.Forms.Padding(0, 0, 9, 0);
+			this.ReleaseNotes.MinimumSize = new System.Drawing.Size(20, 20);
+			this.ReleaseNotes.Name = "ReleaseNotes";
+			this.ReleaseNotes.ScriptErrorsSuppressed = true;
+			this.ReleaseNotes.Size = new System.Drawing.Size(347, 196);
+			this.ReleaseNotes.TabIndex = 0;
+			this.ReleaseNotes.Visible = false;
+			this.ReleaseNotes.WebBrowserShortcutsEnabled = false;
+			// 
+			// currentLabel
+			// 
+			this.currentLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
+			this.currentLabel.AutoSize = true;
+			this.currentLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+			this.currentLabel.Location = new System.Drawing.Point(12, 60);
+			this.currentLabel.Margin = new System.Windows.Forms.Padding(3, 9, 3, 3);
+			this.currentLabel.Name = "currentLabel";
+			this.currentLabel.Size = new System.Drawing.Size(114, 15);
+			this.currentLabel.TabIndex = 4;
+			this.currentLabel.Text = "Current version: v{0}";
+			this.currentLabel.TextAlign = System.Drawing.ContentAlignment.TopCenter;
+			// 
+			// latestLabel
+			// 
+			this.latestLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
+			this.latestLabel.AutoSize = true;
+			this.latestLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+			this.latestLabel.Location = new System.Drawing.Point(12, 81);
+			this.latestLabel.Margin = new System.Windows.Forms.Padding(3);
+			this.latestLabel.Name = "latestLabel";
+			this.latestLabel.Size = new System.Drawing.Size(97, 15);
+			this.latestLabel.TabIndex = 5;
+			this.latestLabel.Text = "Latest release: {0}";
+			this.latestLabel.TextAlign = System.Drawing.ContentAlignment.TopCenter;
+			// 
+			// UpdateForm
+			// 
+			this.AcceptButton = this.buttonYes;
+			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+			this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+			this.CancelButton = this.buttonNo;
+			this.ClientSize = new System.Drawing.Size(374, 347);
+			this.ControlBox = false;
+			this.Controls.Add(this.buttonNo);
+			this.Controls.Add(this.latestLabel);
+			this.Controls.Add(this.buttonYes);
+			this.Controls.Add(this.ReleaseNotes);
+			this.Controls.Add(this.currentLabel);
+			this.Controls.Add(this.boxReleaseNotes);
+			this.Controls.Add(this.label2);
+			this.Controls.Add(this.label1);
+			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+			this.MinimumSize = new System.Drawing.Size(320, 39);
+			this.Name = "UpdateForm";
+			this.ShowInTaskbar = false;
+			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+			this.Text = "Update available!";
+			this.ResumeLayout(false);
+			this.PerformLayout();
+
+		}
+
+		#endregion
+		private System.Windows.Forms.Label label1;
+		private System.Windows.Forms.Label label2;
+		private System.Windows.Forms.CheckBox boxReleaseNotes;
+		private System.Windows.Forms.WebBrowser ReleaseNotes;
+		private System.Windows.Forms.Button buttonNo;
+		private System.Windows.Forms.Button buttonYes;
+		private System.Windows.Forms.Label latestLabel;
+		private System.Windows.Forms.Label currentLabel;
+	}
+}

+ 54 - 0
quick-color-picker/UpdateForm.cs

@@ -0,0 +1,54 @@
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace quick_color_picker
+{
+	public partial class UpdateForm : Form
+	{
+		private readonly UpdateChecker _checker;
+		private bool _loadednotes;
+
+		public UpdateForm(UpdateChecker checker, string appName)
+		{
+			_checker = checker;
+
+			InitializeComponent();
+
+			this.Height = 179;
+
+			label1.Text = string.Format(label1.Text, appName);
+			currentLabel.Text = string.Format(currentLabel.Text, _checker.CurrentVersion);
+			latestLabel.Text = string.Format(latestLabel.Text, _checker.LatestRelease.TagName);
+
+			if (ThemeManager.isDarkTheme())
+			{
+				this.BackColor = ThemeManager.BackColorDark;
+				this.ForeColor = Color.White;
+
+				buttonYes.BackColor = ThemeManager.SecondColorDark;
+				buttonNo.BackColor = ThemeManager.SecondColorDark;
+				boxReleaseNotes.BackColor = ThemeManager.SecondColorDark;
+			}
+		}
+
+		async void boxReleaseNotes_CheckedChanged(object sender, EventArgs e)
+		{
+			if (boxReleaseNotes.Checked)
+			{
+				this.Height = 386;
+			}
+			else
+			{
+				this.Height = 179;
+			}
+
+			ReleaseNotes.Visible = boxReleaseNotes.Checked;
+
+			if (_loadednotes) return;
+
+			ReleaseNotes.DocumentText = await _checker.RenderReleaseNotes();
+			_loadednotes = true;
+		}
+	}
+}

BIN
quick-color-picker/bin/Debug/GitHubUpdate.dll


BIN
quick-color-picker/bin/Debug/Semver.dll


+ 1 - 0
quick-color-picker/bin/Debug/color-list.txt

@@ -0,0 +1 @@
+90, 126, 143

BIN
quick-color-picker/bin/Debug/quick-color-picker.exe


BIN
quick-color-picker/bin/Debug/quick-color-picker.pdb


BIN
quick-color-picker/bin/Release/GitHubUpdate.dll


BIN
quick-color-picker/bin/Release/Semver.dll


BIN
quick-color-picker/bin/Release/quick-color-picker.exe


BIN
quick-color-picker/bin/Release/quick-color-picker.pdb


BIN
quick-color-picker/obj/Debug/DesignTimeResolveAssemblyReferences.cache


BIN
quick-color-picker/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


BIN
quick-color-picker/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll


+ 0 - 2
quick-color-picker/obj/Debug/quick-color-picker.csproj.FileListAbsolute.txt

@@ -7,8 +7,6 @@ D:\Projects\DotNet\quick-color-picker\quick-color-picker\obj\Debug\quick-color-p
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\obj\Debug\quick-color-picker.exe
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\obj\Debug\quick-color-picker.pdb
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\obj\Debug\quick_color_picker.MainForm.resources
-D:\Projects\DotNet\quick-color-picker\quick-color-picker\bin\Debug\GitHubUpdate.dll
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\bin\Debug\Octokit.dll
-D:\Projects\DotNet\quick-color-picker\quick-color-picker\bin\Debug\Semver.dll
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\obj\Debug\quick_color_picker.AboutForm.resources
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\obj\Debug\quick-color-picker.csproj.CopyComplete

BIN
quick-color-picker/obj/Debug/quick-color-picker.csproj.GenerateResource.cache


BIN
quick-color-picker/obj/Debug/quick-color-picker.csprojAssemblyReference.cache


BIN
quick-color-picker/obj/Debug/quick-color-picker.exe


BIN
quick-color-picker/obj/Debug/quick-color-picker.pdb


BIN
quick-color-picker/obj/Debug/quick_color_picker.MainForm.resources


BIN
quick-color-picker/obj/Release/DesignTimeResolveAssemblyReferences.cache


+ 0 - 2
quick-color-picker/obj/Release/quick-color-picker.csproj.FileListAbsolute.txt

@@ -1,9 +1,7 @@
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\bin\Release\quick-color-picker.exe.config
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\bin\Release\quick-color-picker.exe
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\bin\Release\quick-color-picker.pdb
-D:\Projects\DotNet\quick-color-picker\quick-color-picker\bin\Release\GitHubUpdate.dll
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\bin\Release\Octokit.dll
-D:\Projects\DotNet\quick-color-picker\quick-color-picker\bin\Release\Semver.dll
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\obj\Release\quick-color-picker.csprojAssemblyReference.cache
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\obj\Release\quick_color_picker.AboutForm.resources
 D:\Projects\DotNet\quick-color-picker\quick-color-picker\obj\Release\quick_color_picker.MainForm.resources

BIN
quick-color-picker/obj/Release/quick-color-picker.csproj.GenerateResource.cache


BIN
quick-color-picker/obj/Release/quick-color-picker.csprojAssemblyReference.cache


BIN
quick-color-picker/obj/Release/quick-color-picker.exe


BIN
quick-color-picker/obj/Release/quick-color-picker.pdb


BIN
quick-color-picker/obj/Release/quick_color_picker.MainForm.resources


+ 0 - 2
quick-color-picker/packages.config

@@ -1,6 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
 <packages>
-  <package id="GitHubUpdate" version="1.2.0.0" targetFramework="net472" />
   <package id="Octokit" version="0.3.4" targetFramework="net472" />
-  <package id="semver" version="1.1.2" targetFramework="net472" />
 </packages>

BIN
quick-color-picker/picker.ico


+ 10 - 7
quick-color-picker/quick-color-picker.csproj

@@ -39,15 +39,9 @@
     <ApplicationIcon>picker.ico</ApplicationIcon>
   </PropertyGroup>
   <ItemGroup>
-    <Reference Include="GitHubUpdate, Version=1.2.0.0, Culture=neutral, processorArchitecture=MSIL">
-      <HintPath>..\packages\GitHubUpdate.1.2.0.0\lib\net45\GitHubUpdate.dll</HintPath>
-    </Reference>
     <Reference Include="Octokit, Version=0.3.4.0, Culture=neutral, processorArchitecture=MSIL">
       <HintPath>..\packages\Octokit.0.3.4\lib\net45\Octokit.dll</HintPath>
     </Reference>
-    <Reference Include="Semver, Version=1.1.2.0, Culture=neutral, processorArchitecture=MSIL">
-      <HintPath>..\packages\semver.1.1.2\lib\net451\Semver.dll</HintPath>
-    </Reference>
     <Reference Include="System" />
     <Reference Include="System.Core" />
     <Reference Include="System.Xml.Linq" />
@@ -83,6 +77,13 @@
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="ThemeManager.cs" />
+    <Compile Include="UpdateChecker.cs" />
+    <Compile Include="UpdateForm.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="UpdateForm.Designer.cs">
+      <DependentUpon>UpdateForm.cs</DependentUpon>
+    </Compile>
     <EmbeddedResource Include="AboutForm.resx">
       <DependentUpon>AboutForm.cs</DependentUpon>
     </EmbeddedResource>
@@ -116,8 +117,10 @@
     <None Include="resources\imgs\light\white-about.png" />
   </ItemGroup>
   <ItemGroup>
-    <Content Include="picker.ico" />
     <None Include="resources\imgs\light\white-format.png" />
   </ItemGroup>
+  <ItemGroup>
+    <Content Include="picker.ico" />
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

BIN
quick-color-picker/resources/imgs/install-header.bmp


BIN
quick-color-picker/resources/imgs/picker.ico


BIN
quick-color-picker/resources/imgs/picker64.png


Some files were not shown because too many files changed in this diff