MeshLib C++ Docs
Loading...
Searching...
No Matches
MRAddCustomTheme.h
Go to the documentation of this file.
1#pragma once
4#include "MRMesh/MRVector4.h"
5#include <string>
6#include <vector>
7
8namespace MR
9{
12
13
14class AddCustomThemePlugin : public StatePlugin
15{
16public:
18
19 virtual void drawDialog( ImGuiContext* ) override;
20
21 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& ) const override;
22private:
23 virtual bool onEnable_() override;
24 virtual bool onDisable_() override;
25
26 void updateThemeNames_();
27
28 Json::Value makeJson_();
29
30 void update_();
31 std::string save_();
32
33 bool applyToNewObjectsOnly_{ true };
34 std::vector<Vector4f> sceneColors_;
35 std::vector<Vector4f> ribbonColors_;
36 std::vector<Vector4f> viewportColors_;
38 int selectedUserPreset_{ 0 };
39 std::vector<std::string> userThemesPresets_;
41 ColorTheme::Preset preset_;
42 std::string themeName_;
43};
44
45}
Definition MRAddCustomTheme.h:15
virtual void drawDialog(ImGuiContext *) override
Preset
Definition MRColorTheme.h:24
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
only for bindings generation
Definition MRCameraOrientationPlugin.h:8