sincerely Singaporean

If you have not done so, read this full tutorial on how to use SGEXTN to build an application.

SGXThemeColours

see header file

see source file

class SGXThemeColours;

part of SGEXTN module SG_Widgets

provides access to theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGXThemeColours.h›

CMake target for BuildLah: SGEXTN::SG_Widgets

see this link for more information about BuildLah

parent class: (none)

children classes: (none)

static member functions

static SGLArraySGXColourRGBAgenerateSincerityUIThemeSet(SGXColourRGBA baseColour, bool darkMode);

static SGXColourRGBA getThemeColour(int themeColour);

Detailed Description

SGXThemeColours allows theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ to be accessed as SGXColourRGBA values. This can be helpful to set default colour choices to match theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.

Implementation Details

Returns theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.

static SGLArraySGXColourRGBAgenerateSincerityUIThemeSet(SGXColourRGBA baseColour, bool darkMode);

Returns a SGLArray of SGXColourRGBA representing a Sincerity UI compatible theme with hue and saturation following that of baseColour. This is a light mode theme if darkMode is false, and dark mode otherwise.

All Sincerity UI compatible themes are WCAG AAA compliant.

static SGXColourRGBA getThemeColour(int themeColour);

Returns theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ number themeColour.

If themeColour is in range, this returns an actual colour. Otherwise it gives fully transparent black.

©2025 05524F.sg (Singapore)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects