Commit a9ba0b9
fw/timeline: scale the all-day pin's top offset with content size
The "All day" header in the timeline list sat flush against the top of the
screen on Pebble Time 2, about 5 px higher than a timed pin's header.
The offset that cancels TextStyleFont_Title's internal leading was a fixed
-13. That font scales with the preferred content size (Gothic 24 at Medium,
Gothic 28 at Large), so a value tuned against Medium over-corrects at Large.
Pebble Time selects Medium and was always correct; Time 2 selects Large and
lost 5 px.
Switch the offset on content size, keeping -13 everywhere except large rect
displays, which take -8 and land the header level with timed pins at y=9.
Round centres its list layout vertically and is unaffected, so it keeps -13.
There was no all-day coverage in the list-view suite at all, which is how
this shipped. Add future and past all-day cases and enable the suite on
asterix, which also exercises ten already-committed asterix goldens for the
first time. Verified against stock firmware: only the two obelix goldens
differ, by 468 px each; gabbro and asterix are byte-identical.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: apurv <pataniapurv@gmail.com>1 parent 0f3e578 commit a9ba0b9
9 files changed
Lines changed: 38 additions & 2 deletions
File tree
- src/fw/services/timeline
- tests
- fw/apps/system_apps/timeline
- test_images
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
391 | 398 | | |
392 | 399 | | |
393 | 400 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments