summaryrefslogtreecommitdiff
path: root/wx+/darkmode.h
blob: 91d2a789d023b4814409e8a0d3127f8a9319aa8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// *****************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under    *
// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0          *
// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
// *****************************************************************************

#ifndef DARKMODE_H_754298057018
#define DARKMODE_H_754298057018

#include <zen/file_error.h>
#include <wx/app.h>


namespace zen
{
bool darkModeAvailable();

//support not only "dark mode" but dark themes in general
using ColorTheme = wxApp::Appearance; //why reinvent the wheel?

void colorThemeInit(wxApp& app, ColorTheme colTheme); //throw FileError
void colorThemeCleanup();

bool equalAppearance(ColorTheme colTheme1, ColorTheme colTheme2);
void changeColorTheme(ColorTheme colTheme); //throw FileError
}

#endif //DARKMODE_H_754298057018
bgstack15