Truxton set review status color

From truxwiki.com
Jump to navigation Jump to search

Sets the RGB color of a review status when displayed in the GUI. This color change is stored per account.

Syntax

void truxton_set_review_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 status. It should match the value in the [ID] column of a record in the [ReviewStatus] 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_review_status_color( truxton, 1, COLOR_BLACK, COLOR_YELLOW );

   truxton_destroy( truxton );
}