Skip to content

docs(readme): platform download strip above the title - #3947

Merged
zackees merged 2 commits into
masterfrom
docs/install-badges
Nov 8, 2026
Merged

zackees merged 2 commits into
masterfrom
docs/install-badges

Conversation

@zackees

@zackees zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member

Windows / macOS / Linux download links with vector badges, as the first thing in README.md.

Links land on instructions, not a file list

Each badge points at its own section of the Install chapter rather than the bare releases page:

badge target
Windows #windows-x64-arm64 → ## Windows (x64, arm64)
macOS #macos-arm64-x86_64 → ## macOS (arm64, x86_64)
Linux #linux-x86_64 → ## Linux (x86_64)

That section names the asset pattern (OBS-Studio-Rust-<version>-<os>-<cpu>.<ext>), the SHA256SUMS file, and the side-by-side-with-upstream caveat — so a click lands somewhere useful instead of a wall of attachments.

Dialect matches the badges already here

docs/images/discussions.svg and merge-queue.svg are hand-written flat two-tone shields, so the new art copies that language rather than inventing one: rx=4, #3d444d label side, one accent side, glyph as a path (no raster), no shadows. Accents are per platform (windows #0078d4, apple #6e40c9, linux #bc4c00) with one shared geometry, so the trio reads as a set.

Native size 208×44, displayed at height="44" — nothing is downscaled, so the type renders at its authored size (the earlier soldr effort taught that rescaling is where sub-labels turn to mush).

docs/images/gen-download-badges.py generates all three from one template, so the plates cannot drift apart in a later edit.

Container: <p>, because a table cannot be invisible here

GitHub applies border: 1px solid rgb(61,68,77) and padding: 6px 13px to every rendered <td> and strips style= — so a "borderless table" arrives as a grey cell grid. Verified through GitHub's own renderer rather than a local preview:

gh api -X POST /markdown -f mode=gfm -f text="<p align="center">
  <a href="#windows-x64-arm64"><img src="docs/images/download-windows.svg" alt="Download OBS-Studio-Rust for Windows" height="44"></a> &nbsp;&nbsp; <a href="#macos-arm64-x86_64"><img src="docs/images/download-macos.svg" alt="Download OBS-Studio-Rust for macOS" height="44"></a> &nbsp;&nbsp; <a href="#linux-x86_64"><img src="docs/images/download-linux.svg" alt="Download OBS-Studio-Rust for Linux" height="44"></a>
</p>"
→ <p align="center"> <a href="#windows-x64-arm64"><img … style="max-width: 100%; height: auto; max-height: 44px;"> …

No <td>, align preserved, and GitHub itself adds max-height:44px.

