Commit c1485de
fix(loader): correct theme mapping + per-shape gradient (Figma exact)
Two fixes against the Figma loader frames (simMothershipLoader_lightTheme
82:122 / _darkTheme 82:119):
- Theme mapping was inverted. Light mode must show the DARK-grey loader
(#4F4F4F→#6F6F6F, glow 0.6) so it reads on white; dark mode shows the
LIGHT-grey loader (#A7A7A7→#D6D6D6, glow 0.9). The squeeze ring's
currentColor stroke already tracked that polarity, so only the gradient
vars swapped.
- Gradient is now objectBoundingBox (per shape) instead of one canvas-wide
radial. Figma fits the radial to each shape's box, so every blob —
including small/offset dots — reads glossy (center dark → edge light)
rather than flat.
Verified computed values live in both themes and rendered against the
Figma frames.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent d0ceb84 commit c1485de
2 files changed
Lines changed: 20 additions & 12 deletions
File tree
- apps/sim/components/emcn/components/thinking-loader
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
| 260 | + | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
272 | 275 | | |
273 | 276 | | |
274 | 277 | | |
| |||
0 commit comments