OpenCPN Partial API docs
Loading...
Searching...
No Matches
color_handler.h File Reference

Global color handling by name. More...

#include <wx/colour.h>

Go to the source code of this file.

Enumerations

enum  DialogColor {
  DLG_BACKGROUND , DLG_SELECTED_BACKGROUND , DLG_UNSELECTED_BACKGROUND , DLG_ACCENT ,
  DLG_SELECTED_ACCENT , DLG_UNSELECTED_ACCENT , DLG_TEXT , DLG_HIGHLIGHT
}
 Enumeration of color types used in dialogs. More...
 

Functions

wxColour GetGlobalColor (wxString colorName)
 
wxColour GetDialogColor (DialogColor color)
 Retrieves a dialog color based on its role in the application's dialogs.
 

Detailed Description

Global color handling by name.

Definition in file color_handler.h.

Enumeration Type Documentation

◆ DialogColor

Enumeration of color types used in dialogs.

This enum defines different color roles used in the application's dialogs.

Enumerator
DLG_BACKGROUND 

Background color of the dialog.

DLG_SELECTED_BACKGROUND 

Background color for selected items.

DLG_UNSELECTED_BACKGROUND 

Background color for unselected items.

DLG_ACCENT 

Accent color.

DLG_SELECTED_ACCENT 

Accent color for selected items.

DLG_UNSELECTED_ACCENT 

Accent color for unselected items.

DLG_TEXT 

Text color.

DLG_HIGHLIGHT 

Highlight color.

Definition at line 34 of file color_handler.h.

Function Documentation

◆ GetDialogColor()

wxColour GetDialogColor ( DialogColor  color)

Retrieves a dialog color based on its role in the application's dialogs.

Definition at line 59 of file color_handler.cpp.

◆ GetGlobalColor()

wxColour GetGlobalColor ( wxString  colorName)

Definition at line 40 of file color_handler.cpp.