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:
Michael Rogers
2024-07-31 16:42:22 +02:00
committed by GitHub
parent 46746e7a86
commit 2e207a4523
18 changed files with 930 additions and 120 deletions
@@ -219,7 +219,7 @@ namespace Aga.Controls.Tree.NodeControls
private void CreateBrushes(TreeNodeAdv node, DrawContext context, string text, out Brush backgroundBrush, out Color textColor, out Font font, ref string label)
{
textColor = SystemColors.ControlText;
textColor = Parent.ForeColor;
backgroundBrush = null;
font = context.Font;
if (context.DrawSelection == DrawSelectionMode.Active)
@@ -229,11 +229,11 @@ namespace Aga.Controls.Tree.NodeControls
}
else if (context.DrawSelection == DrawSelectionMode.Inactive)
{
textColor = SystemColors.ControlText;
textColor = Parent.ForeColor;
backgroundBrush = SystemBrushes.InactiveBorder;
}
else if (context.DrawSelection == DrawSelectionMode.FullRowSelect)
textColor = SystemColors.ControlText;
textColor = Parent.ForeColor;
if (!context.Enabled)
textColor = SystemColors.GrayText;