2023-02-16 18:06:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex/ui/view.hpp>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
|
2023-11-21 13:47:50 +01:00
|
|
|
class ViewThemeManager : public View::Floating {
|
2023-02-16 18:06:40 +01:00
|
|
|
public:
|
|
|
|
ViewThemeManager();
|
|
|
|
~ViewThemeManager() override = default;
|
|
|
|
|
|
|
|
void drawContent() override;
|
|
|
|
|
2023-11-21 13:47:50 +01:00
|
|
|
[[nodiscard]] bool shouldDraw() const override { return true; }
|
2023-02-16 18:06:40 +01:00
|
|
|
[[nodiscard]] bool hasViewMenuItemEntry() const override { return false; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string m_themeName;
|
2023-11-14 22:27:29 +01:00
|
|
|
|
|
|
|
std::optional<ImColor> m_startingColor;
|
|
|
|
std::optional<u32> m_hoveredColorId;
|
|
|
|
std::optional<std::string> m_hoveredHandlerName;
|
2023-02-16 18:06:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|