Skip to content

Commit

Permalink
fix(moneymanagerex#5861): detect dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
n-stein committed Apr 27, 2023
1 parent d88456b commit fd5d5a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platfdep_unix.cpp
Expand Up @@ -20,6 +20,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "platfdep.h"
#include <wx/stdpaths.h>
#include <wx/filename.h>
#include <wx/settings.h>

//----------------------------------------------------------------------------

namespace
Expand Down Expand Up @@ -109,4 +111,4 @@ const wxString mmex::GetAppName()
}
//----------------------------------------------------------------------------

bool mmex::isDarkMode() { return false; } // Not implemented yet
bool mmex::isDarkMode() { return wxSystemSettings::GetAppearance().IsDark(); }

0 comments on commit fd5d5a1

Please sign in to comment.