Use dedicated theme for menus, prefer theme colors over explicit refs

- Revise icon loader to take an Invert bool instead of custom enum
- Remove icon loader static ref to ActiveTheme.Instance
- Pass contextual theme.InvertIcons for theme specific invert behavior
This commit is contained in:
John Lewin 2018-04-12 08:42:10 -07:00
parent d3ef1d354e
commit 37a0b64b02
54 changed files with 231 additions and 241 deletions

View file

@ -77,7 +77,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
var boundsInParentSpace = widget.TransformToParentSpace(widget.Parent, bounds);
var intersects = boundsInParentSpace.IntersectRectangles(boundsInParentSpace, widget.Parent.LocalBounds);
if (!intersects
|| boundsInParentSpace.Width <= 0
|| boundsInParentSpace.Width <= 0
|| boundsInParentSpace.Height <= 0
|| !WidgetOnScreen(widget.Parent, boundsInParentSpace))
{