1
0
mirror of synced 2024-11-28 17:40:51 +01:00
ImHex/plugins/builtin/include/content/views/view_theme_manager.hpp
2023-11-21 13:47:50 +01:00

27 lines
637 B
C++

#pragma once
#include <hex/ui/view.hpp>
#include <string>
namespace hex::plugin::builtin {
class ViewThemeManager : public View::Floating {
public:
ViewThemeManager();
~ViewThemeManager() override = default;
void drawContent() override;
[[nodiscard]] bool shouldDraw() const override { return true; }
[[nodiscard]] bool hasViewMenuItemEntry() const override { return false; }
private:
std::string m_themeName;
std::optional<ImColor> m_startingColor;
std::optional<u32> m_hoveredColorId;
std::optional<std::string> m_hoveredHandlerName;
};
}