|
9 | 9 | import "pkg:/source/utils/streamSelection.bs" |
10 | 10 |
|
11 | 11 | ' Y translation extrasGrp reaches after sliding open (ExtrasSlider.xml VertSlider end keyValue) |
12 | | -const EXTRAS_GRP_TARGET_Y = 378 |
| 12 | +const EXTRAS_GRP_TARGET_Y = 306 |
13 | 13 | ' Gap between bottom of itemInfoRows and top of extras pane when extras are open |
14 | | -const ITEM_DETAILS_EXTRAS_PADDING = 6 |
| 14 | +const ITEM_DETAILS_EXTRAS_PADDING = 48 |
15 | 15 | ' Minimum display height for the logo image — images too small are scaled up (aspect ratio preserved). |
16 | | -' Note: LOGO_MAX_DISPLAY_WIDTH takes precedence for very wide/flat logos; this minimum may not be reached. |
17 | | -const LOGO_MIN_DISPLAY_HEIGHT = 212 |
| 16 | +const LOGO_MIN_DISPLAY_HEIGHT = 212 ' Note: LOGO_MAX_DISPLAY_WIDTH takes precedence for very wide/flat logos; this minimum may not be reached. |
18 | 17 | ' Maximum display width for the logo image — prevents very wide/flat logos from overlapping buttons |
19 | 18 | const LOGO_MAX_DISPLAY_WIDTH = 500 |
20 | 19 |
|
|
1550 | 1549 |
|
1551 | 1550 | activateExtras() |
1552 | 1551 |
|
| 1552 | + ' Hide description and tracks before sliding up so they don't show during the transition |
| 1553 | + m.itemDescription.opacity = 0 |
| 1554 | + m.itemTracks.opacity = 0 |
| 1555 | + |
1553 | 1556 | ' Animate itemDetails to top (synced with extras slider) |
1554 | 1557 | m.itemDetailsSliderInterp.reverse = false |
1555 | 1558 | m.itemDetailsSlider.control = "start" |
|
1568 | 1571 |
|
1569 | 1572 | deactivateExtras() |
1570 | 1573 |
|
| 1574 | + ' Restore description and tracks before sliding back down |
| 1575 | + m.itemDescription.opacity = 1 |
| 1576 | + m.itemTracks.opacity = 1 |
| 1577 | + |
1571 | 1578 | ' Animate itemDetails back to rest position (synced with extras slider) |
1572 | 1579 | m.itemDetailsSliderInterp.reverse = true |
1573 | 1580 | m.itemDetailsSlider.control = "start" |
|
0 commit comments