mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-26 03:59:55 +00:00
Default unstyled text to be red instead of transparent
This commit is contained in:
parent
8179f90589
commit
8559be9f92
1 changed files with 10 additions and 1 deletions
|
@ -14,12 +14,21 @@ pub struct FontId(pub usize);
|
||||||
|
|
||||||
pub type GlyphId = u32;
|
pub type GlyphId = u32;
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default, PartialEq, Eq)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
pub struct TextStyle {
|
pub struct TextStyle {
|
||||||
pub color: Color,
|
pub color: Color,
|
||||||
pub font_properties: Properties,
|
pub font_properties: Properties,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for TextStyle {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self {
|
||||||
|
color: Color::from_u32(0xff0000ff),
|
||||||
|
font_properties: Default::default(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
enum WeightJson {
|
enum WeightJson {
|
||||||
|
|
Loading…
Reference in a new issue