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 shadow on images #51

Open
ejaa3 opened this issue Aug 2, 2023 · 2 comments
Open

Add shadow on images #51

ejaa3 opened this issue Aug 2, 2023 · 2 comments

Comments

@ejaa3
Copy link

ejaa3 commented Aug 2, 2023

You could toggle in the GTK Inspector a CSS like this:

clamp image, gridview image {
	filter: drop-shadow(0px 1px 4px #0007);
}
@neithern
Copy link
Owner

neithern commented Aug 3, 2023

Looks good, but how can I set individual shadow radius for different sized image? Or disable the images in list mode?

@ejaa3
Copy link
Author

ejaa3 commented Aug 3, 2023

I guess you can give a name to the parent widget and in the CSS select it with #parent_widget_name image { }

Or give a class to the Gtk.Image and select them with: .image_class { } 🤔

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

No branches or pull requests

2 participants