Glass: subtler frosted look instead of a metallic sheen
Top highlight, rim and shadow are much fainter in both themes, the highlight fades out sooner (0.55 -> 0.4), the backdrop saturation boost drops from 1.6 to 1.25 and the fill opacity rises from 0.78 to 0.82. One backdrop filter per piece and the solid high-contrast piece stay.
This commit is contained in:
@@ -46,6 +46,17 @@ void main() {
|
||||
expect(GlassLook.forFill(Colors.black), same(GlassLook.dark));
|
||||
});
|
||||
|
||||
test('the look stays subtle frosted glass, not a metallic sheen', () {
|
||||
for (final look in [GlassLook.light, GlassLook.dark]) {
|
||||
expect(look.highlight.a, lessThanOrEqualTo(0.2));
|
||||
expect(look.rimTop.a, lessThanOrEqualTo(0.35));
|
||||
expect(look.rimTop.a - look.rimBottom.a, lessThanOrEqualTo(0.2));
|
||||
expect(look.shadow.a, lessThanOrEqualTo(0.26));
|
||||
}
|
||||
expect(GlassLook.highlightExtent, lessThanOrEqualTo(0.4));
|
||||
expect(GlassLook.saturation, inInclusiveRange(1.0, 1.3));
|
||||
});
|
||||
|
||||
testWidgets('high contrast keeps a solid piece without blur or sheen', (
|
||||
tester,
|
||||
) async {
|
||||
|
||||
Reference in New Issue
Block a user