#include <MRColorTheme.h>
|
enum class | Preset { Dark
, Default = Dark
, Light
, Count
} |
|
enum class | Type { Default
, User
} |
|
enum class | RibbonColorsType {
Background
, BackgroundSecStyle
, HeaderBackground
, HeaderSeparator
,
TopPanelBackground
, QuickAccessBackground
, Borders
, TabHovered
,
TabClicked
, TabActive
, TabActiveHovered
, TabActiveClicked
,
TabText
, TabActiveText
, DialogTab
, DialogTabHovered
,
DialogTabActive
, DialogTabActiveHovered
, DialogTabText
, DialogTabActiveText
,
ToolbarHovered
, ToolbarClicked
, ModalBackground
, Text
,
TextEnabled
, TextDisabled
, TextSelectedBg
, RibbonButtonHovered
,
RibbonButtonClicked
, RibbonButtonActive
, RibbonButtonActiveHovered
, RibbonButtonActiveClicked
,
ThirdpartyBackground
, ProgressBarBackground
, FrameBackground
, CollapseHeaderBackground
,
SelectedObjectText
, SelectedObjectFrame
, GradientStart
, GradientEnd
,
TextContrastBackground
, GradBtnStart
, GradBtnHoverStart
, GradBtnActiveStart
,
GradBtnDisableStart
, GradBtnEnd
, GradBtnHoverEnd
, GradBtnActiveEnd
,
GradBtnDisableEnd
, GradBtnText
, GradBtnSecStyleStart
, GradBtnSecStyleHoverStart
,
GradBtnSecStyleActiveStart
, GradBtnSecStyleEnd
, GradBtnSecStyleHoverEnd
, GradBtnSecStyleActiveEnd
,
Count
} |
|
enum class | ViewportColorsType { Background
, Borders
, Count
} |
|
◆ Preset
Enumerator |
---|
Dark | |
Default | |
Light | |
Count | |
◆ RibbonColorsType
Enumerator |
---|
Background | |
BackgroundSecStyle | |
HeaderBackground | |
HeaderSeparator | |
TopPanelBackground | |
QuickAccessBackground | |
Borders | |
TabHovered | |
TabClicked | |
TabActive | |
TabActiveHovered | |
TabActiveClicked | |
TabText | |
TabActiveText | |
DialogTab | |
DialogTabHovered | |
DialogTabActive | |
DialogTabActiveHovered | |
DialogTabText | |
DialogTabActiveText | |
ToolbarHovered | |
ToolbarClicked | |
ModalBackground | |
Text | |
TextEnabled | |
TextDisabled | |
TextSelectedBg | |
RibbonButtonHovered | |
RibbonButtonClicked | |
RibbonButtonActive | |
RibbonButtonActiveHovered | |
RibbonButtonActiveClicked | |
ThirdpartyBackground | |
ProgressBarBackground | |
FrameBackground | |
CollapseHeaderBackground | |
SelectedObjectText | |
SelectedObjectFrame | |
GradientStart | |
GradientEnd | |
TextContrastBackground | |
GradBtnStart | |
GradBtnHoverStart | |
GradBtnActiveStart | |
GradBtnDisableStart | |
GradBtnEnd | |
GradBtnHoverEnd | |
GradBtnActiveEnd | |
GradBtnDisableEnd | |
GradBtnText | |
GradBtnSecStyleStart | |
GradBtnSecStyleHoverStart | |
GradBtnSecStyleActiveStart | |
GradBtnSecStyleEnd | |
GradBtnSecStyleHoverEnd | |
GradBtnSecStyleActiveEnd | |
Count | |
◆ Type
◆ ViewportColorsType
Enumerator |
---|
Background | |
Borders | |
Count | |
◆ apply()
static MRVIEWER_API void MR::ColorTheme::apply |
( |
| ) |
|
|
static |
◆ foundUserThemes()
static MRVIEWER_API std::vector< std::string > MR::ColorTheme::foundUserThemes |
( |
| ) |
|
|
static |
◆ getPreset()
static MRVIEWER_API Preset MR::ColorTheme::getPreset |
( |
| ) |
|
|
static |
◆ getPresetName()
static MRVIEWER_API const char * MR::ColorTheme::getPresetName |
( |
Preset | type | ) |
|
|
static |
◆ getRibbonColor()
◆ getRibbonColorTypeName()
static MRVIEWER_API const char * MR::ColorTheme::getRibbonColorTypeName |
( |
RibbonColorsType | type | ) |
|
|
static |
◆ getThemeName()
static MRVIEWER_API const std::string & MR::ColorTheme::getThemeName |
( |
| ) |
|
|
static |
◆ getThemeType()
static MRVIEWER_API Type MR::ColorTheme::getThemeType |
( |
| ) |
|
|
static |
◆ getUserThemesDirectory()
static MRVIEWER_API std::filesystem::path MR::ColorTheme::getUserThemesDirectory |
( |
| ) |
|
|
static |
◆ getViewportColor()
◆ getViewportColorTypeName()
static MRVIEWER_API const char * MR::ColorTheme::getViewportColorTypeName |
( |
ViewportColorsType | type | ) |
|
|
static |
◆ instance()
static MRVIEWER_API ColorTheme & MR::ColorTheme::instance |
( |
| ) |
|
|
static |
◆ isInitialized()
static MRVIEWER_API bool MR::ColorTheme::isInitialized |
( |
| ) |
|
|
static |
◆ onChanged()
static MRVIEWER_API boost::signals2::connection MR::ColorTheme::onChanged |
( |
const std::function< void()> & | slot, |
|
|
boost::signals2::connect_position | position = boost::signals2::at_back ) |
|
static |
Connects given slot to receive signal on every Color Theme change, triggered in apply.
◆ resetImGuiStyle()
static MRVIEWER_API void MR::ColorTheme::resetImGuiStyle |
( |
| ) |
|
|
static |
◆ serializeCurrentToFile()
static MRVIEWER_API void MR::ColorTheme::serializeCurrentToFile |
( |
const std::filesystem::path & | path | ) |
|
|
static |
◆ serializeCurrentToJson()
static MRVIEWER_API void MR::ColorTheme::serializeCurrentToJson |
( |
Json::Value & | root | ) |
|
|
static |
◆ setRibbonColor()
◆ setupByTypeName()
static MRVIEWER_API void MR::ColorTheme::setupByTypeName |
( |
Type | type, |
|
|
const std::string & | name ) |
|
static |
◆ setupDefaultDark()
static MRVIEWER_API void MR::ColorTheme::setupDefaultDark |
( |
| ) |
|
|
static |
◆ setupDefaultLight()
static MRVIEWER_API void MR::ColorTheme::setupDefaultLight |
( |
| ) |
|
|
static |
◆ setupFromFile()
static MRVIEWER_API void MR::ColorTheme::setupFromFile |
( |
const std::filesystem::path & | path, |
|
|
Type | type = Type::User ) |
|
static |
◆ setupFromJson()
static MRVIEWER_API void MR::ColorTheme::setupFromJson |
( |
const Json::Value & | value, |
|
|
Type | type = Type::User ) |
|
static |
◆ setupUserTheme()
static MRVIEWER_API void MR::ColorTheme::setupUserTheme |
( |
const std::string & | themeName | ) |
|
|
static |
◆ setViewportColor()
◆ updateUserThemesList()
static MRVIEWER_API void MR::ColorTheme::updateUserThemesList |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: