Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CTheme Class Reference

#include <CTheme.hpp>

Collaboration diagram for CTheme:
[legend]

Public Types

enum class  ETheme { Legacy , Nix , Northland }
 

Public Member Functions

 CTheme ()=delete
 
 CTheme (IComponentsGUI *frameRef, double heightTextAboutScreen, bool isSmallScaled)
 
 CTheme (const CTheme &theme)=delete
 
virtual ~CTheme ()
 
void defineMaterials (IGraphics *graphics)
 
void changeTheme (ETheme theme)
 
bool isScreenSmallScaled () const
 
double getHeightText () const
 
double getHeightTextList () const
 
double getHeightTextMsg () const
 
double getHeightTitleTab () const
 
void setMaterialBackgroundButtons (IGraphics *graphics) const
 
void setMaterialBlinkButtons (IGraphics *graphics) const
 
void setMaterialBackgroundDialog (IGraphics *graphics) const
 
void setMaterialBackgroundScroll (IGraphics *graphics) const
 
void setMaterialBackgroundShadowButtons (IGraphics *graphics) const
 
void setMaterialBackgroundShadowDialog (IGraphics *graphics) const
 
void setMaterialBackgroundView (IGraphics *graphics) const
 
void setMaterialBtoBackgroundShadow (IGraphics *graphics) const
 
void setMaterialBtoMenuContext (IGraphics *graphics) const
 
void setMaterialDefault (IGraphics *graphics) const
 
void setMaterialEdge (IGraphics *graphics) const
 
void setMaterialEdit (IGraphics *graphics) const
 
void setMaterialEditBackground (IGraphics *graphics) const
 
void setMaterialFocus (IGraphics *graphics) const
 
void setMaterialFrameView (IGraphics *graphics) const
 
void setMaterialHeaderList (IGraphics *graphics) const
 
void setMaterialIllumination (IGraphics *graphics) const
 
void setMaterialInactive (IGraphics *graphics) const
 
void setMaterialLineSeparator (IGraphics *graphics) const
 
void setMaterialMenuBackground (IGraphics *graphics) const
 
void setMaterialProgress (IGraphics *graphics) const
 
void setMaterialScroll (IGraphics *graphics) const
 
void setMaterialText (IGraphics *graphics) const
 
void setMaterialTitle (IGraphics *graphics) const
 
void setMaterialDialogTitle (IGraphics *graphics) const
 
void setMaterialBackgroundGroupButtons (IGraphics *graphics) const
 
void setMaterialEdgeGroupButtons (IGraphics *graphics) const
 
void setMaterialAlternateList (IGraphics *graphics) const
 
void setMaterialButtonText (IGraphics *graphics) const
 
void setMaterialButtonSelectedBackground (IGraphics *graphics) const
 
void setMaterialLabelTittle (IGraphics *graphics) const
 
void setMaterialLabelValue (IGraphics *graphics) const
 
std::string getActive24x24 () const
 
std::string getArrowDown32x32 () const
 
std::string getArrowUp32x32 () const
 
std::string getArrowLeft32x32 () const
 
std::string getArrowRight32x32 () const
 
bool isChanged () const
 

Static Public Member Functions

static bool isSystemDarkMode ()
 

Private Member Functions

void prvLoadTheme (IComponentsGUI *frameRef, double heightTextAboutScreen)
 
void prvLoadThemeNix (IComponentsGUI *frameRef, double heightTextAboutScreen)
 
void prvLoadThemeLegacy (IComponentsGUI *frameRef, double heightTextAboutScreen)
 
void prvLoadThemeNorthland (IComponentsGUI *frameRef, double heightTextAboutScreen)
 

Private Attributes

const std::string kPrvIdMaterialBackgroundView = "BACKGROUND_VIEW"
 
const std::string kPrvIdMaterialHeaderList = "MATERIAL_HEADER_LIST"
 
const std::string kPrvIdMaterialTitle = "MATERIAL_TITLE"
 
const std::string kPrvIdMaterialDialogTitle = "MATERIAL_DIALOG_TITLE"
 
const std::string kPrvIdMaterialButtonSelectedBackground = "MATERIAL_BUTTON_SELECTED_BACKGROUND"
 
const std::string kPrvMaterialBackgroundButtons = "BACKGROUND_BUTTONS"
 
const std::string kPrvMaterialBlinkButtons = "BLINK_BUTTONS"
 
const std::string kPrvMaterialButtonText = "BUTTON_TEXT"
 
const std::string kPrvMaterialLabelTitle = "LABEL_TITLE"
 
const std::string kPrvMaterialLabelValue = "LABEL_VALUE"
 
const std::string kPrvMaterialBackgroundGroupButtons = "BACKGROUND_GROUP_BUTTONS"
 
const std::string kPrvMaterialEdgeGroupButtons = "EDGE_GROUP_BUTTONS"
 
const std::string kPrvMaterialAlternateList = "ALTERNATE_LIST"
 
const std::string kPrvMaterialIndicatorTitle = "INDICATOR_TITLE"
 
const std::string kPrvMaterialText = "MATERIAL_TEXT"
 
const std::string kPrvBackgroundDialog = "BACKGROUND_DIALOG"
 
const std::string kPrvBackgroundShadowDialog = "BACKGROUND_SHADOW_DIALOG"
 
const std::string kPrvBtoBackgroundShadow = "BTO_BACKGROUND_SHADOW"
 
const std::string kPrvIdMaterialDefault = "MATERIAL_DEFAULT"
 
const std::string kPrvIdMaterialFrameView = "FRAME_VIEW"
 
const std::string kPrvIdMaterialMenuBackground = "MENU_BACKGROUND"
 
const std::string kPrvIllumination = "ILLUMINATION"
 
const std::string kPrvMaterialBackgroundButtonShadow = "BACKGROUND_BUTTON_SHADOW"
 
const std::string kPrvMaterialBackgroundEdit = "BACKGROUND_EDIT"
 
const std::string kPrvMaterialBackgroundScroll = "BACKGROUND_SCROLL"
 
const std::string kPrvMaterialBtoMenuContext = "BTO_MENU_CONTEXT"
 
const std::string kPrvMaterialEdit = "EDIT"
 
const std::string kPrvMaterialEdgeMsg = "EDGE_MSG"
 
const std::string kPrvMaterialFocus = "FOCUS"
 
const std::string kPrvMaterialInactive = "INACTIVE"
 
const std::string kPrvMaterialLineSeparator = "LINE_SEPARATOR"
 
const std::string kPrvMaterialScroll = "SCROLL"
 
const std::string kPrvProgress = "PROGRESS"
 
iv::ui::graphics::Materialm_backgroundView {}
 
iv::ui::graphics::Materialm_headerList {}
 
iv::ui::graphics::Materialm_title {}
 
iv::ui::graphics::Materialm_dialogTitle {}
 
iv::ui::graphics::Materialm_backgroundButtons {}
 
iv::ui::graphics::Materialm_blinkButton {}
 
iv::ui::graphics::Materialm_backgroundSelectedButtons {}
 
iv::ui::graphics::Materialm_buttonText {}
 
iv::ui::graphics::Materialm_labelTitle {}
 
iv::ui::graphics::Materialm_labelValue {}
 
iv::ui::graphics::Materialm_indicatorTitle {}
 
iv::ui::graphics::Materialm_text {}
 
iv::ui::graphics::Materialm_menuBackground {}
 
iv::ui::graphics::Materialm_materialDefault {}
 
iv::ui::graphics::Materialm_backgroundShadowButtons {}
 
iv::ui::graphics::Materialm_edgeMsg {}
 
iv::ui::graphics::Materialm_scroll {}
 
iv::ui::graphics::Materialm_backgroundScroll {}
 
iv::ui::graphics::Materialm_illumination {}
 
iv::ui::graphics::Materialm_progress {}
 
iv::ui::graphics::Materialm_backgroundShadowDialog {}
 
iv::ui::graphics::Materialm_backgroundDialog {}
 
