Rounded Widgets

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
Posts: 27
Joined: Sat Feb 03, 2018 11:49 pm

Rounded Widgets

Postby drakeraider » Sun Sep 01, 2019 4:07 am

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?

Posts: 267
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

Re: Rounded Widgets

Postby louis94 » Sun Sep 01, 2019 10:32 pm

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".