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

Aberta
#271 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
rust, tauri
Domínio
desktop

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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).
Linguagem predominante
Rust
Estrelas
3
Forks
1
Merge médio
9h 51min
PRs com merge (30d)
310

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de codeatlasdev/atlas

Todas as issues de codeatlasdev/atlas

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.