Made many parts of MC know how to scale if the font resolution (scaling) is changed.
This commit is contained in:
parent
f8f6a20dc4
commit
25bd699517
6 changed files with 70 additions and 70 deletions
|
|
@ -63,10 +63,10 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
|
||||
event EventHandler unregisterEvents;
|
||||
public TemperatureWidgetBase(string textValue)
|
||||
: base(52, 52)
|
||||
: base(52* TextWidget.GlobalPointSizeScaleRatio, 52* TextWidget.GlobalPointSizeScaleRatio)
|
||||
{
|
||||
|
||||
whiteButtonFactory.FixedHeight = 18;
|
||||
whiteButtonFactory.FixedHeight = 18* TextWidget.GlobalPointSizeScaleRatio;
|
||||
whiteButtonFactory.fontSize = 7;
|
||||
whiteButtonFactory.normalFillColor = RGBA_Bytes.White;
|
||||
whiteButtonFactory.normalTextColor = RGBA_Bytes.DarkGray;
|
||||
|
|
@ -75,11 +75,11 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
container.AnchorAll();
|
||||
|
||||
this.BackgroundColor = new RGBA_Bytes(255, 255, 255, 200);
|
||||
this.Margin = new BorderDouble(0, 2);
|
||||
this.Margin = new BorderDouble(0, 2)* TextWidget.GlobalPointSizeScaleRatio;
|
||||
|
||||
GuiWidget labelContainer = new GuiWidget();
|
||||
labelContainer.HAnchor = Agg.UI.HAnchor.ParentLeftRight;
|
||||
labelContainer.Height = 18;
|
||||
labelContainer.Height = 18* TextWidget.GlobalPointSizeScaleRatio;
|
||||
|
||||
labelTextWidget = new TextWidget("", pointSize:8);
|
||||
labelTextWidget.AutoExpandBoundsToText = true;
|
||||
|
|
@ -103,7 +103,7 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
|
||||
GuiWidget buttonContainer = new GuiWidget();
|
||||
buttonContainer.HAnchor = Agg.UI.HAnchor.ParentLeftRight;
|
||||
buttonContainer.Height = 18;
|
||||
buttonContainer.Height = 18* TextWidget.GlobalPointSizeScaleRatio;
|
||||
|
||||
preheatButton = whiteButtonFactory.Generate("PREHEAT");
|
||||
preheatButton.Cursor = Cursors.Hand;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue