-
-
Notifications
You must be signed in to change notification settings - Fork 188
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: with_has_shadow
, has_shadow
and set_has_shadow
#157
Comments
with_shadow
and set_shadow
Windows:I tried electron and found that:
Then I wrote a c++ app to experiment more with win32 apis
MacOS:
Linux:
|
with_shadow
and set_shadow
has_shadow
and set_has_shadow
has_shadow
and set_has_shadow
with_has_shadow
, has_shadow
and set_has_shadow
@amrbashir Does the shadow configuration include the semi-transparent border in Windows 10/11, or would that require a separate set of methods (e.g. |
Not sure what you mean, but if you mean that tiny little white border in the screenshot you posted in the other issue, then yes adding the shadows will also add that white border, unfortunately we can't separate them from each other and I thnk MS Teams uses the same method I know and plan to use. (for reference: |
Yeah, the tiny white border is what I meant. 🙂 I don't have a use case for separately modifying the border and shadow, I just wanted a way to get all of the native chrome minus the titlebar, and it sounds like this will do the trick. Thanks for working on this! |
The white border is not a native chrome btw. In Windows, the way to remove the titlebar also removes any borders and resizing handlers so we still need use manual detection of mouse click in the first few pixels of the window to allow it to resize and I am pretty sure any frameless app on windows does that even electron and MS Teams. |
@amrbashir Does |
I have a custom setup on Linux (awesomewm & picom) and tao windows have shadows but that doesn't necessary mean it has it on full DEs and I haven't tested this on full DE like Gnome or KDE but in theory it should have shadows. I guess I need someone to confirm this. |
I made https://github.com/tauri-apps/window-shadows to add shadows on Windows and macOS using a single method, until we implement Windows directly in the core TAO codebase. |
Would |
Is your feature request related to a problem? Please describe.
When using
decorations: false
the app removes not only the topbar & border, but also the shadow.Describe the solution you'd like
I would like to see the shadow separated into it's own config property. So you could e.g. do:
Which would result in a window without the top bar, without borders but with the OS shadow.
Describe alternatives you've considered
I tried building this in my app, but this comes with a lot of edge cases. You can't click through the shadow, you have to dynamically change the spacing/shadow when you are full screen, etc.
Additional context
This was experienced on Windows, I have not tested behavior on other OS'.
The text was updated successfully, but these errors were encountered: