From 10ee6d1f21b0ad118a0e5544a7431eda622cc978 Mon Sep 17 00:00:00 2001 From: Sprite Date: Tue, 24 Nov 2026 21:54:01 +0000 Subject: [PATCH] docs: exact count of hand-written Styled methods Co-Authored-By: Claude Opus 5.5 --- docs/PORTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/PORTING.md b/docs/PORTING.md index af83eae..0253eea 100644 --- a/docs/PORTING.md +++ b/docs/PORTING.md @@ -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.