Open dkrautha opened 3 years ago
After starting to work on this it seems like a bit of a non issue considering that the setLineWidth exists as a function on styles, and we can just use that. The only problem is that it forces the styles created in the graph tests to be not constant, which means that they could be accidentally changed in the future.
After doing a bit more digging, it seems like the best solution would be to put a line width back into the constructor of Style, but make it a forced parameter. This will avoid the ambiguity that was resulting before from giving line width a default value in the constructor. It's probably best to make separate constructors including line with to prevent having to change every call to the style constructor ever.
Commit 06dbc2a reverted breaking changes I made to the constructor of Styles, but introduced problems in changing line widths in various graph widgets which relied on the aforementioned changes.