mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
parent
650377c819
commit
c6f42766c7
6 changed files with 11 additions and 10 deletions
|
@ -13,8 +13,8 @@ UM.Dialog
|
||||||
id: base
|
id: base
|
||||||
title: catalog.i18nc("@title:window", "Open Project")
|
title: catalog.i18nc("@title:window", "Open Project")
|
||||||
|
|
||||||
minimumWidth: 500 * screenScaleFactor
|
minimumWidth: UM.Theme.getSize("popup_dialog").width
|
||||||
minimumHeight: 450 * screenScaleFactor
|
minimumHeight: UM.Theme.getSize("popup_dialog").height
|
||||||
width: minimumWidth
|
width: minimumWidth
|
||||||
height: minimumHeight
|
height: minimumHeight
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@ Window
|
||||||
modality: Qt.ApplicationModal
|
modality: Qt.ApplicationModal
|
||||||
flags: Qt.Dialog | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
|
flags: Qt.Dialog | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
|
||||||
|
|
||||||
width: Math.floor(720 * screenScaleFactor)
|
width: UM.Theme.getSize("large_popup_dialog").width
|
||||||
height: Math.floor(640 * screenScaleFactor)
|
height: UM.Theme.getSize("large_popup_dialog").height
|
||||||
minimumWidth: width
|
minimumWidth: width
|
||||||
maximumWidth: minimumWidth
|
maximumWidth: minimumWidth
|
||||||
minimumHeight: height
|
minimumHeight: height
|
||||||
|
|
|
@ -18,8 +18,8 @@ UM.Dialog
|
||||||
id: base
|
id: base
|
||||||
|
|
||||||
title: catalog.i18nc("@title:window", "Open project file")
|
title: catalog.i18nc("@title:window", "Open project file")
|
||||||
width: 450 * screenScaleFactor
|
width: UM.Theme.getSize("small_popup_dialog").width
|
||||||
height: 150 * screenScaleFactor
|
height: UM.Theme.getSize("small_popup_dialog").height
|
||||||
|
|
||||||
maximumHeight: height
|
maximumHeight: height
|
||||||
maximumWidth: width
|
maximumWidth: width
|
||||||
|
|
|
@ -14,8 +14,8 @@ UM.Dialog
|
||||||
id: base
|
id: base
|
||||||
title: catalog.i18nc("@title:window", "Discard or Keep changes")
|
title: catalog.i18nc("@title:window", "Discard or Keep changes")
|
||||||
|
|
||||||
width: 800 * screenScaleFactor
|
width: UM.Theme.getSize("popup_dialog").width
|
||||||
height: 400 * screenScaleFactor
|
height: UM.Theme.getSize("popup_dialog").height
|
||||||
property var changesModel: Cura.UserChangesModel{ id: userChangesModel}
|
property var changesModel: Cura.UserChangesModel{ id: userChangesModel}
|
||||||
onVisibilityChanged:
|
onVisibilityChanged:
|
||||||
{
|
{
|
||||||
|
|
|
@ -148,8 +148,6 @@ UM.ManagementPage
|
||||||
UM.RenameDialog
|
UM.RenameDialog
|
||||||
{
|
{
|
||||||
id: renameDialog;
|
id: renameDialog;
|
||||||
width: 300 * screenScaleFactor
|
|
||||||
height: 150 * screenScaleFactor
|
|
||||||
object: base.currentItem && base.currentItem.name ? base.currentItem.name : "";
|
object: base.currentItem && base.currentItem.name ? base.currentItem.name : "";
|
||||||
property var machine_name_validator: Cura.MachineNameValidator { }
|
property var machine_name_validator: Cura.MachineNameValidator { }
|
||||||
validName: renameDialog.newName.match(renameDialog.machine_name_validator.machineNameRegex) != null;
|
validName: renameDialog.newName.match(renameDialog.machine_name_validator.machineNameRegex) != null;
|
||||||
|
|
|
@ -441,6 +441,9 @@
|
||||||
|
|
||||||
"sizes": {
|
"sizes": {
|
||||||
"window_minimum_size": [80, 48],
|
"window_minimum_size": [80, 48],
|
||||||
|
"large_popup_dialog": [48, 40],
|
||||||
|
"popup_dialog": [40, 36],
|
||||||
|
"small_popup_dialog": [36, 12],
|
||||||
|
|
||||||
"main_window_header": [0.0, 4.0],
|
"main_window_header": [0.0, 4.0],
|
||||||
"main_window_header_button": [8, 2.35],
|
"main_window_header_button": [8, 2.35],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue