I'm working on the Navigation Cube and I have added borders to the buttons that is equal to the edges of the cube. The motivation is that the buttons sometimes disappears depending on the objects behind
2. Would it be ok to merge the settings for ButtonColor and FrontColor into one BaseColor?
3. Would it be ok to merge the settings for TextColor and BorderColor into one Emphase Color?
In my current implementation there is GUI only for the ButtonColor and the TextColor and BorderColor defaults to white or black whichever gives the most contrast.
1. Is there something against such change?Navigation Cube color settings
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- adrianinsaval
- Veteran
- Posts: 5541
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Navigation Cube color settings
looks like a good idea to me, I don't really see a point in offering such fine control of colors, specially when it's only through advanced parameters. It could however be a good idea to make the borders optional to provide a workaround for this issue: viewtopic.php?t=76438
(which I suspect would be extended to the buttons too with your changes)
@-alex- do you still experience this issue with the navicube in a raspberry pi?
(which I suspect would be extended to the buttons too with your changes)
@-alex- do you still experience this issue with the navicube in a raspberry pi?
Re: Navigation Cube color settings
That all sounds fine to me as well.
Re: Navigation Cube color settings
Here's the code if you want to compile and try.
https://github.com/Jolbas/FreeCAD/tree/ ... sable_drag
https://github.com/Jolbas/FreeCAD/tree/ ... sable_drag
Re: Navigation Cube color settings
@-alex- The code is now updated to use glDrawArrays() instead of glBegin() and glEnd(). Those two later are not a part of OpenGL ES that is used on your Raspberry Pi and glDrawArrays() is better in any case. If you are able to compile and test my branch that would be great.