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
|
|
@ -226,8 +226,8 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public static Button GetThemedEditButton()
|
||||
{
|
||||
ImageBuffer normalImage = StaticData.Instance.LoadIcon("icon_edit_white_32x32.png");
|
||||
int iconSize = (int)(16 * TextWidget.GlobalPointSizeScaleRatio);
|
||||
ImageBuffer normalImage = StaticData.Instance.LoadIcon("icon_edit_32x32.png");
|
||||
int iconSize = (int)(16 * GuiWidget.DeviceScale);
|
||||
normalImage = ImageBuffer.CreateScaledImage(normalImage, iconSize, iconSize);
|
||||
|
||||
Button editButton;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue