Move specifics to caller
This commit is contained in:
parent
14cfc6c287
commit
67ebdf6729
2 changed files with 6 additions and 7 deletions
|
|
@ -46,12 +46,8 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
||||||
|
|
||||||
private ImageBuffer arrowDown;
|
private ImageBuffer arrowDown;
|
||||||
|
|
||||||
public ExpandCheckboxButton(string text)
|
public ExpandCheckboxButton(string text, int pointSize = 11)
|
||||||
{
|
{
|
||||||
this.HAnchor = HAnchor.Stretch;
|
|
||||||
this.VAnchor = VAnchor.Fit;
|
|
||||||
this.Padding = new BorderDouble(left: 2, bottom: 2, top: 6); // Same padding as toolbar above
|
|
||||||
|
|
||||||
arrowRight = AggContext.StaticData.LoadIcon("fa-angle-right_12.png", IconColor.Theme);
|
arrowRight = AggContext.StaticData.LoadIcon("fa-angle-right_12.png", IconColor.Theme);
|
||||||
arrowDown = AggContext.StaticData.LoadIcon("fa-angle-down_12.png", IconColor.Theme);
|
arrowDown = AggContext.StaticData.LoadIcon("fa-angle-down_12.png", IconColor.Theme);
|
||||||
|
|
||||||
|
|
@ -67,7 +63,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
||||||
HAnchor = HAnchor.Center
|
HAnchor = HAnchor.Center
|
||||||
});
|
});
|
||||||
this.AddChild(button);
|
this.AddChild(button);
|
||||||
this.AddChild(new TextWidget(text, pointSize: 11, textColor: ActiveTheme.Instance.PrimaryTextColor)
|
this.AddChild(new TextWidget(text, pointSize: pointSize, textColor: ActiveTheme.Instance.PrimaryTextColor)
|
||||||
{
|
{
|
||||||
VAnchor = VAnchor.Center
|
VAnchor = VAnchor.Center
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,11 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
||||||
};
|
};
|
||||||
allControls.AddChild(navBar);
|
allControls.AddChild(navBar);
|
||||||
|
|
||||||
var showFolders = new ExpandCheckboxButton("Folders")
|
var showFolders = new ExpandCheckboxButton("Folders".Localize())
|
||||||
{
|
{
|
||||||
|
HAnchor = HAnchor.Stretch,
|
||||||
|
VAnchor = VAnchor.Fit,
|
||||||
|
Padding = new BorderDouble(left: 2, bottom: 2, top: 6), // Same padding as toolbar above
|
||||||
Name = "Show Folders Toggle",
|
Name = "Show Folders Toggle",
|
||||||
Checked = UserSettings.Instance.get("ShowContainers") == "1",
|
Checked = UserSettings.Instance.get("ShowContainers") == "1",
|
||||||
BackgroundColor = ActiveTheme.Instance.TertiaryBackgroundColor
|
BackgroundColor = ActiveTheme.Instance.TertiaryBackgroundColor
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue