33 virtual void RenderUI(
bool& IsOpen)
override;
34 virtual void Render()
override {}
36 static void SetTheme(
const ETheme Theme);
37 static std::string GetCurrentThemeName() {
return CurrentThemeName; }
39 static void LoadDefaultTheme();
41 static void SetSelectorEnabled(
const bool InEnabled);
42 FORCEINLINE
static bool IsSelectorEnabled() {
return bSelectorEnabled; }
45 static bool LoadSavedTheme(std::string_view ThemeName);
50 inline static std::string_view THEME_FILE_EXTENSION =
"lktheme";
52 virtual void SerializeToYaml(YAML::Emitter& Out)
const override;
53 virtual void DeserializeFromYaml(
const YAML::Node& Data)
override;
55 static void LoadTheme(
const ETheme Theme, ImVec4* Colors);
56 void LoadThemeFromYaml(
const YAML::Node& Data);
58 void UI_SaveThemePopup();
59 void UI_SelectThemePopup();
61 void UI_ColorPicker();
63 static bool IsDefaultTheme(std::string_view InThemeName)
67 if (InThemeName == Enum::ToString(Theme))
77 inline static std::string CurrentThemeName{};
78 inline static bool bSelectorEnabled =
false;
79 inline static std::filesystem::path ThemesDirectory{};
81 friend class LEditorLayer;