themeApp property

DynamicColor get themeApp

Implementation

DynamicColor get themeApp => DynamicColor(
  name: "theme_app",
  palette: (scheme) =>
      scheme.isDark ? scheme.secondaryPalette : scheme.primaryPalette,
  tone: (scheme) => scheme.isDark
      ? switch (scheme.variant) {
          .tonalSpot ||
          .expressive => _tMinC(scheme.primaryPalette, 20.0, 93.0),
          .vibrant => _tMinC(scheme.primaryPalette, 66.0, 93.0),
          _ => 20.0,
        }
      : switch (scheme.variant) {
          .tonalSpot => _tMaxC(scheme.primaryPalette, 0.0, 90.0),
          .expressive =>
            Hct.isCyan(scheme.primaryPalette.hue)
                ? 88.0
                : _tMaxC(scheme.primaryPalette, 78.0, 90.0),
          .vibrant =>
            Hct.isCyan(scheme.primaryPalette.hue)
                ? 88.0
                : _tMaxC(scheme.primaryPalette, 0.0, 66.0),
          _ => 90.0,
        },
  isBackground: true,
);