Skip to content

Rounded window corners (v0.3.4) - #30

Merged
Maxaubert merged 1 commit into
masterfrom
feat/rounded-corners
Nov 26, 2026
Merged

Maxaubert merged 1 commit into
masterfrom
feat/rounded-corners

Conversation

@Maxaubert

Copy link
Copy Markdown
Owner

Max asked for rounded window corners (2026-11-26).

  • On show, the main window asks DWM for round corners (DWMWA_WINDOW_CORNER_PREFERENCE = DWMWCP_ROUND) and a border color of #242424 (DWMWA_BORDER_COLOR), so the 1 px border follows the curve. DWM drops both when maximized. On Windows 10 the calls fail and nothing changes.
  • Removes the Slint-drawn border from Thin window border (v0.3.3) #29: a test run showed DWM's border plus ours made a 2 px edge, and a square Slint border cannot follow the corners.

Checks

  • fmt, clippy -D warnings, cargo test --workspace pass.
  • Installed v0.3.4 (started in the tray).
  • Not yet seen on screen: the corner look needs a visible window, and Max was using the screen. A test window showed the DWM border is drawn.

🤖 Generated with Claude Code

Windows 11 rounds the main window (DWMWCP_ROUND) and draws its own 1 px
border in #242424, which follows the curve and hides when maximized. The
Slint border from #29 is removed: with both, the edge was 2 px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Maxaubert
Maxaubert merged commit 4fa5cd8 into master Nov 26, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant