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

Add support for shadows #926

Open
Iss-in opened this issue Oct 2, 2021 · 6 comments
Open

Add support for shadows #926

Iss-in opened this issue Oct 2, 2021 · 6 comments
Labels

Comments

@Iss-in
Copy link

Iss-in commented Oct 2, 2021

Now most wayland compositors dont implement shadows themselves, instead allowing the client window to draw them for themselves. Will it be possible to implement this in dunst itself ?

@apprehensions
Copy link
Contributor

yes but it might take plenty of time and code, i suggest you just use a compositor instead of adding support directly into the software

@fwsmit
Copy link
Member

fwsmit commented Oct 2, 2021

yes but it might take plenty of time and code, i suggest you just use a compositor instead of adding support directly into the software

Agreed. But I'd probably accept a PR if it doesn't add too much complexity.

@fwsmit fwsmit added the Feature label Oct 20, 2021
@Iss-in
Copy link
Author

Iss-in commented Jan 4, 2022

most wayland compositors, especially sway aren't drawing up border shadows anymore, and are letting it to be part of csd itself. this also includes most gtk apps ( they all draws shadows for themselves ) including firefox on wayland.

implementation is quite simple imo, shadow is just a black border with progressive transparency (alpha gradient) applied to it. should be really easy to do in cairo, sadly I just dont have enough experience with it . hopefully someone will pick it up

@traeanto
Copy link

please mention me if box shadow has been added

@apprehensions
Copy link
Contributor

No

@bynect
Copy link
Member

bynect commented Feb 21, 2024

most wayland compositors, especially sway aren't drawing up border shadows anymore, and are letting it to be part of csd itself. this also includes most gtk apps ( they all draws shadows for themselves ) including firefox on wayland.

implementation is quite simple imo, shadow is just a black border with progressive transparency (alpha gradient) applied to it. should be really easy to do in cairo, sadly I just dont have enough experience with it . hopefully someone will pick it up

do you have any example on hand for implementing shadows? I may work on that in my effort to make dunst more aesthetic, but I am a little short on time right now so any pointer is appreciated

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

No branches or pull requests

5 participants