Revert changes to gpui2 crate

This commit is contained in:
Marshall Bowers 2023-10-07 10:50:50 -04:00
parent f6a4151f60
commit a4bde421db
5 changed files with 4 additions and 61 deletions

View file

@ -22,8 +22,6 @@ use gpui2_macros::styleable_helpers;
use refineable::{Refineable, RefinementCascade};
use std::sync::Arc;
pub type StyleCascade = RefinementCascade<Style>;
#[derive(Clone, Refineable, Debug)]
#[refineable(debug)]
pub struct Style {
@ -131,7 +129,7 @@ impl Style {
color: self.text_color.map(Into::into),
font_family: self.font_family.clone(),
font_size: self.font_size.map(|size| size * cx.rem_size()),
font_weight: self.font_weight.map(Into::into),
font_weight: self.font_weight,
font_style: self.font_style,
underline: None,
})