Verification

  • Layout: three 208px badges + 17.8px gaps = 659.6px, one line, overflow: false measured in a browser at 838px and 823px (GitHub's README body at ≥1440 and 1280).
  • Repo checks: ci/test_ci_toml.py → 47 tests OK.
  • Rendered art checked at 2× for clipping: first pass had an empty label segment and a clipped "WINDOWS", both fixed before commit.
  • Evaluator pass (separate agent) requested by the task; result in a follow-up comment.

Note

No C/C++ or Rust source touched — README plus three SVGs plus one generator script.

@zackees
zackees force-pushed the docs/install-badges branch from 0de302d to 74cc984 Compare November 7, 2026 22:46
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Revision after the first evaluator pass came back FAIL with two significant findings. Both were real, both are fixed in 74cc98408:

  1. [SIGNIFICANT] ragged right edge — the glyph+word block was anchored 5px after the split on equal-width plates, leaving 11.7 / 30.6 / 40.0 px of empty accent on Windows / macOS / Linux. The Linux plate carried ~19% dead orange. Plates are now sized to their own content (225 / 203 / 194 px) with one uniform 14px right inset, which is how the house badges behave anyway — no interior padding can go ragged because there is no fixed interior.
  2. [SIGNIFICANT] inconsistent glyph optics — the apple sat 8.5px above the cap line and the penguin 4.2px below it, a ~4.2px centre spread on a 44px plate. Every glyph is now normalised into the same 20×20 optical box on the plate midline, so the row reads as one line of ink.

Also taken from the same review:

  • Windows accent deepened #0078d4 → #0067bf (white text 4.53:1 → ~5.3:1, so the three words sit in one contrast band).
  • Tux redrawn as a white body with dark eyes and beak and visible flippers — the previous dark head on #bc4c00 was 3.29:1 and read as a blob.
  • Dialect drift removed: rx=3 (was 4), #555 label side (was #3d444d), 10% sheen (was 12%), Verdana family like discussions.svg.

Re-verified after the change: three plates 225+203+194 = 622px plus two 17.8px gaps = 657.6px, one line, overflow: false in a browser at GitHub's 838 and 823 column widths; POST /markdown still returns a bare <p align="center"> with no <td>. Second evaluator pass requested.

@zackees
zackees force-pushed the docs/install-badges branch from 74cc984 to dd103a1 Compare November 7, 2026 22:52
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Second evaluator pass: VERDICT PASS. It also left five non-blocking notes; four are now fixed in dd103a1d7:

  1. [MINOR] right inset measured 9.8–12.05px, not the 14 I claimed — my ADVANCE table under-predicted the rendered string, so "14 by construction" was not true on any platform. Fixed structurally rather than by re-tuning the table: the platform word is now right-anchored at width - 14, so the inset is exact whatever font the reader has, and a 10px safety margin absorbs a wider face.
  2. [MINOR] glyph optics — apple was 18% shorter and floated 1.6px high, Tux sat 1.1px low. Apple scaled to 0.70 and both nudged so their ink centres sit on the plate midline.
  3. [MINOR] label side crowded the corner — DOWNLOAD had 5.4px against 10–12px on the accent side. The label segment is now 100px wide, giving symmetric padding.
  4. [MINOR] dialect — added the 1px 30% #010101 stamp shadow and text-rendering="geometricPrecision" the house badges use, and switched macOS to the house purple #8957e5 (was #6e40c9).

Left as-is, deliberately:

  • Tux reads as a mascot face (two eyes, beak, flippers high enough to echo ears) rather than unmistakably a penguin. It is legible and 5:1 against the plate; a truer Tux silhouette is a bigger drawing job than a badge glyph, and I would rather ship a clear mark than a fussy one.
  • Dark-mode edge contrast (#555 on #0d1117 ≈ 2.3:1) — inherited from the house badges this set deliberately matches, so changing it would break the dialect it was asked to join.

Final geometry: 243 + 221 + 212 px + two 17.8px gaps = 711.6px, one line, overflow: false at 838 and 823; POST /markdown still yields a bare <p align="center"> with no <td>.

zackees and others added 2 commits November 7, 2026 19:11
Three vector download badges (Windows / macOS / Linux) as the first thing in the README, each linking to its own section of the Install chapter (#windows-x64-arm64, #macos-arm64-x86_64, #linux-x86_64) so the click lands on the per-OS instructions and the SHA256SUMS note rather than a bare file list.

Dialect matches the hand-written badges already here (docs/images/discussions.svg, merge-queue.svg): flat two-tone plate, rx=3, #555 label side + one accent side, 10% sheen, Verdana stack, stamped text shadow, glyphs as paths. Accents windows #0067bf, apple #8957e5 (the house purple), linux #bc4c00 - all three platform words are white at >=5:1 on their accent.

Geometry: plates sized to content, one 14px right inset enforced by right-anchoring the platform word (not by predicting its width - the font decides that, and DejaVu resolves wider than Verdana), a 10px safety margin so a wider system font cannot eat the inset, a symmetric 100px label segment so DOWNLOAD never crowds the rounded corner, and every glyph normalised into a 20x20 optical box on the plate midline.

Container is <p align="center">, not a <table>: GitHub applies border + padding to every rendered <td> and strips inline style, so a borderless table renders as a grey cell grid. Verified through GitHub's own renderer (POST /markdown): the block returns as <p align="center"> with no <td>, and GitHub adds max-height:44px to each img.

Measured in a browser at GitHub's README column widths: 243 + 221 + 212 px plus two 17.8px gaps = 711.6px, one line, no horizontal overflow at 838 and 823.

docs/images/gen-download-badges.py regenerates all three from one template.
@zackees
zackees force-pushed the docs/install-badges branch from dd103a1 to 6c53610 Compare November 8, 2026 03:13
@zackees
zackees enabled auto-merge November 8, 2026 03:13
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
Merged via the queue into master with commit cb38305 Nov 8, 2026
37 checks passed
@zackees
zackees deleted the docs/install-badges branch November 8, 2026 03:37
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant