Revise icon sizing

- Issue MatterHackers/MCCentral#4182
Inconsistent icon sizing
This commit is contained in:
John Lewin 2018-09-24 12:05:45 -07:00
parent 54bf1c058f
commit ddb7dad41d
8 changed files with 8 additions and 8 deletions

View file

@ -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
});

View file

@ -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, ImageBuffer>()
{
[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;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 870 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 735 B

After

Width:  |  Height:  |  Size: 708 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 851 B

After

Width:  |  Height:  |  Size: 807 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 788 B

After

Width:  |  Height:  |  Size: 764 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 944 B

After

Width:  |  Height:  |  Size: 895 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 B

After

Width:  |  Height:  |  Size: 643 B

Before After
Before After