General Terminal

GtGetSystemTheme

Get the system color theme

Syntax

Signature
const char *GtGetSystemTheme( void );

Arguments

No arguments.

Return value

LIGHT, DARK, or UNKNOWN as reported by the active driver.

Description

This is the system theme hint. Use SetColor() to apply the application’s own palette. The library replaces the returned string on the next call.

Example

gtgetsystemtheme.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   printf( "System theme: %s\n", GtGetSystemTheme() );

   return 0;
}

See also