|
|
@@ -264,14 +264,25 @@ std::shared_ptr<Theme> ThemeManager::create_everforest_theme() {
|
|
|
|
|
|
// Text elements via set_color (which now sets faces)
|
|
|
theme->set_color(ThemeElement::Normal, fg, bg0);
|
|
|
- theme->set_color(ThemeElement::Keyword, red, bg0);
|
|
|
theme->set_color(ThemeElement::String, green, bg0);
|
|
|
- theme->set_color(ThemeElement::Comment, grey, bg0);
|
|
|
theme->set_color(ThemeElement::Function, blue, bg0);
|
|
|
theme->set_color(ThemeElement::Type, yellow, bg0);
|
|
|
theme->set_color(ThemeElement::Number, purple, bg0);
|
|
|
theme->set_color(ThemeElement::Constant, orange, bg0);
|
|
|
theme->set_color(ThemeElement::Error, Color(255, 255, 255), red);
|
|
|
+
|
|
|
+ // Demonstrate rich faces (Bold/Italic)
|
|
|
+ FaceAttributes keyword_attrs;
|
|
|
+ keyword_attrs.foreground = red;
|
|
|
+ keyword_attrs.background = bg0;
|
|
|
+ keyword_attrs.weight = FontWeight::Bold;
|
|
|
+ theme->set_face("font-lock-keyword-face", keyword_attrs);
|
|
|
+
|
|
|
+ FaceAttributes comment_attrs;
|
|
|
+ comment_attrs.foreground = grey;
|
|
|
+ comment_attrs.background = bg0;
|
|
|
+ comment_attrs.slant = FontSlant::Italic;
|
|
|
+ theme->set_face("font-lock-comment-face", comment_attrs);
|
|
|
|
|
|
// UI elements
|
|
|
theme->set_color(ThemeElement::StatusLine, bg0, fg);
|