iv::ui::graphics::Materialm_edit {}
 
iv::ui::graphics::Materialm_editBackground {}
 
iv::ui::graphics::Materialm_lineSeparator {}
 
iv::ui::graphics::Materialm_inactive {}
 
iv::ui::graphics::Materialm_focus {}
 
iv::ui::graphics::Materialm_btoMenuContext {}
 
iv::ui::graphics::Materialm_edgeGroupButtons {}
 
iv::ui::graphics::Materialm_backgroundGroupButtons {}
 
iv::ui::graphics::Materialm_alternateList {}
 
iv::ui::graphics::Materialm_backgroundBtoShadow {}
 
double m_heightMsg {0}
 
double m_heightText {0}
 
bool m_isScreenSmallScale {false}
 
ETheme m_theme {ETheme::Nix}
 
bool m_isChanged {false}
 
IComponentsGUIm_frameRef {}
 

Member Enumeration Documentation

◆ ETheme

enum class CTheme::ETheme
strong
Enumerator
Legacy 
Nix 
Northland 

Constructor & Destructor Documentation

◆ CTheme() [1/3]

CTheme::CTheme ( )
delete

◆ CTheme() [2/3]

CTheme::CTheme ( IComponentsGUI * frameRef,
double heightTextAboutScreen,
bool isSmallScaled )

◆ CTheme() [3/3]

CTheme::CTheme ( const CTheme & theme)
delete

◆ ~CTheme()

CTheme::~CTheme ( )
virtual

Member Function Documentation

◆ changeTheme()

void CTheme::changeTheme ( CTheme::ETheme theme)

◆ defineMaterials()

void CTheme::defineMaterials ( IGraphics * graphics)

◆ getActive24x24()

std::string CTheme::getActive24x24 ( ) const
nodiscard

◆ getArrowDown32x32()

std::string CTheme::getArrowDown32x32 ( ) const
nodiscard

◆ getArrowLeft32x32()

std::string CTheme::getArrowLeft32x32 ( ) const
nodiscard

◆ getArrowRight32x32()

std::string CTheme::getArrowRight32x32 ( ) const
nodiscard

◆ getArrowUp32x32()

std::string CTheme::getArrowUp32x32 ( ) const
nodiscard

◆ getHeightText()

double CTheme::getHeightText ( ) const
nodiscard

◆ getHeightTextList()

double CTheme::getHeightTextList ( ) const
nodiscard

◆ getHeightTextMsg()

double CTheme::getHeightTextMsg ( ) const
nodiscard

◆ getHeightTitleTab()

double CTheme::getHeightTitleTab ( ) const
nodiscard

◆ isChanged()

bool CTheme::isChanged ( ) const
nodiscard

◆ isScreenSmallScaled()

bool CTheme::isScreenSmallScaled ( ) const
nodiscard

◆ isSystemDarkMode()

bool CTheme::isSystemDarkMode ( )
static

◆ prvLoadTheme()

void CTheme::prvLoadTheme ( IComponentsGUI * frameRef,
double heightTextAboutScreen )
private

◆ prvLoadThemeLegacy()

void CTheme::prvLoadThemeLegacy ( IComponentsGUI * frameRef,
double heightTextAboutScreen )
private

◆ prvLoadThemeNix()

void CTheme::prvLoadThemeNix ( IComponentsGUI * frameRef,
double heightTextAboutScreen )
private

◆ prvLoadThemeNorthland()

void CTheme::prvLoadThemeNorthland ( IComponentsGUI * frameRef,
double heightTextAboutScreen )
private

◆ setMaterialAlternateList()

void CTheme::setMaterialAlternateList ( IGraphics * graphics) const

◆ setMaterialBackgroundButtons()

void CTheme::setMaterialBackgroundButtons ( IGraphics * graphics) const

◆ setMaterialBackgroundDialog()

void CTheme::setMaterialBackgroundDialog ( IGraphics * graphics) const

◆ setMaterialBackgroundGroupButtons()

void CTheme::setMaterialBackgroundGroupButtons ( IGraphics * graphics) const

◆ setMaterialBackgroundScroll()

void CTheme::setMaterialBackgroundScroll ( IGraphics * graphics) const

◆ setMaterialBackgroundShadowButtons()

void CTheme::setMaterialBackgroundShadowButtons ( IGraphics * graphics) const

◆ setMaterialBackgroundShadowDialog()

void CTheme::setMaterialBackgroundShadowDialog ( IGraphics * graphics) const

◆ setMaterialBackgroundView()

void CTheme::setMaterialBackgroundView ( IGraphics * graphics) const

◆ setMaterialBlinkButtons()

void CTheme::setMaterialBlinkButtons ( IGraphics * graphics) const

◆ setMaterialBtoBackgroundShadow()

void CTheme::setMaterialBtoBackgroundShadow ( IGraphics * graphics) const

◆ setMaterialBtoMenuContext()

void CTheme::setMaterialBtoMenuContext ( IGraphics * graphics) const

◆ setMaterialButtonSelectedBackground()

void CTheme::setMaterialButtonSelectedBackground ( IGraphics * graphics) const

◆ setMaterialButtonText()

void CTheme::setMaterialButtonText ( IGraphics * graphics) const

◆ setMaterialDefault()

void CTheme::setMaterialDefault ( IGraphics * graphics) const

◆ setMaterialDialogTitle()

void CTheme::setMaterialDialogTitle ( IGraphics * graphics) const

◆ setMaterialEdge()

void CTheme::setMaterialEdge ( IGraphics * graphics) const

◆ setMaterialEdgeGroupButtons()

void CTheme::setMaterialEdgeGroupButtons ( IGraphics * graphics) const

◆ setMaterialEdit()

void CTheme::setMaterialEdit ( IGraphics * graphics) const

◆ setMaterialEditBackground()

void CTheme::setMaterialEditBackground ( IGraphics * graphics) const

◆ setMaterialFocus()

void CTheme::setMaterialFocus ( IGraphics * graphics) const

◆ setMaterialFrameView()

void CTheme::setMaterialFrameView ( IGraphics * graphics) const

◆ setMaterialHeaderList()

void CTheme::setMaterialHeaderList ( IGraphics * graphics) const

◆ setMaterialIllumination()

void CTheme::setMaterialIllumination ( IGraphics * graphics) const

◆ setMaterialInactive()

void CTheme::setMaterialInactive ( IGraphics * graphics) const

◆ setMaterialLabelTittle()

void CTheme::setMaterialLabelTittle ( IGraphics * graphics) const

◆ setMaterialLabelValue()

void CTheme::setMaterialLabelValue ( IGraphics * graphics) const

◆ setMaterialLineSeparator()

void CTheme::setMaterialLineSeparator ( IGraphics * graphics) const

◆ setMaterialMenuBackground()

void CTheme::setMaterialMenuBackground ( IGraphics * graphics) const

◆ setMaterialProgress()

void CTheme::setMaterialProgress ( IGraphics * graphics) const

◆ setMaterialScroll()

void CTheme::setMaterialScroll ( IGraphics * graphics) const

◆ setMaterialText()

void CTheme::setMaterialText ( IGraphics * graphics) const

◆ setMaterialTitle()

void CTheme::setMaterialTitle ( IGraphics * graphics) const

Member Data Documentation

◆ kPrvBackgroundDialog

const std::string CTheme::kPrvBackgroundDialog = "BACKGROUND_DIALOG"
private

◆ kPrvBackgroundShadowDialog

const std::string CTheme::kPrvBackgroundShadowDialog = "BACKGROUND_SHADOW_DIALOG"
private

◆ kPrvBtoBackgroundShadow

const std::string CTheme::kPrvBtoBackgroundShadow = "BTO_BACKGROUND_SHADOW"
private

◆ kPrvIdMaterialBackgroundView

const std::string CTheme::kPrvIdMaterialBackgroundView = "BACKGROUND_VIEW"
private

◆ kPrvIdMaterialButtonSelectedBackground

