Use theme colors on terminal widget scrollbars, adjust spacings

This commit is contained in:
John Lewin 2018-10-21 20:15:45 -07:00
parent 1abaea4632
commit f0cc4afc0c
2 changed files with 16 additions and 5 deletions

View file

@ -95,8 +95,12 @@ namespace MatterHackers.MatterControl
headerRow.AddChild(autoUppercase);
// Body
var bodyRow = new FlowLayoutWidget();
bodyRow.AnchorAll();
var bodyRow = new FlowLayoutWidget()
{
Margin = new BorderDouble(bottom: 4),
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Stretch
};
this.AddChild(bodyRow);
textScrollWidget = new TextScrollWidget(printer, printer.Connection.TerminalLog.PrinterLines)
@ -109,7 +113,12 @@ namespace MatterHackers.MatterControl
Padding = new BorderDouble(3, 0)
};
bodyRow.AddChild(textScrollWidget);
bodyRow.AddChild(new TextScrollBar(textScrollWidget, 15));
bodyRow.AddChild(new TextScrollBar(textScrollWidget, 15)
{
ThumbColor = theme.AccentMimimalOverlay,
BackgroundColor = theme.SlightShade,
Margin = 0
});
// Input Row
var inputRow = new FlowLayoutWidget(FlowDirection.LeftToRight)
@ -176,7 +185,7 @@ namespace MatterHackers.MatterControl
this.AddChild(footerRow);
var sendButton = theme.CreateDialogButton("Send".Localize());
sendButton.Margin = 0;
sendButton.Margin = theme.ButtonSpacing;
sendButton.Click += (s, e) =>
{
SendManualCommand();