We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c502d9 + 8ac095f commit 855d999Copy full SHA for 855d999
material-color-utilities/src/main/java/dynamiccolor/ColorSpec2025.java
@@ -471,7 +471,10 @@ public DynamicColor onSurfaceVariant() {
471
}
472
})
473
.setContrastCurve(
474
- (s) -> s.platform == PHONE ? getContrastCurve(4.5) : getContrastCurve(7))
+ (s) ->
475
+ s.platform == PHONE
476
+ ? (s.isDark ? getContrastCurve(6) : getContrastCurve(4.5))
477
+ : getContrastCurve(7))
478
.build();
479
return super.onSurfaceVariant().toBuilder()
480
.extendSpecVersion(SpecVersion.SPEC_2025, color2025)
0 commit comments