const std::string CTheme::kPrvIdMaterialButtonSelectedBackground = "MATERIAL_BUTTON_SELECTED_BACKGROUND"
private

◆ kPrvIdMaterialDefault

const std::string CTheme::kPrvIdMaterialDefault = "MATERIAL_DEFAULT"
private

◆ kPrvIdMaterialDialogTitle

const std::string CTheme::kPrvIdMaterialDialogTitle = "MATERIAL_DIALOG_TITLE"
private

◆ kPrvIdMaterialFrameView

const std::string CTheme::kPrvIdMaterialFrameView = "FRAME_VIEW"
private

◆ kPrvIdMaterialHeaderList

const std::string CTheme::kPrvIdMaterialHeaderList = "MATERIAL_HEADER_LIST"
private

◆ kPrvIdMaterialMenuBackground

const std::string CTheme::kPrvIdMaterialMenuBackground = "MENU_BACKGROUND"
private

◆ kPrvIdMaterialTitle

const std::string CTheme::kPrvIdMaterialTitle = "MATERIAL_TITLE"
private

◆ kPrvIllumination

const std::string CTheme::kPrvIllumination = "ILLUMINATION"
private

◆ kPrvMaterialAlternateList

const std::string CTheme::kPrvMaterialAlternateList = "ALTERNATE_LIST"
private

◆ kPrvMaterialBackgroundButtons

const std::string CTheme::kPrvMaterialBackgroundButtons = "BACKGROUND_BUTTONS"
private

◆ kPrvMaterialBackgroundButtonShadow

const std::string CTheme::kPrvMaterialBackgroundButtonShadow = "BACKGROUND_BUTTON_SHADOW"
private

◆ kPrvMaterialBackgroundEdit

const std::string CTheme::kPrvMaterialBackgroundEdit = "BACKGROUND_EDIT"
private

◆ kPrvMaterialBackgroundGroupButtons

const std::string CTheme::kPrvMaterialBackgroundGroupButtons = "BACKGROUND_GROUP_BUTTONS"
private

◆ kPrvMaterialBackgroundScroll

const std::string CTheme::kPrvMaterialBackgroundScroll = "BACKGROUND_SCROLL"
private

◆ kPrvMaterialBlinkButtons

const std::string CTheme::kPrvMaterialBlinkButtons = "BLINK_BUTTONS"
private

◆ kPrvMaterialBtoMenuContext

const std::string CTheme::kPrvMaterialBtoMenuContext = "BTO_MENU_CONTEXT"
private

◆ kPrvMaterialButtonText

const std::string CTheme::kPrvMaterialButtonText = "BUTTON_TEXT"
private

◆ kPrvMaterialEdgeGroupButtons

const std::string CTheme::kPrvMaterialEdgeGroupButtons = "EDGE_GROUP_BUTTONS"
private

◆ kPrvMaterialEdgeMsg

const std::string CTheme::kPrvMaterialEdgeMsg = "EDGE_MSG"
private

◆ kPrvMaterialEdit

const std::string CTheme::kPrvMaterialEdit = "EDIT"
private

◆ kPrvMaterialFocus

const std::string CTheme::kPrvMaterialFocus = "FOCUS"
private

◆ kPrvMaterialInactive

const std::string CTheme::kPrvMaterialInactive = "INACTIVE"
private

◆ kPrvMaterialIndicatorTitle

const std::string CTheme::kPrvMaterialIndicatorTitle = "INDICATOR_TITLE"
private

◆ kPrvMaterialLabelTitle

const std::string CTheme::kPrvMaterialLabelTitle = "LABEL_TITLE"
private

◆ kPrvMaterialLabelValue

const std::string CTheme::kPrvMaterialLabelValue = "LABEL_VALUE"
private

◆ kPrvMaterialLineSeparator

const std::string CTheme::kPrvMaterialLineSeparator = "LINE_SEPARATOR"
private

◆ kPrvMaterialScroll

const std::string CTheme::kPrvMaterialScroll = "SCROLL"
private

◆ kPrvMaterialText

const std::string CTheme::kPrvMaterialText = "MATERIAL_TEXT"
private

