Add proportional spacing to store tab
always show store tab make notification button on upgrade have better spacing
This commit is contained in:
parent
4e4c09b9c0
commit
d96c388257
3 changed files with 17 additions and 14 deletions
|
|
@ -203,7 +203,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.PlusTab
|
|||
case "product_group":
|
||||
if(currentContentContainer == null)
|
||||
{
|
||||
currentContentContainer = new FlowLeftRightWithWrapping();
|
||||
currentContentContainer = new FlowLeftRightWithWrapping()
|
||||
{
|
||||
Proportional = true,
|
||||
};
|
||||
|
||||
container.Add(currentContentContainer);
|
||||
}
|
||||
currentContentContainer.AddChild(new ExploreSection(content, theme));
|
||||
|
|
|
|||
|
|
@ -283,23 +283,22 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
tab.AfterDraw += (s, e) =>
|
||||
{
|
||||
e.Graphics2D.Circle(tab.LocalBounds.Right - 25 * DeviceScale,
|
||||
var textWidget = tab.Descendants<TextWidget>().FirstOrDefault();
|
||||
e.Graphics2D.Circle(Math.Max(textWidget.Width, tab.LocalBounds.Right - 25 * DeviceScale),
|
||||
tab.LocalBounds.Bottom + tab.Height / 2 - 1 * DeviceScale,
|
||||
5 * DeviceScale,
|
||||
theme.PrimaryAccentColor);
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
// Store tab
|
||||
tabControl.AddTab(
|
||||
tab = new ChromeTab("Store", "Store".Localize(), tabControl, new StoreTabPage(theme), theme, hasClose: false)
|
||||
{
|
||||
MinimumSize = new Vector2(0, theme.TabButtonHeight),
|
||||
Name = "Store Tab",
|
||||
Padding = new BorderDouble(15, 0),
|
||||
});
|
||||
}
|
||||
|
||||
// Store tab
|
||||
tabControl.AddTab(
|
||||
tab = new ChromeTab("Store", "Store".Localize(), tabControl, new StoreTabPage(theme), theme, hasClose: false)
|
||||
{
|
||||
MinimumSize = new Vector2(0, theme.TabButtonHeight),
|
||||
Name = "Store Tab",
|
||||
Padding = new BorderDouble(15, 0),
|
||||
});
|
||||
|
||||
EnableReduceWidth(tab, theme);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue