Truxton set investigation status color
Revision as of 07:11, 16 August 2025 by Sam (talk | contribs) (Created page with "Sets the RGB color of an investigation status when displayed in the GUI. This color change is stored per account. =Syntax= <source lang="C"> void t...")
Sets the RGB color of an investigation status when displayed in the GUI. This color change is stored per account.
Contents
Syntax
void truxton_set_investigation_status_color( uint64_t truxton_handle, int64_t id, uint64_t foreground_color, uint64_t background_color );
Parameters
truxton_handle
The Truxton instance that contains this investigation.
This handle comes from calling truxton_create().
id
The identifier of the investigation status.
It should match the value in the [ID] column of a record in the [InvestigationStatus] table.
foreground_color
The RGB value of the color to use for the text.
background_color
The RGB value of the color to use for the background.
Sample
#define COLOR_BLACK (0)
#define COLOR_YELLOW (0xFFFF00)
void set_my_colors( void )
{
uint64_t truxton = truxton_create();
truxton_set_investigation_status_color( truxton, INVESTIGATION_STATUS_WAITING, COLOR_BLACK, COLOR_YELLOW );
truxton_destroy( truxton );
}