Made fixed width and height in button factory doubles.
This commit is contained in:
parent
9bbd272467
commit
c9ffc3eb98
6 changed files with 11 additions and 8 deletions
|
|
@ -150,8 +150,8 @@ namespace MatterHackers.MatterControl
|
|||
public bool invertImageLocation = false;
|
||||
public bool AllowThemeToAdjustImage = true;
|
||||
FlowDirection flowDirection;
|
||||
public int FixedWidth = 0;
|
||||
public int FixedHeight = 40;
|
||||
public double FixedWidth = 0;
|
||||
public double FixedHeight = 40;
|
||||
|
||||
public TooltipButton GenerateTooltipButton(string label, string normalImageName = null, string hoverImageName = null, string pressedImageName = null, string disabledImageName = null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
private void AddModelInfo(FlowLayoutWidget buttonPanel)
|
||||
{
|
||||
int oldWidth = textImageButtonFactory.FixedWidth;
|
||||
double oldWidth = textImageButtonFactory.FixedWidth;
|
||||
textImageButtonFactory.FixedWidth = 44;
|
||||
|
||||
FlowLayoutWidget modelInfoContainer = new FlowLayoutWidget(FlowDirection.TopToBottom);
|
||||
|
|
@ -445,7 +445,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
private void AddLayerInfo(FlowLayoutWidget buttonPanel)
|
||||
{
|
||||
int oldWidth = textImageButtonFactory.FixedWidth;
|
||||
double oldWidth = textImageButtonFactory.FixedWidth;
|
||||
textImageButtonFactory.FixedWidth = 44;
|
||||
|
||||
FlowLayoutWidget layerInfoContainer = new FlowLayoutWidget(FlowDirection.TopToBottom);
|
||||
|
|
@ -469,7 +469,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
private void AddDisplayControls(FlowLayoutWidget buttonPanel)
|
||||
{
|
||||
int oldWidth = textImageButtonFactory.FixedWidth;
|
||||
double oldWidth = textImageButtonFactory.FixedWidth;
|
||||
textImageButtonFactory.FixedWidth = 44;
|
||||
|
||||
FlowLayoutWidget layerInfoContainer = new FlowLayoutWidget(FlowDirection.TopToBottom);
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;
|
||||
|
||||
int oldHeight = textImageButtonFactory.FixedHeight;
|
||||
double oldHeight = textImageButtonFactory.FixedHeight;
|
||||
textImageButtonFactory.FixedHeight = 30;
|
||||
|
||||
// put in the movement edit controls
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ namespace MatterHackers.MatterControl
|
|||
this.functionToCallOnSave = functionToCallOnSave;
|
||||
BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;
|
||||
|
||||
int oldHeight = textImageButtonFactory.FixedHeight;
|
||||
double oldHeight = textImageButtonFactory.FixedHeight;
|
||||
textImageButtonFactory.FixedHeight = 30;
|
||||
|
||||
TextWidget tempTypeLabel = new TextWidget(windowTitle, textColor: ActiveTheme.Instance.PrimaryTextColor, pointSize: 10);
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ namespace MatterHackers.MatterControl
|
|||
this.functionToCallOnSave = functionToCallOnSave;
|
||||
BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;
|
||||
|
||||
int oldHeight = textImageButtonFactory.FixedHeight;
|
||||
double oldHeight = textImageButtonFactory.FixedHeight;
|
||||
textImageButtonFactory.FixedHeight = 30;
|
||||
|
||||
TextWidget tempTypeLabel = new TextWidget(windowTitle, textColor: ActiveTheme.Instance.PrimaryTextColor, pointSize: 10);
|
||||
|
|
|
|||
|
|
@ -2564,3 +2564,6 @@ Translated:Z Can Be Negative
|
|||
English:Export as X3G
|
||||
Translated:Export as X3G
|
||||
|
||||
English:Select an Image
|
||||
Translated:Select an Image
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue