Skip to content

Commit

Permalink
Inactive icon wrong color fix
Browse files Browse the repository at this point in the history
  • Loading branch information
husker-dev committed Jun 20, 2020
1 parent 2ba4f6b commit 29f6e12
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/com/husker/weblafplugin/core/tools/Tools.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,7 @@ public static Icon getDarkerIcon(Icon icon){
for(int i = 0; i < wr.getWidth(); i++){
for(int j = 0; j < wr.getHeight(); j++){
wr.getPixel(i, j, pixel);
float percent = UIUtil.isUnderDarcula() ? 0.6f : 1.6f;
pixel[0] = (int) (pixel[0] * percent);
pixel[1] = (int) (pixel[1] * percent);
pixel[2] = (int) (pixel[2] * percent);
pixel[3] = (int) (pixel[3] - pixel[3] * 0.3f);
wr.setPixel(i, j, pixel);
}
}
Expand Down

0 comments on commit 29f6e12

Please sign in to comment.