← Back to team overview

kicad-developers team mailing list archive

Help on saving colors options on 3D-Viewer

 

Hello all,

I'm looking for help on anyone behind the "settings saving and best practice".

I noticed there were lots of changes related how settings are saved.
Currently  the color settings on 3D-Viewer come from:
COLOR_SETTINGS* colors = Pgm().GetSettingsManager().GetColorSettings();
They are labeled as LAYER_3D_
There is LAYER_3D_BACKGROUND_BOTTOM and LAYER_3D_BACKGROUND_TOP that are not really layers.

I have in mind, to implement a color options of the lights on Raytracing render,
(please also comment if you have anything to say about this idea)
so I was looking for guidance where/how should it be implemented and where/how should it be saved.

For me it looks better to store this colors next to other 3D-Viewer settings (EDA_3D_VIEWER_SETTINGS)
but still not sure how to add there a color parameter.

I appreciate any hint!

Regards,
Mario Luzeiro

Follow ups