hasDarkBackground property

bool hasDarkBackground
final

Whether the terminal has a dark background.

When true, adaptive colors use their dark variants. When false, adaptive colors use their light variants.

This affects:

  • AdaptiveColor resolution
  • Syntax highlighting theme selection
  • Default text/background contrast choices

Implementation

final bool hasDarkBackground;