Reputation: 25830
I have an app that is a standalone window. I want to add a box shadow around the window (so it appears on top of all windows behind it). Is this possible?
Upvotes: 2
Views: 543
Reputation: 1887
[posting this answer based on the discussion in the comments to the original question]
There is a Shaped and Translucent Windows API coming to Chrome apps soon.
This API should be able address your needs at least to a good extent. It is already available under an experimental flag in M32 for Windows and Chrome OS.
The current state of the implementation is as follows.
The input region / window shape API is partially complete for Windows & CrOS: - on Windows it implements window shaping. - on CrOS it implements input region shaping but doesn't yet affect the visible shape.
In M33 Linux should gain window shape support, and we hope to have CrOS window shape, and the transparency limiting based on shape landed as well.
Transparency outside the window shape will likely only work on CrOS initially, due to limitations of the platform specific shape APIs.
Upvotes: 2