Overview
TheZepTheme class manages color schemes for the Zep editor. It provides predefined color values for all UI elements and syntax highlighting, supporting both dark and light themes.
ZepTheme Class
Constructor
Color Management
GetColor
themeColor- The theme color identifier
NVec4f (values 0.0-1.0)
SetColor
themeColor- The theme color to modifycol- RGBA color value (components 0.0-1.0)
GetComplement
col- Base coloradjust- Optional adjustment vector
GetUniqueColor
id- Index (0-15) of the unique color to retrieve
ThemeColor enum value (UniqueColor0-UniqueColor15)
Theme Type
SetThemeType
type- EitherThemeType::DarkorThemeType::Light
GetThemeType
ThemeColor Enum
TheThemeColor enum defines all available theme colors:
UI Colors
Syntax Colors
Diagnostic Colors
Widget Colors
Unique Colors
ThemeType Enum
Creating Custom Themes
Example: Custom Dark Theme
Example: Light Theme Variant
Color Format
All colors use theNVec4f format with RGBA components:
See Also
- ZepSyntax - Syntax highlighting that uses theme colors
- RangeMarker - Range markers that use theme colors
