@presentation-md/export 1.16.1 → 1.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/layouts.js CHANGED
@@ -8,6 +8,18 @@ function cardStroke(ctx, opts = {}) {
8
8
  if (ctx.themeName === "daisy-days") {
9
9
  return { color: "2D2D2D", width: opts.hero || opts.highlighted ? 2.75 : 2.5 };
10
10
  }
11
+ // capsule-pills cards: 2px ink
12
+ if (ctx.themeName === "capsule") {
13
+ return { color: ctx.colors.text, width: opts.hero || opts.highlighted ? 2.25 : 2 };
14
+ }
15
+ // bit-orbit-arcade cards: 2px accent
16
+ if (ctx.themeName === "8-bit-orbit") {
17
+ return { color: ctx.colors.accent, width: opts.hero || opts.highlighted ? 2.25 : 2 };
18
+ }
19
+ // retro-windows-chrome cards: 2px ink
20
+ if (ctx.themeName === "retro-windows") {
21
+ return { color: "000000", width: opts.hero || opts.highlighted ? 2.25 : 2 };
22
+ }
11
23
  // block-frame-brutal cards: 4px ink
12
24
  if (ctx.themeName === "block-frame") {
13
25
  return { color: "000000", width: opts.hero || opts.highlighted ? 3.25 : 3 };
@@ -48,12 +60,17 @@ function cardRadius(ctx) {
48
60
  // stencil-tablet-earth cards: border-radius 24px ≈ 0.25"
49
61
  if (ctx.themeName === "stencil-tablet")
50
62
  return 0.25;
51
- // retro-zine-riso / block-frame-brutal / creative-mode-blocks cards: square
63
+ // retro-zine-riso / block-frame-brutal / creative-mode-blocks / 8-bit / Win95: square
52
64
  if (ctx.themeName === "retro-zine" ||
53
65
  ctx.themeName === "block-frame" ||
54
- ctx.themeName === "creative-mode") {
66
+ ctx.themeName === "creative-mode" ||
67
+ ctx.themeName === "8-bit-orbit" ||
68
+ ctx.themeName === "retro-windows") {
55
69
  return 0;
56
70
  }
71
+ // scatterbrain-cork cards: border-radius 2px ≈ 0.02"
72
+ if (ctx.themeName === "scatterbrain")
73
+ return 0.02;
57
74
  // sakura-chroma-cassette cards: border-radius 4px ≈ 0.04"
58
75
  if (ctx.themeName === "sakura-chroma")
59
76
  return 0.04;
@@ -1751,38 +1768,21 @@ function paintSlideChrome(slide, ctx, data) {
1751
1768
  const isHero = data.layout === "title" || data.layout === "closing";
1752
1769
  // Generic bg→bg2 wash (stands in for linear/radial HTML gradients).
1753
1770
  if (ctx.colors.bg2.toLowerCase() !== ctx.colors.bg.toLowerCase()) {
1754
- if (theme === "creative-voltage" && isHero) {
1755
- // Left electric blue / right dark — mirrors creative-voltage-split.
1756
- slide.background = { color: ctx.colors.bg };
1771
+ if (theme === "creative-voltage") {
1772
+ // Split field + frame + offset shadow live in the dedicated block below.
1773
+ }
1774
+ else {
1775
+ // Bottom-right wash of bg2 over flat bg (≈ diagonal gradient).
1757
1776
  slide.addShape(ctx.shapeRoundRect, {
1758
- x: ctx.width * 0.48,
1759
- y: 0,
1760
- w: ctx.width * 0.52,
1761
- h: ctx.height,
1762
- fill: { color: ctx.colors.bg2 },
1777
+ x: ctx.width * 0.35,
1778
+ y: ctx.height * 0.35,
1779
+ w: ctx.width * 0.65,
1780
+ h: ctx.height * 0.65,
1781
+ fill: { color: ctx.colors.bg2, transparency: 55 },
1763
1782
  line: { color: ctx.colors.bg2, width: 0 },
1764
1783
  rectRadius: 0,
1765
1784
  });
1766
- slide.addShape(ctx.shapeOval, {
1767
- x: ctx.width - 1.6,
1768
- y: 0.55,
1769
- w: 0.95,
1770
- h: 0.95,
1771
- fill: { color: ctx.colors.accent },
1772
- line: { color: ctx.colors.accent, width: 0 },
1773
- });
1774
- return;
1775
1785
  }
1776
- // Bottom-right wash of bg2 over flat bg (≈ diagonal gradient).
1777
- slide.addShape(ctx.shapeRoundRect, {
1778
- x: ctx.width * 0.35,
1779
- y: ctx.height * 0.35,
1780
- w: ctx.width * 0.65,
1781
- h: ctx.height * 0.65,
1782
- fill: { color: ctx.colors.bg2, transparency: 55 },
1783
- line: { color: ctx.colors.bg2, width: 0 },
1784
- rectRadius: 0,
1785
- });
1786
1786
  }
1787
1787
  if (theme === "bold-signal") {
1788
1788
  // Soft orange corner blot on every slide; hero gets the focal panel.
@@ -3215,12 +3215,51 @@ function paintSlideChrome(slide, ctx, data) {
3215
3215
  });
3216
3216
  }
3217
3217
  if (theme === "8-bit-orbit") {
3218
- // Arcade scanlines + neon cyan/pink orbs + pixel HUD chip (bit-orbit-arcade).
3218
+ // Arcade scanlines + neon orbs + dual offset shadows (4px yellow + 8px pink)
3219
+ // + accent frame + always-on pixel HUD (bit-orbit-arcade).
3220
+ const outer = 0.1; // ~8px accent2
3221
+ const inner = 0.05; // ~4px yellow
3222
+ slide.addShape(ctx.shapeRoundRect, {
3223
+ x: ctx.width - outer,
3224
+ y: outer,
3225
+ w: outer,
3226
+ h: ctx.height - outer,
3227
+ fill: { color: ctx.colors.accent2 },
3228
+ line: { color: ctx.colors.accent2, width: 0 },
3229
+ rectRadius: 0,
3230
+ });
3231
+ slide.addShape(ctx.shapeRoundRect, {
3232
+ x: outer,
3233
+ y: ctx.height - outer,
3234
+ w: ctx.width - outer,
3235
+ h: outer,
3236
+ fill: { color: ctx.colors.accent2 },
3237
+ line: { color: ctx.colors.accent2, width: 0 },
3238
+ rectRadius: 0,
3239
+ });
3240
+ slide.addShape(ctx.shapeRoundRect, {
3241
+ x: ctx.width - outer - inner,
3242
+ y: outer + inner,
3243
+ w: inner,
3244
+ h: ctx.height - outer - inner,
3245
+ fill: { color: "F4D03F" },
3246
+ line: { color: "F4D03F", width: 0 },
3247
+ rectRadius: 0,
3248
+ });
3249
+ slide.addShape(ctx.shapeRoundRect, {
3250
+ x: outer + inner,
3251
+ y: ctx.height - outer - inner,
3252
+ w: ctx.width - outer - inner,
3253
+ h: inner,
3254
+ fill: { color: "F4D03F" },
3255
+ line: { color: "F4D03F", width: 0 },
3256
+ rectRadius: 0,
3257
+ });
3219
3258
  for (let i = 0; i < 10; i++) {
3220
3259
  slide.addShape(ctx.shapeRoundRect, {
3221
3260
  x: 0,
3222
3261
  y: 0.25 + i * 0.7,
3223
- w: ctx.width,
3262
+ w: ctx.width - outer,
3224
3263
  h: 0.035,
3225
3264
  fill: { color: "000000", transparency: 82 },
3226
3265
  line: { color: "000000", width: 0 },
@@ -3230,7 +3269,7 @@ function paintSlideChrome(slide, ctx, data) {
3230
3269
  slide.addShape(ctx.shapeOval, {
3231
3270
  x: ctx.width * 0.55,
3232
3271
  y: -ctx.height * 0.12,
3233
- w: ctx.width * 0.45,
3272
+ w: ctx.width * 0.45 - outer,
3234
3273
  h: ctx.height * 0.45,
3235
3274
  fill: { color: ctx.colors.accent, transparency: 78 },
3236
3275
  line: { color: ctx.colors.accent, width: 0 },
@@ -3239,11 +3278,20 @@ function paintSlideChrome(slide, ctx, data) {
3239
3278
  x: -ctx.width * 0.1,
3240
3279
  y: ctx.height * 0.55,
3241
3280
  w: ctx.width * 0.4,
3242
- h: ctx.height * 0.45,
3281
+ h: ctx.height * 0.45 - outer,
3243
3282
  fill: { color: ctx.colors.accent2, transparency: 78 },
3244
3283
  line: { color: ctx.colors.accent2, width: 0 },
3245
3284
  });
3246
- // Pixel HUD dots (top-left).
3285
+ slide.addShape(ctx.shapeRoundRect, {
3286
+ x: 0.08,
3287
+ y: 0.08,
3288
+ w: ctx.width - 0.08 - outer,
3289
+ h: ctx.height - 0.08 - outer,
3290
+ fill: { color: ctx.colors.bg, transparency: 100 },
3291
+ line: { color: ctx.colors.accent, width: 2.5 },
3292
+ rectRadius: 0,
3293
+ });
3294
+ // Pixel HUD dots (top-left) — always-on like HTML ::before.
3247
3295
  const pixels = [
3248
3296
  { x: 0.45, color: "F4D03F" },
3249
3297
  { x: 0.7, color: ctx.colors.accent },
@@ -3261,17 +3309,25 @@ function paintSlideChrome(slide, ctx, data) {
3261
3309
  rectRadius: 0,
3262
3310
  });
3263
3311
  }
3264
- if (isHero) {
3265
- slide.addShape(ctx.shapeRoundRect, {
3266
- x: ctx.width - 1.55,
3267
- y: ctx.height - 0.85,
3268
- w: 0.95,
3269
- h: 0.28,
3270
- fill: { color: ctx.colors.accent },
3271
- line: { color: "FFFFFF", width: 1.5 },
3272
- rectRadius: 0,
3273
- });
3274
- }
3312
+ // Bottom-right HUD chip + yellow offset plate — always-on like HTML ::after.
3313
+ slide.addShape(ctx.shapeRoundRect, {
3314
+ x: ctx.width - 1.5 - outer,
3315
+ y: ctx.height - 0.8 - outer,
3316
+ w: 0.95,
3317
+ h: 0.28,
3318
+ fill: { color: "F4D03F" },
3319
+ line: { color: "F4D03F", width: 0 },
3320
+ rectRadius: 0,
3321
+ });
3322
+ slide.addShape(ctx.shapeRoundRect, {
3323
+ x: ctx.width - 1.55 - outer,
3324
+ y: ctx.height - 0.85 - outer,
3325
+ w: 0.95,
3326
+ h: 0.28,
3327
+ fill: { color: ctx.colors.accent },
3328
+ line: { color: "FFFFFF", width: 1.5 },
3329
+ rectRadius: 0,
3330
+ });
3275
3331
  }
3276
3332
  if (theme === "neo-grid-bold") {
3277
3333
  // Modular grid + lemon corner panel + hard border + 8px accent offset
@@ -3388,22 +3444,33 @@ function paintSlideChrome(slide, ctx, data) {
3388
3444
  }
3389
3445
  }
3390
3446
  if (theme === "capsule") {
3391
- // Plump frame + soft shadow + quiet pastel blots on all slides;
3392
- // hero-gated coral pill + lime circles (capsule-pills HTML ::before/::after).
3393
- slide.addShape(ctx.shapeRoundRect, {
3394
- x: 0.38,
3395
- y: 0.36,
3396
- w: ctx.width - 0.48,
3397
- h: ctx.height - 0.48,
3398
- fill: { color: ctx.colors.text, transparency: 93 },
3447
+ // Plump frame + hard ink offset shadow (HTML 8px/10px 0-blur) + pastel blots;
3448
+ // hero-gated coral pill + lime circles (capsule-pills ::before/::after).
3449
+ const shadowX = 0.1;
3450
+ const shadowY = 0.12;
3451
+ slide.addShape(ctx.shapeRoundRect, {
3452
+ x: ctx.width - shadowX,
3453
+ y: shadowY,
3454
+ w: shadowX,
3455
+ h: ctx.height - shadowY,
3456
+ fill: { color: ctx.colors.text },
3399
3457
  line: { color: ctx.colors.text, width: 0 },
3400
- rectRadius: 0.29,
3458
+ rectRadius: 0,
3459
+ });
3460
+ slide.addShape(ctx.shapeRoundRect, {
3461
+ x: shadowX,
3462
+ y: ctx.height - shadowY,
3463
+ w: ctx.width - shadowX,
3464
+ h: shadowY,
3465
+ fill: { color: ctx.colors.text },
3466
+ line: { color: ctx.colors.text, width: 0 },
3467
+ rectRadius: 0,
3401
3468
  });
3402
3469
  slide.addShape(ctx.shapeRoundRect, {
3403
3470
  x: 0.18,
3404
3471
  y: 0.18,
3405
- w: ctx.width - 0.36,
3406
- h: ctx.height - 0.36,
3472
+ w: ctx.width - 0.36 - shadowX,
3473
+ h: ctx.height - 0.36 - shadowY,
3407
3474
  fill: { color: ctx.colors.bg, transparency: 100 },
3408
3475
  line: { color: ctx.colors.border, width: 2 },
3409
3476
  rectRadius: 0.29,
@@ -3411,14 +3478,14 @@ function paintSlideChrome(slide, ctx, data) {
3411
3478
  // Quiet lavender / sky radial blots (HTML --slide-bg candy).
3412
3479
  slide.addShape(ctx.shapeOval, {
3413
3480
  x: 0.35,
3414
- y: ctx.height - 1.85,
3481
+ y: ctx.height - 1.85 - shadowY,
3415
3482
  w: 0.72,
3416
3483
  h: 0.72,
3417
3484
  fill: { color: "C5B5E0", transparency: 42 },
3418
3485
  line: { color: "C5B5E0", width: 0 },
3419
3486
  });
3420
3487
  slide.addShape(ctx.shapeOval, {
3421
- x: ctx.width - 1.55,
3488
+ x: ctx.width - 1.55 - shadowX,
3422
3489
  y: 0.55,
3423
3490
  w: 0.58,
3424
3491
  h: 0.58,
@@ -3427,7 +3494,7 @@ function paintSlideChrome(slide, ctx, data) {
3427
3494
  });
3428
3495
  if (isHero) {
3429
3496
  slide.addShape(ctx.shapeRoundRect, {
3430
- x: ctx.width - 2.15,
3497
+ x: ctx.width - 2.15 - shadowX,
3431
3498
  y: 0.5,
3432
3499
  w: 1.45,
3433
3500
  h: 0.42,
@@ -3437,15 +3504,15 @@ function paintSlideChrome(slide, ctx, data) {
3437
3504
  });
3438
3505
  slide.addShape(ctx.shapeOval, {
3439
3506
  x: 0.5,
3440
- y: ctx.height - 1.6,
3507
+ y: ctx.height - 1.6 - shadowY,
3441
3508
  w: 0.95,
3442
3509
  h: 0.95,
3443
3510
  fill: { color: ctx.colors.accent2 },
3444
3511
  line: { color: ctx.colors.border, width: 2 },
3445
3512
  });
3446
3513
  slide.addShape(ctx.shapeOval, {
3447
- x: ctx.width * 0.78,
3448
- y: ctx.height * 0.72,
3514
+ x: ctx.width * 0.78 - shadowX,
3515
+ y: ctx.height * 0.72 - shadowY,
3449
3516
  w: 0.55,
3450
3517
  h: 0.55,
3451
3518
  fill: { color: "C4D94E", transparency: 18 },
@@ -3456,7 +3523,7 @@ function paintSlideChrome(slide, ctx, data) {
3456
3523
  // Quiet accent stub when loud pills are off.
3457
3524
  slide.addShape(ctx.shapeRoundRect, {
3458
3525
  x: ctx.margin,
3459
- y: ctx.height - 0.58,
3526
+ y: ctx.height - 0.58 - shadowY,
3460
3527
  w: 0.7,
3461
3528
  h: 0.03,
3462
3529
  fill: { color: ctx.colors.accent },
@@ -3635,6 +3702,61 @@ function paintSlideChrome(slide, ctx, data) {
3635
3702
  });
3636
3703
  }
3637
3704
  }
3705
+ if (theme === "creative-voltage") {
3706
+ // Hard accent frame + 8px neon offset shadow every slide; hero split field
3707
+ // + voltage orb (creative-voltage-split). Body slides stay dark (#1a1a2e).
3708
+ const shadow = 0.1;
3709
+ slide.addShape(ctx.shapeRoundRect, {
3710
+ x: ctx.width - shadow,
3711
+ y: shadow,
3712
+ w: shadow,
3713
+ h: ctx.height - shadow,
3714
+ fill: { color: ctx.colors.accent },
3715
+ line: { color: ctx.colors.accent, width: 0 },
3716
+ rectRadius: 0,
3717
+ });
3718
+ slide.addShape(ctx.shapeRoundRect, {
3719
+ x: shadow,
3720
+ y: ctx.height - shadow,
3721
+ w: ctx.width - shadow,
3722
+ h: shadow,
3723
+ fill: { color: ctx.colors.accent },
3724
+ line: { color: ctx.colors.accent, width: 0 },
3725
+ rectRadius: 0,
3726
+ });
3727
+ if (isHero) {
3728
+ slide.background = { color: ctx.colors.bg };
3729
+ slide.addShape(ctx.shapeRoundRect, {
3730
+ x: ctx.width * 0.48,
3731
+ y: 0,
3732
+ w: ctx.width * 0.52 - shadow,
3733
+ h: ctx.height - shadow,
3734
+ fill: { color: ctx.colors.bg2 },
3735
+ line: { color: ctx.colors.bg2, width: 0 },
3736
+ rectRadius: 0,
3737
+ });
3738
+ slide.addShape(ctx.shapeOval, {
3739
+ x: ctx.width - 1.6 - shadow,
3740
+ y: 0.55,
3741
+ w: 0.95,
3742
+ h: 0.95,
3743
+ fill: { color: ctx.colors.accent },
3744
+ line: { color: ctx.colors.accent, width: 0 },
3745
+ });
3746
+ }
3747
+ else {
3748
+ slide.background = { color: ctx.colors.bg2 };
3749
+ }
3750
+ slide.addShape(ctx.shapeRoundRect, {
3751
+ x: 0.1,
3752
+ y: 0.1,
3753
+ w: ctx.width - 0.1 - shadow,
3754
+ h: ctx.height - 0.1 - shadow,
3755
+ fill: { color: ctx.colors.bg, transparency: 100 },
3756
+ line: { color: ctx.colors.accent, width: 2 },
3757
+ rectRadius: 0,
3758
+ });
3759
+ }
3638
3760
  if (theme === "biennale-yellow") {
3639
3761
  // Sun orb + top hairline (biennale-yellow-sun).
3640
3762
  slide.addShape(ctx.shapeOval, {
@@ -3664,38 +3786,88 @@ function paintSlideChrome(slide, ctx, data) {
3664
3786
  });
3665
3787
  }
3666
3788
  if (theme === "scatterbrain") {
3667
- // Cork sticky notes + pin dots (scatterbrain-cork).
3789
+ // Cork wash + soft ink offset shadow + quiet frame + sticky notes + pins;
3790
+ // hero-gated tape strip (scatterbrain-cork ::after).
3791
+ const shadow = 0.09;
3668
3792
  slide.addShape(ctx.shapeRoundRect, {
3669
- x: ctx.width * 0.68,
3793
+ x: ctx.width - shadow,
3794
+ y: shadow,
3795
+ w: shadow,
3796
+ h: ctx.height - shadow,
3797
+ fill: { color: "2D2A26" },
3798
+ line: { color: "2D2A26", width: 0 },
3799
+ rectRadius: 0,
3800
+ });
3801
+ slide.addShape(ctx.shapeRoundRect, {
3802
+ x: shadow,
3803
+ y: ctx.height - shadow,
3804
+ w: ctx.width - shadow,
3805
+ h: shadow,
3806
+ fill: { color: "2D2A26" },
3807
+ line: { color: "2D2A26", width: 0 },
3808
+ rectRadius: 0,
3809
+ });
3810
+ // Soft cork yellow wash (HTML radial at 20%/30%).
3811
+ slide.addShape(ctx.shapeOval, {
3812
+ x: -0.8,
3813
+ y: -0.6,
3814
+ w: ctx.width * 0.55,
3815
+ h: ctx.height * 0.55,
3816
+ fill: { color: "FFE066", transparency: 88 },
3817
+ line: { color: "FFE066", width: 0 },
3818
+ });
3819
+ slide.addShape(ctx.shapeRoundRect, {
3820
+ x: 0.1,
3821
+ y: 0.1,
3822
+ w: ctx.width - 0.1 - shadow,
3823
+ h: ctx.height - 0.1 - shadow,
3824
+ fill: { color: ctx.colors.bg, transparency: 100 },
3825
+ line: { color: "2D2A26", width: 1 },
3826
+ rectRadius: 0.08,
3827
+ });
3828
+ // Quiet cork rules (HTML repeating 40px lines).
3829
+ for (let i = 1; i < 10; i++) {
3830
+ slide.addShape(ctx.shapeRoundRect, {
3831
+ x: 0.12,
3832
+ y: (ctx.height / 10) * i,
3833
+ w: ctx.width - 0.12 - shadow,
3834
+ h: 0.01,
3835
+ fill: { color: "2D2A26", transparency: 92 },
3836
+ line: { color: "2D2A26", width: 0 },
3837
+ rectRadius: 0,
3838
+ });
3839
+ }
3840
+ slide.addShape(ctx.shapeRoundRect, {
3841
+ x: ctx.width * 0.68 - shadow,
3670
3842
  y: 0.55,
3671
3843
  w: 1.7,
3672
3844
  h: 1.25,
3673
3845
  fill: { color: "FFE066" },
3674
3846
  line: { color: ctx.colors.text, width: 0.75 },
3675
- rectRadius: 0.06,
3847
+ rectRadius: 0.02,
3676
3848
  });
3677
3849
  slide.addShape(ctx.shapeRoundRect, {
3678
- x: ctx.width * 0.78,
3850
+ x: ctx.width * 0.78 - shadow,
3679
3851
  y: ctx.height * 0.48,
3680
3852
  w: 1.4,
3681
3853
  h: 1.1,
3682
3854
  fill: { color: "74C0FC" },
3683
3855
  line: { color: ctx.colors.text, width: 0.75 },
3684
- rectRadius: 0.06,
3856
+ rectRadius: 0.02,
3685
3857
  });
3686
3858
  slide.addShape(ctx.shapeRoundRect, {
3687
3859
  x: 0.55,
3688
- y: ctx.height * 0.58,
3860
+ y: ctx.height * 0.58 - shadow,
3689
3861
  w: 1.25,
3690
3862
  h: 1.0,
3691
3863
  fill: { color: "FF9F9F" },
3692
3864
  line: { color: ctx.colors.text, width: 0.75 },
3693
- rectRadius: 0.06,
3865
+ rectRadius: 0.02,
3694
3866
  });
3695
3867
  for (const pin of [
3696
- { x: ctx.width * 0.72, y: 0.48 },
3697
- { x: ctx.width * 0.82, y: ctx.height * 0.42 },
3698
- { x: 0.72, y: ctx.height * 0.52 },
3868
+ { x: ctx.width * 0.72 - shadow, y: 0.48 },
3869
+ { x: ctx.width * 0.82 - shadow, y: ctx.height * 0.42 },
3870
+ { x: 0.72, y: ctx.height * 0.52 - shadow },
3699
3871
  ]) {
3700
3872
  slide.addShape(ctx.shapeOval, {
3701
3873
  x: pin.x,
@@ -3706,6 +3878,18 @@ function paintSlideChrome(slide, ctx, data) {
3706
3878
  line: { color: "C92A2A", width: 0 },
3707
3879
  });
3708
3880
  }
3881
+ if (isHero) {
3882
+ // Tape strip stand-in (HTML ::after).
3883
+ slide.addShape(ctx.shapeRoundRect, {
3884
+ x: 0.55,
3885
+ y: ctx.height - 0.95 - shadow,
3886
+ w: 1.05,
3887
+ h: 0.26,
3888
+ fill: { color: "FFEC99", transparency: 25 },
3889
+ line: { color: "2D2A26", width: 0.75 },
3890
+ rectRadius: 0.02,
3891
+ });
3892
+ }
3709
3893
  }
3710
3894
  if (theme === "split-pastel") {
3711
3895
  // Soft dual pastel corner washes on every slide; full split + pills on heroes.
@@ -4238,36 +4422,140 @@ function paintSlideChrome(slide, ctx, data) {
4238
4422
  }
4239
4423
  }
4240
4424
  if (theme === "retro-windows") {
4241
- // Win95 title bar + window buttons + beveled frame (retro-windows-chrome).
4425
+ // Win95 beveled chrome: white top/left + black right/bottom outer bevel,
4426
+ // inset hilite/shade strips, CRT scanlines, title bar + window buttons.
4427
+ const bevel = 0.035;
4428
+ // Outer dark bottom/right.
4242
4429
  slide.addShape(ctx.shapeRoundRect, {
4243
- x: 0.08,
4244
- y: 0.08,
4245
- w: ctx.width - 0.16,
4246
- h: ctx.height - 0.16,
4247
- fill: { color: ctx.colors.bg, transparency: 100 },
4248
- line: { color: "000000", width: 2 },
4430
+ x: ctx.width - bevel,
4431
+ y: 0,
4432
+ w: bevel,
4433
+ h: ctx.height,
4434
+ fill: { color: "000000" },
4435
+ line: { color: "000000", width: 0 },
4249
4436
  rectRadius: 0,
4250
4437
  });
4251
4438
  slide.addShape(ctx.shapeRoundRect, {
4252
- x: 0.12,
4253
- y: 0.12,
4254
- w: ctx.width - 0.24,
4439
+ x: 0,
4440
+ y: ctx.height - bevel,
4441
+ w: ctx.width,
4442
+ h: bevel,
4443
+ fill: { color: "000000" },
4444
+ line: { color: "000000", width: 0 },
4445
+ rectRadius: 0,
4446
+ });
4447
+ // Outer light top/left.
4448
+ slide.addShape(ctx.shapeRoundRect, {
4449
+ x: 0,
4450
+ y: 0,
4451
+ w: ctx.width - bevel,
4452
+ h: bevel,
4453
+ fill: { color: "FFFFFF" },
4454
+ line: { color: "FFFFFF", width: 0 },
4455
+ rectRadius: 0,
4456
+ });
4457
+ slide.addShape(ctx.shapeRoundRect, {
4458
+ x: 0,
4459
+ y: 0,
4460
+ w: bevel,
4461
+ h: ctx.height - bevel,
4462
+ fill: { color: "FFFFFF" },
4463
+ line: { color: "FFFFFF", width: 0 },
4464
+ rectRadius: 0,
4465
+ });
4466
+ // Inset shade (bottom/right #404040) + hilite (top/left white).
4467
+ const inset = 0.02;
4468
+ slide.addShape(ctx.shapeRoundRect, {
4469
+ x: ctx.width - bevel - inset,
4470
+ y: bevel,
4471
+ w: inset,
4472
+ h: ctx.height - bevel * 2,
4473
+ fill: { color: "404040" },
4474
+ line: { color: "404040", width: 0 },
4475
+ rectRadius: 0,
4476
+ });
4477
+ slide.addShape(ctx.shapeRoundRect, {
4478
+ x: bevel,
4479
+ y: ctx.height - bevel - inset,
4480
+ w: ctx.width - bevel * 2,
4481
+ h: inset,
4482
+ fill: { color: "404040" },
4483
+ line: { color: "404040", width: 0 },
4484
+ rectRadius: 0,
4485
+ });
4486
+ slide.addShape(ctx.shapeRoundRect, {
4487
+ x: bevel,
4488
+ y: bevel,
4489
+ w: ctx.width - bevel * 2 - inset,
4490
+ h: inset,
4491
+ fill: { color: "FFFFFF" },
4492
+ line: { color: "FFFFFF", width: 0 },
4493
+ rectRadius: 0,
4494
+ });
4495
+ slide.addShape(ctx.shapeRoundRect, {
4496
+ x: bevel,
4497
+ y: bevel,
4498
+ w: inset,
4499
+ h: ctx.height - bevel * 2 - inset,
4500
+ fill: { color: "FFFFFF" },
4501
+ line: { color: "FFFFFF", width: 0 },
4502
+ rectRadius: 0,
4503
+ });
4504
+ // Quiet CRT scanlines.
4505
+ for (let i = 0; i < 14; i++) {
4506
+ slide.addShape(ctx.shapeRoundRect, {
4507
+ x: bevel + inset,
4508
+ y: 0.5 + i * 0.45,
4509
+ w: ctx.width - (bevel + inset) * 2,
4510
+ h: 0.012,
4511
+ fill: { color: "000000", transparency: 94 },
4512
+ line: { color: "000000", width: 0 },
4513
+ rectRadius: 0,
4514
+ });
4515
+ }
4516
+ slide.addShape(ctx.shapeRoundRect, {
4517
+ x: bevel + inset + 0.02,
4518
+ y: bevel + inset + 0.02,
4519
+ w: ctx.width - (bevel + inset + 0.02) * 2,
4255
4520
  h: 0.32,
4256
4521
  fill: { color: "000080" },
4257
4522
  line: { color: "000080", width: 0 },
4258
4523
  rectRadius: 0,
4259
4524
  });
4260
- const winBtns = [ctx.width - 1.15, ctx.width - 0.85, ctx.width - 0.55];
4525
+ const winBtns = [
4526
+ ctx.width - 1.2 - bevel,
4527
+ ctx.width - 0.9 - bevel,
4528
+ ctx.width - 0.6 - bevel,
4529
+ ];
4261
4530
  for (const x of winBtns) {
4262
4531
  slide.addShape(ctx.shapeRoundRect, {
4263
4532
  x,
4264
- y: 0.18,
4533
+ y: bevel + inset + 0.08,
4265
4534
  w: 0.22,
4266
4535
  h: 0.18,
4267
4536
  fill: { color: "C0C0C0" },
4268
4537
  line: { color: "FFFFFF", width: 1 },
4269
4538
  rectRadius: 0,
4270
4539
  });
4540
+ // Button shade stub (Win95 raised control).
4541
+ slide.addShape(ctx.shapeRoundRect, {
4542
+ x: x + 0.18,
4543
+ y: bevel + inset + 0.1,
4544
+ w: 0.03,
4545
+ h: 0.14,
4546
+ fill: { color: "000000" },
4547
+ line: { color: "000000", width: 0 },
4548
+ rectRadius: 0,
4549
+ });
4550
+ slide.addShape(ctx.shapeRoundRect, {
4551
+ x: x + 0.02,
4552
+ y: bevel + inset + 0.22,
4553
+ w: 0.16,
4554
+ h: 0.03,
4555
+ fill: { color: "000000" },
4556
+ line: { color: "000000", width: 0 },
4557
+ rectRadius: 0,
4558
+ });
4271
4559
  }
4272
4560
  }
4273
4561
  if (theme === "pin-and-paper") {