Skip to content

Why FlexSurfaceMode.highScaffoldLowSurface and FlexSurfaceMode.highScaffoldLowSurfaces? #262

Answered by rydmike
sgehrman asked this question in Q&A
Discussion options

You must be logged in to vote

Yes this is a correct observation. In version 8 and later they are the same.

      // Result: Surfaces (1/2x) Scaffold (3x)
      case FlexSurfaceMode.highScaffoldLowSurface:
        return FlexAlphaValues(
          primaryAlpha: blendLevel,
          primaryContainerAlpha: blendLevel * 2,
          secondaryAlpha: blendLevel,
          secondaryContainerAlpha: blendLevel * 2,
          tertiaryAlpha: blendLevel,
          tertiaryContainerAlpha: blendLevel * 2,
          errorAlpha: blendLevel,
          errorContainerAlpha: blendLevel * 2,
          surfaceAlpha: blendLevel ~/ 2,
          inverseSurfaceAlpha: blendLevel ~/ 2,
          dialogAlpha: blendLevel ~/ 2,
          scaffoldA…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This issue is a usage question and will be moved to the Discussions section. works as expected Reported issue is not a bug, everything works as expected and designed package Report concerns the FlexColorScheme core package V8 This issue concerns version 8 and will be addressed in it
2 participants
Converted from issue

This discussion was converted from issue #261 on November 23, 2024 18:05.