Moved TextWidget.GlobalPointSizeScaleRatio -> GuiWidget.DeviceScale
Significantly improved the layout consistency when enlarging the device scale. Created a DeviceMargin and DevicePadding on GuiWidget Deleted dead code Made many images have default larger disk sizes and scale in memory. Made the menus have horizontal spacers rather than dashed lines
This commit is contained in:
parent
a225e69513
commit
b51b38b249
62 changed files with 223 additions and 184 deletions
|
|
@ -42,7 +42,7 @@ namespace MatterHackers.MatterControl.PrinterControls
|
|||
|
||||
protected TextImageButtonFactory textImageButtonFactory = new TextImageButtonFactory();
|
||||
|
||||
private readonly double TallButtonHeight = 25 * TextWidget.GlobalPointSizeScaleRatio;
|
||||
private readonly double TallButtonHeight = 25 * GuiWidget.DeviceScale;
|
||||
|
||||
public ControlWidgetBase()
|
||||
: base()
|
||||
|
|
@ -63,8 +63,8 @@ namespace MatterHackers.MatterControl.PrinterControls
|
|||
|
||||
protected static GuiWidget CreateSeparatorLine()
|
||||
{
|
||||
GuiWidget topLine = new GuiWidget(10 * TextWidget.GlobalPointSizeScaleRatio, 1 * TextWidget.GlobalPointSizeScaleRatio);
|
||||
topLine.Margin = new BorderDouble(0, 5) * TextWidget.GlobalPointSizeScaleRatio;
|
||||
GuiWidget topLine = new GuiWidget(10 * GuiWidget.DeviceScale, 1 * GuiWidget.DeviceScale);
|
||||
topLine.Margin = new BorderDouble(0, 5);
|
||||
topLine.HAnchor = Agg.UI.HAnchor.ParentLeftRight;
|
||||
topLine.BackgroundColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
return topLine;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue