mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
feat: Added a theme manager view to make it easier to make new themes
This commit is contained in:
28
plugins/builtin/include/content/views/view_theme_manager.hpp
Normal file
28
plugins/builtin/include/content/views/view_theme_manager.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <hex.hpp>
|
||||
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/ui/view.hpp>
|
||||
|
||||
#include <array>
|
||||
#include <string>
|
||||
|
||||
namespace hex::plugin::builtin {
|
||||
|
||||
class ViewThemeManager : public View {
|
||||
public:
|
||||
ViewThemeManager();
|
||||
~ViewThemeManager() override = default;
|
||||
|
||||
void drawContent() override;
|
||||
|
||||
[[nodiscard]] bool isAvailable() const override { return true; }
|
||||
[[nodiscard]] bool hasViewMenuItemEntry() const override { return false; }
|
||||
|
||||
private:
|
||||
std::string m_themeName;
|
||||
bool m_viewOpen = false;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user