diff --git a/es-app/src/guis/GuiGamelistOptions.cpp b/es-app/src/guis/GuiGamelistOptions.cpp index 0f38a932d..d3afd0077 100644 --- a/es-app/src/guis/GuiGamelistOptions.cpp +++ b/es-app/src/guis/GuiGamelistOptions.cpp @@ -190,6 +190,13 @@ bool GuiGamelistOptions::input(InputConfig* config, Input input) return mMenu.input(config, input); } +HelpStyle GuiGamelistOptions::getHelpStyle() +{ + HelpStyle style = HelpStyle(); + style.applyTheme(mSystem->getTheme(), "system"); + return style; +} + std::vector GuiGamelistOptions::getHelpPrompts() { auto prompts = mMenu.getHelpPrompts(); diff --git a/es-app/src/guis/GuiGamelistOptions.h b/es-app/src/guis/GuiGamelistOptions.h index d856cd175..8088997d1 100644 --- a/es-app/src/guis/GuiGamelistOptions.h +++ b/es-app/src/guis/GuiGamelistOptions.h @@ -14,6 +14,7 @@ public: virtual bool input(InputConfig* config, Input input) override; virtual std::vector getHelpPrompts() override; + virtual HelpStyle getHelpStyle() override; private: void openGamelistFilter(); diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index b210c283b..154e42212 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -323,6 +323,13 @@ bool GuiMenu::input(InputConfig* config, Input input) return false; } +HelpStyle GuiMenu::getHelpStyle() +{ + HelpStyle style = HelpStyle(); + style.applyTheme(ViewController::get()->getState().getSystem()->getTheme(), "system"); + return style; +} + std::vector GuiMenu::getHelpPrompts() { std::vector prompts; diff --git a/es-app/src/guis/GuiMenu.h b/es-app/src/guis/GuiMenu.h index eff9ebd3f..19fa1d334 100644 --- a/es-app/src/guis/GuiMenu.h +++ b/es-app/src/guis/GuiMenu.h @@ -12,6 +12,7 @@ public: bool input(InputConfig* config, Input input) override; void onSizeChanged() override; std::vector getHelpPrompts() override; + HelpStyle getHelpStyle() override; private: void addEntry(const char* name, unsigned int color, bool add_arrow, const std::function& func); diff --git a/es-app/src/guis/GuiSettings.cpp b/es-app/src/guis/GuiSettings.cpp index 806dae2c9..d1ed7ad60 100644 --- a/es-app/src/guis/GuiSettings.cpp +++ b/es-app/src/guis/GuiSettings.cpp @@ -49,6 +49,13 @@ bool GuiSettings::input(InputConfig* config, Input input) return GuiComponent::input(config, input); } +HelpStyle GuiSettings::getHelpStyle() +{ + HelpStyle style = HelpStyle(); + style.applyTheme(ViewController::get()->getState().getSystem()->getTheme(), "system"); + return style; +} + std::vector GuiSettings::getHelpPrompts() { std::vector prompts = mMenu.getHelpPrompts(); diff --git a/es-app/src/guis/GuiSettings.h b/es-app/src/guis/GuiSettings.h index 06e88d322..573e4e57c 100644 --- a/es-app/src/guis/GuiSettings.h +++ b/es-app/src/guis/GuiSettings.h @@ -1,5 +1,6 @@ #include "GuiComponent.h" #include "components/MenuComponent.h" +#include "SystemData.h" // This is just a really simple template for a GUI that calls some save functions when closed. class GuiSettings : public GuiComponent @@ -15,6 +16,7 @@ public: bool input(InputConfig* config, Input input) override; std::vector getHelpPrompts() override; + HelpStyle getHelpStyle() override; private: MenuComponent mMenu;