Compute opaque theme colors, save before slice, revise icon styling

- Change slicing hash generation method/name
- Add ComputeFileSha1 to ApplicationController
- Issue MatterHackers/MCCentral#2307
Same color supplied for both tab and border
- Issue MatterHackers/MCCentral#2304
Have to Save file to make slicing go after change to scene
This commit is contained in:
John Lewin 2017-11-21 11:11:07 -08:00
parent 43aeca98b1
commit a3cbe6acbe
13 changed files with 86 additions and 101 deletions

View file

@ -44,8 +44,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
private EventHandler unregisterEvents;
private MainTab printerTab = null;
private NewTabButton plusTabSelect;
private ChromeTabs tabControl;
public PartPreviewContent()
@ -81,8 +79,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
};
tabControl.TabBar.BorderColor = theme.ActiveTabColor;
tabControl.TabBar.Padding = new BorderDouble(top: 4);
tabControl.TabBar.BorderColor = ApplicationController.Instance.Theme.SlightShade;
tabControl.TabBar.Border = new BorderDouble(bottom: 2);
Color selectedTabColor = ActiveTheme.Instance.TabLabelSelected;
@ -98,14 +96,14 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
else
{
this.CreatePartTab(
"New Part",
new BedConfig(
new EditContext()
{
ContentStore = ApplicationController.Instance.Library.PlatingHistory,
SourceItem = BedConfig.NewPlatingItem()
}),
theme);
"New Part",
new BedConfig(
new EditContext()
{
ContentStore = ApplicationController.Instance.Library.PlatingHistory,
SourceItem = BedConfig.NewPlatingItem()
}),
theme);
}
// add in the update available button
@ -178,6 +176,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
tabTitle,
tabControl,
new PrinterTabPage(printer, theme, tabTitle.ToUpper()),
theme,
"https://www.google.com/s2/favicons?domain=" + oemUrl ?? "www.matterhackers.com")
{
Name = "3D View Tab",
@ -191,6 +190,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
tabTitle,
tabControl,
new PartTabPage(null, sceneContext, theme, "xxxxx"),
theme,
"https://i.imgur.com/nkeYgfU.png")
{
Name = "newPart" + tabControl.AllTabs.Count(),