Skip to content

Commit

Permalink
Allow for partial color shade calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg committed Aug 28, 2024
1 parent d44ab8f commit e0479d6
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ public MaterialColors(Color base, int luminosity) {

public MaterialColors(Color base, int luminosity, Color f63, Color f102, Color f140, Color f178, Color f216, Color f255) {
this.base = base;
this.f63 = f63;
this.f102 = f102;
this.f140 = f140;
this.f178 = f178;
this.f216 = f216;
this.f255 = f255;
this.f63 = f63 == null ? adjustColorBrightness(base, 63) : f63;
this.f102 = f102 == null ? adjustColorBrightness(base, 102) : f102;
this.f140 = f140 == null ? adjustColorBrightness(base, 140) : f140;
this.f178 = f178 == null ? adjustColorBrightness(base, 178) : f178;
this.f216 = f216 == null ? adjustColorBrightness(base, 216) : f216;
this.f255 = f255 == null ? adjustColorBrightness(base, 255) : f255;
this.luminosity = luminosity;
}

Expand Down

0 comments on commit e0479d6

Please sign in to comment.