Add theme and plot thickness options (#847)
* Add theme and plot thickness options * Cleanup * Fixed themes, and made it so the plot colors are updated when the theme is changed * I think supporting themes beyond dark, light, and black is unecessary for the time being. * recall theme from settings before instantiating plot * Check for null setting * committing to merge * Fix * Cleanup * Cleanup * Fix from comments. Thank you kamkie! * Fixing last UI bugs * Fix windowed plot not theming on relaunch, change theme, show plot
This commit is contained in:
@@ -59,7 +59,12 @@ namespace Aga.Controls.Tree.NodeControls
|
||||
int scaledX = node.Tree.GetScaledSize(ImageSize, false);
|
||||
int scaledY = node.Tree.GetScaledSize(ImageSize);
|
||||
int dy = (int)Math.Round((float)(r.Height - scaledY) / 2);
|
||||
if (Application.RenderWithVisualStyles)
|
||||
if (TreeViewAdv.CustomPlusMinusRenderFunc != null)
|
||||
{
|
||||
TreeViewAdv.CustomPlusMinusRenderFunc(context.Graphics, r, node.IsExpanded);
|
||||
return;
|
||||
}
|
||||
else if (Application.RenderWithVisualStyles)
|
||||
{
|
||||
VisualStyleRenderer renderer;
|
||||
if (node.IsExpanded)
|
||||
|
||||
Reference in New Issue
Block a user