mwg API
    Preparing search index...

    Variable highContrastThemeConst

    highContrastTheme: Theme = ...

    A ready-made high-contrast preset: pure white text on black panels, a thicker border, and a near-opaque modal overlay. Not new capability - setTheme already replaces the whole palette a game reads from, so any high-contrast theme was always a second Theme object away - but a game wanting one should not have to compose it from scratch, the same recipe ui.HelpScreen already is over Window/ListView/Label. setTheme(highContrastTheme) applies it; a game with its own colours can still start from this and override just what it wants to keep, the same as any partial object setTheme accepts.

    import { setTheme, highContrastTheme } from '@datamoc/mw_games/two-d/ui';

    setTheme(highContrastTheme); // an accessibility toggle in the settings screen