Allow overriding font style and weight via experimental.theme_overrides in settings (#9122)
Release Notes: - Added support for overriding the current theme's syntax font styles and weights in settings ([#9121](https://github.com/zed-industries/zed/issues/9121)). | Before | After | | ------ | ----- | |  |  |
This commit is contained in:
@@ -92,6 +92,12 @@ impl ThemeStyleContent {
|
||||
.color
|
||||
.as_ref()
|
||||
.and_then(|color| try_parse_color(color).ok()),
|
||||
font_style: style
|
||||
.font_style
|
||||
.map(|font_style| FontStyle::from(font_style)),
|
||||
font_weight: style
|
||||
.font_weight
|
||||
.map(|font_weight| FontWeight::from(font_weight)),
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user