lanoxx / tilda

A Gtk based drop down terminal for Linux and Unix
GNU General Public License v2.0
1.27k stars 162 forks source link

Ability to draw box shadow #382

Closed vredesbyyrd closed 5 years ago

vredesbyyrd commented 5 years ago

Looking for tips more than anything. IMO, it would be nice if Tilda had a box-shadow around its main window like other 'normal' windows in any major DE. I know this may go against what a 'drop down' terminal is, but it could be helpful in certain circumstances Eg, Tilda and desktop background have a similar color, or you focus Tilda on top a similar colored application.

I tried to do this with css but that wont cut it, because as I understand it decorations are completely ignored. After poking around the source a bit, i'm curious if its as simple as adding gtk_frame_set_shadow_type in tilda.ui to the correct class, than defining the box-shadow with css?

Any thoughts on accomplishing this would be much appreciated. And thanks for your continued work on Tilda.

Regards

vredesbyyrd commented 5 years ago

I spoke too soon, when I should have been reading. This did the trick...

gtk_window_set_decorated (GTK_WINDOW(tw->window), TRUE);

Closing.