Skip to content

Commit

Permalink
Remove ribbon dark mode code
Browse files Browse the repository at this point in the history
Latest wx 3.3 handles this now
  • Loading branch information
Blake-Madden committed Jan 19, 2025
1 parent 7da1e64 commit c69210b
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/gui/i18nframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,40 +137,6 @@ void I18NFrame::InitControls()
}
}

if (wxSystemSettings::GetAppearance().IsDark())
{
m_ribbon->GetArtProvider()->SetColourScheme(
wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE),
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW), wxColour(253, 211, 155));

m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_BUTTON_BAR_LABEL_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_BUTTON_BAR_LABEL_DISABLED_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_TOP_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(
wxRIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_GRADIENT_TOP_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
m_ribbon->GetArtProvider()->SetColour(
wxRIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_GRADIENT_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_TAB_ACTIVE_LABEL_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_PANEL_LABEL_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_PANEL_MINIMISED_LABEL_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_PANEL_HOVER_LABEL_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_TAB_LABEL_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
m_ribbon->GetArtProvider()->SetColour(wxRIBBON_ART_TAB_HOVER_LABEL_COLOUR,
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
}

m_ribbon->Realize();

wxSizer* mainSizer = new wxBoxSizer(wxVERTICAL);
Expand Down

0 comments on commit c69210b

Please sign in to comment.