Compute and use custom color for Add Content panel background

- Issue MatterHackers/MCCentral#5357
Library pop up starting with wrong colors
This commit is contained in:
jlewin 2019-04-18 16:41:45 -07:00
parent add34dbfd8
commit c3ad880c94

View file

@ -599,7 +599,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
var systemWindow = this.Parents<SystemWindow>().FirstOrDefault();
var printLibraryWidget = new PrintLibraryWidget(mainViewWidget, workspace, theme, libraryPopup)
// Compute slight highlight of openColor for use as listView background color
var slightHighlight = theme.ResolveColor(openColor, Color.White.WithAlpha(theme.IsDarkTheme ? 10 : 50));
var printLibraryWidget = new PrintLibraryWidget(mainViewWidget, workspace, theme, slightHighlight, libraryPopup)
{
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Absolute,