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

What are the default shadow values for GNOME? #12

Closed
flexagoon opened this issue Aug 3, 2022 · 4 comments · Fixed by #30
Closed

What are the default shadow values for GNOME? #12

flexagoon opened this issue Aug 3, 2022 · 4 comments · Fixed by #30

Comments

@flexagoon
Copy link
Contributor

I like this extension, but I want the shadows on all of my windows to be the same, which is not the case when I install this. What values should I set in shadow settings to make rounded window shadows exactly the same as normal window shadows?

Relevant: #11

@yilozt
Copy link
Owner

yilozt commented Aug 3, 2022

Seems it can be found in GTK project, I'm not sure yet:

https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/theme/Default/_common.scss#L4053

@davidphilipbarr
Copy link

I think the libadwaita shadow is three (?) Box shadows layered to create a more complex depth effect, adw-gtk3 has a simplified version for performance but I think it's still two shadows, so currently the same shadow can't be recreated but something similar can probably be passable taking an approximate average of the default shadows?

@yilozt
Copy link
Owner

yilozt commented Aug 3, 2022

Yes, libadwaita / adw-gtk use multi shadow to draw windows shadow. Unfortunately, the shadow style of rounded corners window only support apply one shadow in box-shadow css property.

Actually the shadow for rounded corners window is just a St.Bin actor with a single box-shadow css property which insert below window. Though we can apply css to Clutter.Actor by St library, it still not support apply multi shadow in box-shadow.

So we only can got a similar result to default Adwaita theme.

@davidphilipbarr
Copy link

davidphilipbarr commented Aug 4, 2022 via email

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 a pull request may close this issue.

3 participants