OpenCPN Partial API docs
Loading...
Searching...
No Matches
color_handler.h
Go to the documentation of this file.
1/**************************************************************************
2 * Copyright (C) 2018 by David S. Register *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
16 **************************************************************************/
17
24#ifndef _COLOR_HANDLER_H
25#define _COLOR_HANDLER_H
26
27#include <wx/colour.h>
28
29wxColour GetGlobalColor(wxString colorName);
44
48wxColour GetDialogColor(DialogColor color);
49
50#endif // _COLOR_HANDLER_H
wxColour GetDialogColor(DialogColor color)
Retrieves a dialog color based on its role in the application's dialogs.
DialogColor
Enumeration of color types used in dialogs.
@ DLG_ACCENT
Accent color.
@ DLG_SELECTED_ACCENT
Accent color for selected items.
@ DLG_TEXT
Text color.
@ DLG_SELECTED_BACKGROUND
Background color for selected items.
@ DLG_UNSELECTED_ACCENT
Accent color for unselected items.
@ DLG_UNSELECTED_BACKGROUND
Background color for unselected items.
@ DLG_BACKGROUND
Background color of the dialog.
@ DLG_HIGHLIGHT
Highlight color.