Windows: snap-layout flyout on the page-drawn maximize button, optional Mica

Aperta
#271 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
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, tauri
Ambito
desktop

Direzione di ricerca

Start in crates/atlas-desktop/src/webview_win.rs, where the Windows webview window is created, to see how the window procedure is currently wired before adding a WM_NCHITTEST handler. Read WindowControls.svelte to get the page-drawn maximize button rect that must be translated into the HTMAXBUTTON hit region, and read crates/atlas-desktop/Cargo.toml:37 plus main.rs:420-438 for the vibrancy dependency and the existing title-bar setup that must not regress. Done looks like the snap-layout flyout appearing on maximize hover on Windows 11 while click still maximizes.

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

Descrizione

area: desktop os: windows priority: 2 normal status: needs-repro type: feature

Linux roadmap item (tracking: #289). Evidence is from reading code at main (9c32731) and a hand test on Omarchy (Arch, Hyprland Wayland, AMD 680M, Mesa 26.2.5, AppImage 1.5.0-alpha.25). [INFERENCE] marks anything not observed directly.

Problem

Windows is frameless with page-drawn caption buttons (WindowControls.svelte), which loses the Windows 11 snap-layout flyout on maximize (no native HTMAXBUTTON hit region) [INFERENCE: verify on Win11]. window-vibrancy is a dependency (crates/atlas-desktop/Cargo.toml:37) but only macOS calls it; no Mica/Acrylic, and the window is opaque (main.rs:420-431).

Proposal

  1. Answer WM_NCHITTEST with HTMAXBUTTON over the page's maximize button rect (webview_win.rs), so Win11 shows snap layouts.
  2. Follow-up: apply_mica on Win11 with a transparent page ground on that path.

Acceptance

  • Hovering maximize on Win11 shows the snap-layout flyout; click still maximizes.
  • No double title bar regression (main.rs:433-438).
Lingua principale
Rust
Stelle
3
Fork
1
Merge medio
9h 51m
PR unite (30g)
310

Preparare l'ambiente

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 codeatlasdev/atlas

Tutte le issue di codeatlasdev/atlas

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.