◆ kPrvProgress

const std::string CTheme::kPrvProgress = "PROGRESS"
private

◆ m_alternateList

iv::ui::graphics::Material* CTheme::m_alternateList {}
private

◆ m_backgroundBtoShadow

iv::ui::graphics::Material* CTheme::m_backgroundBtoShadow {}
private

◆ m_backgroundButtons

iv::ui::graphics::Material* CTheme::m_backgroundButtons {}
private

◆ m_backgroundDialog

iv::ui::graphics::Material* CTheme::m_backgroundDialog {}
private

◆ m_backgroundGroupButtons

iv::ui::graphics::Material* CTheme::m_backgroundGroupButtons {}
private

◆ m_backgroundScroll

iv::ui::graphics::Material* CTheme::m_backgroundScroll {}
private

◆ m_backgroundSelectedButtons

iv::ui::graphics::Material* CTheme::m_backgroundSelectedButtons {}
private

◆ m_backgroundShadowButtons

iv::ui::graphics::Material* CTheme::m_backgroundShadowButtons {}
private

◆ m_backgroundShadowDialog

iv::ui::graphics::Material* CTheme::m_backgroundShadowDialog {}
private

◆ m_backgroundView

iv::ui::graphics::Material* CTheme::m_backgroundView {}
private

◆ m_blinkButton

iv::ui::graphics::Material* CTheme::m_blinkButton {}
private

◆ m_btoMenuContext

iv::ui::graphics::Material* CTheme::m_btoMenuContext {}
private

◆ m_buttonText

iv::ui::graphics::Material* CTheme::m_buttonText {}
private

◆ m_dialogTitle

iv::ui::graphics::Material* CTheme::m_dialogTitle {}
private

◆ m_edgeGroupButtons

iv::ui::graphics::Material* CTheme::m_edgeGroupButtons {}
private

◆ m_edgeMsg

iv::ui::graphics::Material* CTheme::m_edgeMsg {}
private

◆ m_edit

iv::ui::graphics::Material* CTheme::m_edit {}
private

◆ m_editBackground

iv::ui::graphics::Material* CTheme::m_editBackground {}
private

◆ m_focus

iv::ui::graphics::Material* CTheme::m_focus {}
private

◆ m_frameRef

IComponentsGUI* CTheme::m_frameRef {}
private

◆ m_headerList

iv::ui::graphics::Material* CTheme::m_headerList {}
private

◆ m_heightMsg

double CTheme::m_heightMsg {0}
private

◆ m_heightText

double CTheme::m_heightText {0}
private

◆ m_illumination

iv::ui::graphics::Material* CTheme::m_illumination {}
private

◆ m_inactive

iv::ui::graphics::Material* CTheme::m_inactive {}
private

◆ m_indicatorTitle

iv::ui::graphics::Material* CTheme::m_indicatorTitle {}
private

◆ m_isChanged

bool CTheme::m_isChanged {false}
private

◆ m_isScreenSmallScale

bool CTheme::m_isScreenSmallScale {false}
private

◆ m_labelTitle

iv::ui::graphics::Material* CTheme::m_labelTitle {}
private

◆ m_labelValue

iv::ui::graphics::Material* CTheme::m_labelValue {}
private

◆ m_lineSeparator

iv::ui::graphics::Material* CTheme::m_lineSeparator {}
private

◆ m_materialDefault

iv::ui::graphics::Material* CTheme::m_materialDefault {}
private

◆ m_menuBackground

iv::ui::graphics::Material* CTheme::m_menuBackground {}
private

◆ m_progress

iv::ui::graphics::Material* CTheme::m_progress {}
private

◆ m_scroll

iv::ui::graphics::Material* CTheme::m_scroll {}
private

◆ m_text

iv::ui::graphics::Material* CTheme::m_text {}
private

◆ m_theme

ETheme CTheme::m_theme {ETheme::Nix}
private

◆ m_title

iv::ui::graphics::Material* CTheme::m_title {}
private

The documentation for this class was generated from the following files: