Use theme font definitions to track usage

This commit is contained in:
John Lewin 2017-10-22 19:53:48 -07:00
parent 6c21f79ef6
commit 3bfa2e3bd3
5 changed files with 16 additions and 11 deletions

View file

@ -100,7 +100,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
new SectionWidget(
"Details".Localize(),
ActiveTheme.Instance.PrimaryTextColor,
new GCodeDetailsView(new GCodeDetails(printer, printer.Bed.LoadedGCode), 12, 9)
new GCodeDetailsView(new GCodeDetails(printer, printer.Bed.LoadedGCode), theme.FontSize12, theme.FontSize9)
{
HAnchor = HAnchor.Fit,
Margin = new BorderDouble(bottom: 3)
@ -110,7 +110,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
new SectionWidget(
"Speeds".Localize(),
ActiveTheme.Instance.PrimaryTextColor,
new SpeedsLegend(sceneContext.LoadedGCode, theme, pointSize: 12)
new SpeedsLegend(sceneContext.LoadedGCode, theme, pointSize: theme.FontSize12)
{
HAnchor = HAnchor.Stretch,
Visible = sceneContext.RendererOptions.RenderSpeeds,