5#include "MRPch/MRJson.h"
64 MRVIEWER_API
static void apply();
173 MRVIEWER_API
static boost::signals2::connection
onChanged(
const std::function<
void()>& slot, boost::signals2::connect_position
position = boost::signals2::at_back );
180 std::vector<Color> sceneColors_;
186 std::string themeName_;
188 std::vector<std::string> foundUserThemes_;
190 using ChangedSignal =
Signal<void()>;
191 ChangedSignal changedSignal_;
Definition MRColorTheme.h:17
static MRVIEWER_API void updateUserThemesList()
static MRVIEWER_API void setupUserTheme(const std::string &themeName)
static MRVIEWER_API bool isInitialized()
static MRVIEWER_API ColorTheme & instance()
static MRVIEWER_API void setupFromJson(const Json::Value &value, Type type=Type::User)
static MRVIEWER_API boost::signals2::connection onChanged(const std::function< void()> &slot, boost::signals2::connect_position position=boost::signals2::at_back)
Connects given slot to receive signal on every Color Theme change, triggered in apply.
static MRVIEWER_API const char * getPresetName(Preset type)
static MRVIEWER_API const char * getRibbonColorTypeName(RibbonColorsType type)
static MRVIEWER_API void setupFromFile(const std::filesystem::path &path, Type type=Type::User)
static MRVIEWER_API void setRibbonColor(const Color &color, RibbonColorsType type)
static MRVIEWER_API std::filesystem::path getUserThemesDirectory()
static MRVIEWER_API std::vector< std::string > foundUserThemes()
static MRVIEWER_API void setupByTypeName(Type type, const std::string &name)
static MRVIEWER_API Preset getPreset()
static MRVIEWER_API void setupDefaultLight()
static MRVIEWER_API void setupDefaultDark()
ViewportColorsType
Definition MRColorTheme.h:150
static MRVIEWER_API void apply()
static MRVIEWER_API const char * getViewportColorTypeName(ViewportColorsType type)
static MRVIEWER_API void serializeCurrentToFile(const std::filesystem::path &path)
static MRVIEWER_API const Color & getRibbonColor(RibbonColorsType type)
static MRVIEWER_API void setViewportColor(const Color &color, ViewportColorsType type)
Preset
Definition MRColorTheme.h:22
static MRVIEWER_API const Color & getViewportColor(ViewportColorsType type)
Type
Definition MRColorTheme.h:33
static MRVIEWER_API Type getThemeType()
RibbonColorsType
Definition MRColorTheme.h:70
@ RibbonButtonActiveHovered
@ RibbonButtonActiveClicked
@ GradBtnSecStyleActiveEnd
@ GradBtnSecStyleActiveStart
@ GradBtnSecStyleHoverStart
@ GradBtnSecStyleHoverEnd
@ CollapseHeaderBackground
static MRVIEWER_API void serializeCurrentToJson(Json::Value &root)
static MRVIEWER_API void resetImGuiStyle()
static MRVIEWER_API const std::string & getThemeName()
Definition MRCameraOrientationPlugin.h:8