mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Use screenScaleFactor to consistently adapt sizes to display pixel ratio
This commit is contained in:
parent
5e0052dcb6
commit
c5fd0e6c80
21 changed files with 96 additions and 94 deletions
|
|
@ -91,7 +91,7 @@ UM.ManagementPage
|
|||
|
||||
Item
|
||||
{
|
||||
width: childrenRect.width + 2
|
||||
width: childrenRect.width + 2 * screenScaleFactor
|
||||
height: childrenRect.height
|
||||
Button
|
||||
{
|
||||
|
|
@ -112,8 +112,6 @@ UM.ManagementPage
|
|||
{
|
||||
id: actionDialog
|
||||
property var content
|
||||
minimumWidth: 350
|
||||
minimumHeight: 350
|
||||
onContentChanged:
|
||||
{
|
||||
contents = content;
|
||||
|
|
@ -257,8 +255,8 @@ UM.ManagementPage
|
|||
UM.RenameDialog
|
||||
{
|
||||
id: renameDialog;
|
||||
width: 300
|
||||
height: 150
|
||||
width: 300 * screenScaleFactor
|
||||
height: 150 * screenScaleFactor
|
||||
object: base.currentItem && base.currentItem.name ? base.currentItem.name : "";
|
||||
property var machine_name_validator: Cura.MachineNameValidator { }
|
||||
validName: renameDialog.newName.match(renameDialog.machine_name_validator.machineNameRegex) != null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue