M6: elements and window — Element/Render, headless Window, div, canvas #6
+1
-1
@@ -430,7 +430,7 @@ gantt
|
||||
`Style::refined` returns a new style. Only `StyleRefinement` (what
|
||||
`Styled::style()` returns) is mutable, because it is the builder.
|
||||
Nested updates are written as `style.text = { ..style.text, color: ... }`.
|
||||
- `Styled` is one trait with 3,213 methods: about 140 hand-written in
|
||||
- `Styled` is one trait with 3,213 methods: 132 hand-written in
|
||||
`src/style/styled.mbt`, the rest generated as GPUI's macros would generate
|
||||
them. GPUI's `text_style()` accessor (`&mut TextStyleRefinement`) is
|
||||
omitted.
|
||||
|
||||
Reference in new issue
Block a user