Add Library tab, replace PrintLibrary widget with Favorites bar

This commit is contained in:
John Lewin 2018-10-07 11:36:52 -07:00
parent 7159d78592
commit b67d3ad691
52 changed files with 2467 additions and 389 deletions

View file

@ -34,6 +34,7 @@ using MatterHackers.Agg;
using MatterHackers.Agg.Platform;
using MatterHackers.Agg.UI;
using MatterHackers.Localizations;
using MatterHackers.MatterControl.CustomWidgets;
using MatterHackers.MatterControl.SettingsManagement;
using MatterHackers.MatterControl.SlicerConfiguration;
@ -98,6 +99,25 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
contentRow.AddChild(printerModelContainer);
contentRow.AddChild(createPrinterNameContainer());
if (ApplicationController.GuestUserActive())
{
var signInRow = new FlowLayoutWidget()
{
HAnchor = HAnchor.Stretch,
};
signInRow.AddChild(new TextWidget("Sign in to access your existing printers", pointSize: theme.DefaultFontSize, textColor: theme.Colors.PrimaryTextColor));
signInRow.AddChild(new HorizontalSpacer());
var signInLink = new LinkLabel("Sign In", theme, pointSize: theme.DefaultFontSize);
signInLink.Click += (s, e) => UiThread.RunOnIdle(() =>
{
this.DialogWindow.ChangeToPage(ApplicationController.GetAuthPage());
});
signInRow.AddChild(signInLink);
contentRow.AddChild(signInRow);
}
//Construct buttons
nextButton = theme.CreateDialogButton("Next".Localize());
nextButton.Name = "Save & Continue Button";