Hi everyone, I'm in the process of adding dark mode to my App and have run into a wall with setting axis and label colours for the Line Graph widget. The default colour for these elements is black, which works on a light background, however that doesn't work when you have a black background. I've looked through the Dictionary and the forums and have drawn a blank so far. It appears the only colours I can set or query are the Graph Colors and the Hilited Coordinates Colours. :/
Anyone got any ideas or workarounds?
Thanks, Al.
Line Graph Widget - Axis and Label colours?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Line Graph Widget - Axis and Label colours?
Hi Al,j9v6 wrote: ↑Tue Jan 03, 2023 3:31 pmHi everyone, I'm in the process of adding dark mode to my App and have run into a wall with setting axis and label colours for the Line Graph widget. The default colour for these elements is black, which works on a light background, however that doesn't work when you have a black background.
You could try to put a graphic with a light gray (180,180,180) behind the Line Graph widget. Other than variations of this technique would involve changing the source code of the Line Graph widget which is a major undertaking.
Kind regards
Bernd
Re: Line Graph Widget - Axis and Label colours?
Hi Bernd,
Thanks for your suggestion. I was mulling that over this morning as a possible way forward and your screen-shots do make it look quite nice too. The alternative is as you said to try changing the widget source code which is not something I want to get in to right now as it looks like quite a task!!!! :O.
Cheers,
Al.
Thanks for your suggestion. I was mulling that over this morning as a possible way forward and your screen-shots do make it look quite nice too. The alternative is as you said to try changing the widget source code which is not something I want to get in to right now as it looks like quite a task!!!! :O.
Cheers,
Al.
