QtCraft API C++ classes QML types Handbook

QcUiPalette::TextPair Struct

struct QcUiPalette::TextPair

A text colour over its backgrounds: layers from the world upwards (the first one lies directly on the world). More...

Header: #include <clientcore/settings/QcUiPalette.h>

Public Variables

bool large
QList<QcUiPalette::Role> layers
QcUiPalette::Role text
const char *where

Detailed Description

Large texts (at least 18 pt, or 14 pt bold) need 3:1 instead of 4.5:1.

Member Variable Documentation

bool TextPair::large

Whether the text is large (3:1 suffices).

QList<QcUiPalette::Role> TextPair::layers

The backgrounds it stands on, from the world upwards.

QcUiPalette::Role TextPair::text

The text colour.

const char *TextPair::where

Where the pair appears, for the test's messages.