Skip to content

Add opt-in rounding for Steam windows and game Dock icons - #319

Open
vecbool wants to merge 2 commits into
NotProtonNot:mainfrom
vecbool:feat/steam-rounding
Open

vecbool wants to merge 2 commits into
NotProtonNot:mainfrom
vecbool:feat/steam-rounding

Conversation

@vecbool

@vecbool vecbool commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Refs #233.

Add Round Steam windows under Status → Steam. It is off by default. The option gives regular SDL desktop windows their native AppKit corners after Steam restarts.

The second commit adds an optional plugin that keeps the rounded launcher artwork with macOS icon margins when Wine updates the game's Dock icon. Game session grouping is covered by #257.

I verified a cold start through the standard Steam app on Apple silicon with Steam build 1794536281, and ran make dylib and make rounded-game-icon-check. The Dock checks passed on arm64 and x86_64. The Swift suite passed 589 of 590 tests. The remaining test expects stock CrossOver Preview ntdll modules and fails the same way on main with my locally patched installation.

@NotProtonNot

Copy link
Copy Markdown
Owner

I despise how Steam is not rounded. I'll review this for merging today.

@NotProtonNot

Copy link
Copy Markdown
Owner

Day passed, I got busy, but I'm coming back to this today because I hate the UI quirk so much.

@NotProtonNot

Copy link
Copy Markdown
Owner

The rounded artwork issue was a dumb NotProton issue, I am fixing it now.

@NotProtonNot

Copy link
Copy Markdown
Owner

Got your icon fix in on main/plugin-pt3, reviewing the rest.

@NotProtonNot

Copy link
Copy Markdown
Owner

As much as I want to merge this, it's quite complex and fragile. The PR kinda subverts Steam's internal logic and could easily break. It fights SDL quite a bit and causes weird flickering. Is there a better way to do this?

@vecbool

vecbool commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for testing this! The window has looked stable on my setup so far. I’d like to revisit this and see if there’s a simpler way to round the corners while letting SDL manage the window style. It may be a while before I have an update. If you remember what triggered the flicker, that would help me reproduce it.

@vecbool

vecbool commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

One option is to keep SDL’s borderless window and use AppKit to clip the content layer to a rounded rectangle, leaving the corners transparent.

@vecbool
vecbool force-pushed the feat/steam-rounding branch from 7005ca1 to e0ad59d Compare November 25, 2026 00:18
@vecbool

vecbool commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

This update resolves the conflict with SDL’s window styling by rounding the content layer. I’m still working on making the corner shape match native macOS windows.
image

@vecbool

vecbool commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

The revised patch clips the content layer and leaves window styling to SDL. It uses a 17 pt radius on macOS 26 and later, which I tested on macOS 27.2.1. Could you take another look when you have a chance?

@NotProtonNot

Copy link
Copy Markdown
Owner

Will take another look at it tonight. Currently attempting to reproduce something. 😄

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.

2 participants