diff --git a/lib/api/model/model.dart b/lib/api/model/model.dart index 5fef1fefea..1b4aef45ce 100644 --- a/lib/api/model/model.dart +++ b/lib/api/model/model.dart @@ -494,7 +494,7 @@ ColorSwatch streamColorSwatch(int base) { // TODO fix bug where our results differ from the replit's (see unit tests) StreamColor.iconOnBarBackground: clamped20to75AsHsl - .withLightness(clamped20to75AsHsl.lightness - 0.12) + .withLightness((clamped20to75AsHsl.lightness - 0.12).clamp(0.0, 1.0)) .toColor(), // Follows `.recepient` in Vlad's replit: