Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ColorMath::ContrastRatios Struct Reference

#include <color_math.h>

Public Attributes

ThemeContrast level
 The contrast level this set belongs to.
qreal readableText
qreal largeText
qreal nonText
qreal divider
qreal distinctSurface
qreal cardSurfaceDark
qreal icon

Detailed Description

One set of derivation contrast ratios. ratiosFor() builds the Standard and the High set; activeRatios() is the set the running theme was derived with.

Member Data Documentation

◆ cardSurfaceDark

qreal ColorMath::ContrastRatios::cardSurfaceDark

A raised card against Base in dark mode. Softer than distinctSurface: a card is a grouping, not a state. Light mode needs no lift, because the card border sets the card apart on a light base.

◆ distinctSurface

qreal ColorMath::ContrastRatios::distinctSurface

A fill against a neighboring one it must read apart from: a hover tint against the selection it is derived from, the welcome header against the window.

◆ divider

qreal ColorMath::ContrastRatios::divider

A divider or border line against the surface it sits on: separators on Base, card borders and lines drawn on a card.

◆ icon

qreal ColorMath::ContrastRatios::icon

A contrast-adapted icon glyph against the surface it is drawn on.

◆ largeText

qreal ColorMath::ContrastRatios::largeText

Text that may be quieter than body text: large or secondary text such as a version label or transient state text.

◆ nonText

qreal ColorMath::ContrastRatios::nonText

Non-text elements (control borders, progress fills) against their neighbor.

◆ readableText

qreal ColorMath::ContrastRatios::readableText

Body text against its surface (WCAG AA, AAA in High).


The documentation for this struct was generated from the following file: