Skip to content

Commit

Permalink
change method of dark color detection (Croydon#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmktomato committed Dec 17, 2018
1 parent b03cd49 commit 4b82758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/fast-average-color-4.2.0.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ let VerticalTabsReloaded = class VerticalTabsReloaded
{
if(!color.error)
{
if(color.isDark)
//if(color.isDark)
if(color.value[0] <= 80 && color.value[1] <= 80 && color.value[2] <= 80)
{
imgEl.classList.remove("tab-icon-image-light");
imgEl.classList.add("tab-icon-image-dark");
Expand Down

0 comments on commit 4b82758

Please sign in to comment.