Merge the title bar and top action bar into one row

Aperta
#17,521 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
desktop, frontend

Direzione di ricerca

Start from the design in the linked Figma node and the workbench.experimental.uiRevamp flag, which gates the change. The issue names the controls to remove (New, Open, Save All, folder menu) and the ones to keep, but not the files that render the title bar or top action bar, so locate those first. Done means the flag-on window shows one row with the kept controls on macOS, Windows, and Linux, the flag-off layout is unchanged, and Save All still works from its shortcut.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: ui usability

Part of #17419. Behind workbench.experimental.uiRevamp.

Design: Top Bar, "1. Single top bar (macOS)", Option B

Problem

The top of the window has two rows: the title bar and the top action bar. Together they hold 12 controls. Several of them are buttons for managing files and folders that repeat what the File menu already does.

Proposal

Merge the title bar and the top action bar into one row, and remove the buttons that repeat other actions.

Remove these items:

  • The New menu
  • The Open menu
  • The Save All button
  • The folder menu on the right (shows the current folder and lets you switch folders)

Users create, open, and save files and switch folders from the File menu, the Welcome page, the Explorer, and keyboard shortcuts. Save All keeps its shortcut (Opt+Cmd+S on macOS).

The single row keeps, from left to right:

  • Back and Forward
  • The search box (command center), which now shows the current folder name, for example sales-analysis
  • The interpreter session picker
  • The layout controls from the title bar: the Layout button and the buttons that show and hide the primary side bar, panel, and secondary side bar

Notes

  • The design is for macOS. Check how the single row works on Windows and Linux, where the title bar also holds the menu bar.
  • On Positron Web there is no OS File menu. The application menu is a menu button at the top of the activity bar (window.menuBarVisibility is compact by default on web). Check that the File commands are easy to find there, and that shortcuts such as Ctrl+S are not taken by the browser.
  • Option A in the same design keeps the New and Open menus. This issue follows Option B.
  • When the flag is off, the top of the window looks as it does today.
Lingua principale
TypeScript
Stelle
4.4k
Fork
207
Merge medio
1g 7h
PR unite (30g)
341

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/positron

Tutte le issue di posit-dev/positron

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.