Page 1 of 1

Rounded Widgets

Posted: Sun Sep 01, 2019 4:07 am
by drakeraider
I would love to see rounded corners on the boxes on the tech tree, and I'm not sure that this the only place that that would be beneficial either across the client. Would this be addable, or is there a quick and hacky way to do it in the meantime?

Re: Rounded Widgets

Posted: Sun Sep 01, 2019 10:32 pm
by louis94
You can do it if you're willing to code it yourself. You'll need a function canvas_put_rounded_rectangle in client/include/canvas_g.h. It must be implemented in the clients so you'll need to do that for the client of your choice. Next you'll need to update client/reqtree.c to use your new function (search for canvas_put_rectangle).

I don't see a use case for it... unless you're talking about making the techs look like Material Design "cards".