Adding icons, improving rendering

This commit is contained in:
LarsBrubaker 2021-05-16 09:44:14 -07:00
parent 1fdba214b5
commit aba50688cd
9 changed files with 49 additions and 36 deletions

View file

@ -41,7 +41,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
public class ViewStyleButton : DropButton
{
private IconButton iconButton;
private TextIconButton iconButton;
private ISceneContext sceneContext;
private Dictionary<RenderTypes, ImageBuffer> viewIcons;
@ -64,7 +64,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
[RenderTypes.Overhang] = StaticData.Instance.LoadIcon("view_overhang.png", 16, 16, theme.InvertIcons),
};
this.AddChild(iconButton = new IconButton(viewIcons[sceneContext.ViewState.RenderType], theme)
this.AddChild(iconButton = new TextIconButton("View".Localize(), viewIcons[sceneContext.ViewState.RenderType], theme)
{
Selectable = false
});