ZepTheme class, allowing you to customize every aspect of the editor’s appearance including syntax highlighting, UI colors, and unique identifier colors.
ZepTheme Class
TheZepTheme class manages all color definitions for the editor. It supports both dark and light themes out of the box.
Zep comes with built-in dark and light themes. You can also create completely custom themes by extending
ZepTheme or modifying colors at runtime.Theme Types
Built-in Themes
Built-in Themes
Zep includes two pre-configured themes:
Theme Colors
Available Theme Colors
Available Theme Colors
Using Themes
Getting Colors
Getting Colors
Setting Custom Colors
Setting Custom Colors
Creating Custom Themes
Custom Theme Class
Custom Theme Class
Extend
ZepTheme to create a custom theme:Dark Theme Reference
Default Dark Theme Colors
Default Dark Theme Colors
From
src/theme.cpp:41-78:Light Theme Reference
Default Light Theme Colors
Default Light Theme Colors
From
src/theme.cpp:80-117:Unique Colors
Distinguishable Color Palette
Distinguishable Color Palette
Zep generates 16 unique, distinguishable colors using the golden ratio:Implementation in
src/theme.cpp:8-19:Helper Functions
Color Utilities
Color Utilities
Complete Example
Solarized-Inspired Theme
Solarized-Inspired Theme
Implementation Reference
The theming system is defined in:include/zep/theme.h:11-102- Theme structures and APIsrc/theme.cpp- Theme implementation with built-in themes
Related
Syntax Extensions
Learn how syntax highlighting uses theme colors
