Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(windows): Enable native resizing on undecorated windows with shadows #905

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

FabianLars
Copy link
Member

I started looking into the code because i wanted to remove the titlebar but keep the borders + shadows. Turns out the undecorated shadows code is basically what i wanted already but the code i saw when researching it was a bit different.
Turns out, it looks the same (i think) as before, but now enables native resizing with resize handles outside of the window.

Only the top bar resizing is still messed up because it's just 1px because top bar resizing is typically inside the window, not outside like on the other borders :/ -> Increasing the bordersize there will make the window look ugly or will require us to color match the titlebar with the window content but it'd still be weird with the control buttons.

I never resize with the top bar so i feel like this is good enough already but we can do that in JS in tauri later and there it'd actually be correct behavior (as opposed to the current undecorated resizing which is inside the window)


I only tested this on Windows 11 so far which is why this is a draft pr, apart from wanting to get general feedback of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant