Revert changes to gpui2
crate
This commit is contained in:
parent
f6a4151f60
commit
a4bde421db
5 changed files with 4 additions and 61 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue