diff --git a/MatterControlLib/PartPreviewWindow/View3D/GridOptionsPanel.cs b/MatterControlLib/PartPreviewWindow/View3D/GridOptionsPanel.cs index 074a00b09..72a8a6adf 100644 --- a/MatterControlLib/PartPreviewWindow/View3D/GridOptionsPanel.cs +++ b/MatterControlLib/PartPreviewWindow/View3D/GridOptionsPanel.cs @@ -45,7 +45,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow this.interactionLayer = interactionLayer; this.PopupContent = () => ShowGridOptions(theme); - this.AddChild(new IconButton(AggContext.StaticData.LoadIcon("1694146.png", theme.InvertIcons), theme) + this.AddChild(new IconButton(AggContext.StaticData.LoadIcon("1694146.png", 16, 16, theme.InvertIcons), theme) { Selectable = false }); diff --git a/MatterControlLib/PartPreviewWindow/ViewStyleButton.cs b/MatterControlLib/PartPreviewWindow/ViewStyleButton.cs index 754d22b88..9dd944bf2 100644 --- a/MatterControlLib/PartPreviewWindow/ViewStyleButton.cs +++ b/MatterControlLib/PartPreviewWindow/ViewStyleButton.cs @@ -51,22 +51,22 @@ namespace MatterHackers.MatterControl.PartPreviewWindow { this.sceneContext = sceneContext; this.PopupContent = () => ShowViewOptions(sceneContext, theme); + this.HAnchor = HAnchor.Fit; + this.VAnchor = VAnchor.Fit; viewIcons = new Dictionary() { - [RenderTypes.Shaded] = AggContext.StaticData.LoadIcon("view_shaded.png", theme.InvertIcons), - [RenderTypes.Outlines] = AggContext.StaticData.LoadIcon("view_outlines.png", theme.InvertIcons), - [RenderTypes.Polygons] = AggContext.StaticData.LoadIcon("view_polygons.png", theme.InvertIcons), - [RenderTypes.Materials] = AggContext.StaticData.LoadIcon("view_materials.png", theme.InvertIcons), - [RenderTypes.Overhang] = AggContext.StaticData.LoadIcon("view_overhang.png", theme.InvertIcons), + [RenderTypes.Shaded] = AggContext.StaticData.LoadIcon("view_shaded.png", 16, 16, theme.InvertIcons), + [RenderTypes.Outlines] = AggContext.StaticData.LoadIcon("view_outlines.png", 16, 16, theme.InvertIcons), + [RenderTypes.Polygons] = AggContext.StaticData.LoadIcon("view_polygons.png", 16, 16, theme.InvertIcons), + [RenderTypes.Materials] = AggContext.StaticData.LoadIcon("view_materials.png", 16, 16, theme.InvertIcons), + [RenderTypes.Overhang] = AggContext.StaticData.LoadIcon("view_overhang.png", 16, 16, theme.InvertIcons), }; this.AddChild(iconButton = new IconButton(viewIcons[sceneContext.ViewState.RenderType], theme) { Selectable = false }); - this.HAnchor = HAnchor.Fit; - this.VAnchor = VAnchor.Fit; UserSettings.Instance.SettingChanged += UserSettings_SettingChanged; } diff --git a/StaticData/Icons/1694146.png b/StaticData/Icons/1694146.png index 60f8cf5f0..c8fe99e21 100644 Binary files a/StaticData/Icons/1694146.png and b/StaticData/Icons/1694146.png differ diff --git a/StaticData/Icons/view_materials.png b/StaticData/Icons/view_materials.png index 2cd74d871..b1634a8b4 100644 Binary files a/StaticData/Icons/view_materials.png and b/StaticData/Icons/view_materials.png differ diff --git a/StaticData/Icons/view_outlines.png b/StaticData/Icons/view_outlines.png index d799246a9..33e339566 100644 Binary files a/StaticData/Icons/view_outlines.png and b/StaticData/Icons/view_outlines.png differ diff --git a/StaticData/Icons/view_overhang.png b/StaticData/Icons/view_overhang.png index 353dfaef4..13eaaf130 100644 Binary files a/StaticData/Icons/view_overhang.png and b/StaticData/Icons/view_overhang.png differ diff --git a/StaticData/Icons/view_polygons.png b/StaticData/Icons/view_polygons.png index 3a13d48f3..2705b8699 100644 Binary files a/StaticData/Icons/view_polygons.png and b/StaticData/Icons/view_polygons.png differ diff --git a/StaticData/Icons/view_shaded.png b/StaticData/Icons/view_shaded.png index 955485b04..002efac19 100644 Binary files a/StaticData/Icons/view_shaded.png and b/StaticData/Icons/view_shaded.png differ