From cbdcccb8b2b2b8d03462810353c34bd6a8233433 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 12 Jun 2020 10:48:04 -0500 Subject: [PATCH] Fix RGB->HSL precision issues Moved back to chromatism. Well worth it for the accuracy. --- app/soapbox/utils/theme.js | Bin 582 -> 588 bytes package.json | 2 +- yarn.lock | 23 +++++------------------ 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/app/soapbox/utils/theme.js b/app/soapbox/utils/theme.js index 4d0205c5688be2fb3180dc7cdd3fc0d2424ead9e..a4fb01c8c46b1c4d2a8b32444f55f8e865e12928 100644 GIT binary patch delta 81 zcmX@ca)xDsg-o?Va(-S}YEg+otwLH+ey)Ogat4q}EXgd+ofvpgwOS!VN1<3pAqOaL c3sb9+RFs&P;+&t8U!Kk>+MEMkYo8=e8L_ diff --git a/package.json b/package.json index 1477b30309..d365818ba3 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "babel-runtime": "^6.26.0", "blurhash": "^1.0.0", + "chromatism": "^3.0.0", "classnames": "^2.2.5", "compression-webpack-plugin": "^3.0.0", "cross-env": "^6.0.0", @@ -71,7 +72,6 @@ "file-loader": "^4.0.0", "font-awesome": "^4.7.0", "glob": "^7.1.1", - "hex-to-hsl": "^1.0.2", "html-webpack-harddisk-plugin": "^1.0.1", "html-webpack-plugin": "^4.3.0", "http-link-header": "^1.0.2", diff --git a/yarn.lock b/yarn.lock index 69f21befbd..aee589968c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3055,6 +3055,11 @@ chownr@^1.1.1: resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.1.tgz#54726b8b8fff4df053c42187e801fb4412df1494" integrity sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g== +chromatism@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/chromatism/-/chromatism-3.0.0.tgz#a7249d353c1e4f3577e444ac41171c4e2e624b12" + integrity sha1-pySdNTweTzV35ESsQRccTi5iSxI= + chrome-trace-event@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz#234090ee97c7d4ad1a2c4beae27505deffc608a4" @@ -5607,19 +5612,6 @@ hex-color-regex@^1.1.0: resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e" integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ== -hex-to-hsl@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/hex-to-hsl/-/hex-to-hsl-1.0.2.tgz#d5c59ece00178444e821c8fc58a430afc09831c2" - integrity sha1-1cWezgAXhEToIcj8WKQwr8CYMcI= - dependencies: - hex-to-rgb "^1.0.1" - rgb-to-hsl "0.0.2" - -hex-to-rgb@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/hex-to-rgb/-/hex-to-rgb-1.0.1.tgz#100b9df126b32f2762adf8486be68c65ef8ed2a4" - integrity sha1-EAud8SazLydirfhIa+aMZe+O0qQ= - history@^4.7.2: version "4.10.1" resolved "https://registry.yarnpkg.com/history/-/history-4.10.1.tgz#33371a65e3a83b267434e2b3f3b1b4c58aad4cf3" @@ -10214,11 +10206,6 @@ rgb-regex@^1.0.1: resolved "https://registry.yarnpkg.com/rgb-regex/-/rgb-regex-1.0.1.tgz#c0e0d6882df0e23be254a475e8edd41915feaeb1" integrity sha1-wODWiC3w4jviVKR16O3UGRX+rrE= -rgb-to-hsl@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/rgb-to-hsl/-/rgb-to-hsl-0.0.2.tgz#36f9fc286376b90acc457e699005b4cb42d350ec" - integrity sha1-Nvn8KGN2uQrMRX5pkAW0y0LTUOw= - rgba-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3"