Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
epicX67 committed Apr 15, 2020
1 parent 593ba24 commit 509ff2d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/main/java/com/shrp/themes/Operation.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ void patchStockFile()throws IOException{
}
p=new PngTinter("files/bgRes/","out/res/");
p.applyTint(backgroundColor);
p=new PngTinter("files\\bgRes2\\","out\\res\\");
p.applyTint(Operation.getNavBgColor(backgroundColor));
switch(dashType){
case 1:
p=new PngTinter("files/dIco/dt1/","out/res/");
Expand Down Expand Up @@ -258,7 +260,7 @@ static String getNavBgColor(String c1){
r++;
x++;
}
x=0;
x=0;
while(g<255&&x<20){
g++;
x++;
Expand All @@ -268,6 +270,22 @@ static String getNavBgColor(String c1){
b++;
x++;
}
}else if(r>190&&g>190&&b>190){
x=0;
while(r>0&&x<20){
r--;
x++;
}
x=0;
while(g>0&&x<20){
g--;
x++;
}
x=0;
while(b>0&&x<20){
b--;
x++;
}
}else if(r<128||g<128||b<128){
x=0;
while(r>0&&x<20){
Expand Down

0 comments on commit 509ff2d

Please sign in to comment.