MeshLib Documentation
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{
10
12{
13public:
15
16 virtual void drawDialog( float menuScaling, ImGuiContext* ) override;
17
18 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& ) const override;
19private:
20 virtual bool onEnable_() override;
21 virtual bool onDisable_() override;
22
23 void updateThemeNames_();
24
25 Json::Value makeJson_();
26
27 void update_();
28 std::string save_();
29
30 bool applyToNewObjectsOnly_{ true };
31 std::vector<Vector4f> sceneColors_;
32 std::vector<Vector4f> ribbonColors_;
33 std::vector<Vector4f> viewportColors_;
34 // whole color theme preset
35 int selectedUserPreset_{ 0 };
36 std::vector<std::string> userThemesPresets_;
37 // ImGui preset
38 ColorTheme::Preset preset_;
39 std::string themeName_;
40};
41
42}
Definition MRAddCustomTheme.h:12
virtual void drawDialog(float menuScaling, ImGuiContext *) override
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
Preset
Definition MRColorTheme.h:22
Definition MRViewerFwd.h:60
Definition MRCameraOrientationPlugin.h:8