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:
parent
3bd9d14420
commit
b4ddc83e85
1 changed files with 6 additions and 0 deletions
|
@ -92,6 +92,12 @@ impl ThemeStyleContent {
|
||||||
.color
|
.color
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|color| try_parse_color(color).ok()),
|
.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()
|
..Default::default()
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue