Vixen
dd8b0a81
csharp
public enum ContrastPreference

Whether the user has asked for more or less contrast.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ custom is a fourth value and not a synonym for either. Media Queries 5 § 8.3 gives it to a platform whose palette was chosen by the user rather than pushed towards or away from the extremes, and a rule written for more is not what that user asked for. Collapsing it would make every high-contrast rule apply to a chosen palette as well.

Fields and properties (4)

  • NoPreference

    No preference expressed.

  • More

    More contrast.

  • Less

    Less contrast.

  • Custom

    A palette the user chose, which is neither more nor less.

Used by (5)

  • AccessibilityWiringTestsVixen.Platform.Ui.Tests
  • MediaPreferencesVixen.Ui.Styling
  • MediaQueryVixen.Ui.Styling
  • PlatformInputVixen.Platform.Ui
  • VariantCoverageTestsVixen.Ui.Styling.Utilities.Tests