neithern / g4music

A light weight music player written in GTK4, with a fluent adaptive user interface.
https://gitlab.gnome.org/neithern/g4music
GNU General Public License v3.0
195 stars 15 forks source link

Add shadow on images #51

Open ejaa3 opened 1 year ago

ejaa3 commented 1 year ago

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

clamp image, gridview image {
    filter: drop-shadow(0px 1px 4px #0007);
}
neithern commented 1 year ago

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

ejaa3 commented 1 year ago

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 { } 🤔