Canvas and macOS host improvements

オープン
#481 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
macos, zig
領域
desktop

調査の方向性

Start with the linked PRs #471–#480, using each PR's listed scope to choose one independent improvement rather than treating this tracker as a single task. Done means the selected improvement has a resolved scope and its corresponding PR is ready to merge.

索引モデルが issue の本文から書いたものです。

説明

Sup, everyone!

I'm porting ProUI, to Native SDK and I bring SDK improvements that were required to make it work. This issue is to keep track of stuff and explain the PR shotgun.

Matching ProUI's designs and the density of the demo apps built with it required some updates to the SDK in a few of places.
I made those changes in a fork I could develop with, but it'd be nice to have them in the SDK as it'll benefit everyone using it, not just ProUI

Some of the fixes:

  • Rounded clip_content surfaces cut their children square on every backend.
  • Drop shadows on macOS rendered at about 1% strength and pointed the wrong way vertically.
  • ProMotion displays were capped at 60 Hz.
  • A dropped scroll report could leave the native scroller and the canvas content permanently out of step.
  • An open accordion containing a closed one never became interactive.
  • Wrapped paragraphs could be measured at the wrong width and overlap the next sibling.

I've also added general mechanisms for things ProUI needed that would be beneficial to other projects using Native SDK: widget painters, app-level input hooks, SliderRange, side-anchored overlays, and composed tooltips.

PR What
#471 Canvas fixes: paragraph and overlay measurement, container borders, nested accordions, animation transforms
#472 Letter spacing, authored text size and line height, rounded content clips on every backend (wire format v6)
#473 Widget painters and custom-control seams (cursor override, automation hover)
#474 Slider source ranges, vertical flush button groups, app input hooks
#475 Side-anchored overlays, docked modals, modal dismissal, menu safe triangle, composed tooltips, checked native menu items
#476 Layout memoization, desktop budgets, virtual-list row reuse, animation continuity
#477 File path dialogs for Zig apps, app-owned pixels, real-time audio output
#478 macOS shadow, stroke, font, and accessibility fixes
#479 macOS scrolling reliability, display-rate pacing, GPU compositing
#480 GPU scenes rendered into registered images (builds on #479)

The fixes (#471, #478, and most of #479) should be uncontroversial and I welcome design feedback on:

  • the painter API in #473 (a function pointer plus a fixed [8]f32 payload)
  • the SliderRange model in #474
  • the overlay placement additions in #475
  • whether real-time audio output (#477) and GPU scenes (#480) belong in the SDK at all. I feel like it's neat, but idk

Everything is split so it can be merged independently except #480, which builds on #479

Thx, see you tomorrow ▲

主要言語
Zig
スター
7.9k
フォーク
335
平均マージ
10時間 33分
マージ済み PR(30日)
147

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vercel-labs/native のほかの issue

vercel-labs/native の issue をすべて見る

似ている issue

Desktop Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。