You shouldn't hard-code any colours. Splitter should have one or two constructor parameters that specify the colours to use, similar to GG::Scroll or GG::Button.neuro wrote:The background is black and the tab itself is "GG::Grey".
I meant using OpenGL rendering commands, like is done for almost every GG GUI class in the Render function, either directly or by calling helper functions to render a rectangle or circle.Geoff said make everything in GL but I'm not sure what that means.
There's a FlatCircle function for circles in DrawUtil.h.Might have to find an example somewhere that draws dots.
Edit: It occurs to me that there should be a distinction made between how the GG::Splitter renders itself, and how the Splitter used in the FreeOrion GUI renders. The default GG behaviour should be very minimal, like most default GG Controls' rendering. There can then be a FreeOrion-specific class derived from Splitter which implements something fancier to be more consistent with the rest of the FreeOrion GUI.
I was thinking that the splitter bar could have some parallel bars, similar to the bars at the bottom right of resizable windows, to indicate its draggability.