Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2022-04-19 12:17:38 +0300
committerJaime van Kessel <nallath@gmail.com>2022-04-19 12:17:38 +0300
commit05263b9a5869a28f3d7d90329e6c0cfe31ed2f03 (patch)
tree9dd6fed5bddd01a1801a1cc0da2328eee0e51e5a /plugins/Marketplace/resources
parent3ed182cd7449fe3b696012598fd53446096c04ce (diff)
Fix layout of dialog
CURA-9146
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r--plugins/Marketplace/resources/qml/CompatibilityDialog.qml18
-rw-r--r--plugins/Marketplace/resources/qml/MultipleLicenseDialog.qml9
2 files changed, 8 insertions, 19 deletions
diff --git a/plugins/Marketplace/resources/qml/CompatibilityDialog.qml b/plugins/Marketplace/resources/qml/CompatibilityDialog.qml
index 2e8595c811..e96737660b 100644
--- a/plugins/Marketplace/resources/qml/CompatibilityDialog.qml
+++ b/plugins/Marketplace/resources/qml/CompatibilityDialog.qml
@@ -5,7 +5,7 @@ import QtQuick 2.10
import QtQuick.Window 2.2
import QtQuick.Controls 2.3
-import UM 1.1 as UM
+import UM 1.5 as UM
import Cura 1.6 as Cura
@@ -47,12 +47,10 @@ UM.Dialog
anchors.margins: UM.Theme.getSize("default_margin").width
// Compatible packages
- Label
+ UM.Label
{
- font: UM.Theme.getFont("default")
text: catalog.i18nc("@label", "The following packages will be added:")
visible: subscribedPackagesModel.hasCompatiblePackages
- color: UM.Theme.getColor("text")
height: contentHeight + UM.Theme.getSize("default_margin").height
}
Repeater
@@ -77,14 +75,13 @@ UM.Dialog
mipmap: true
fillMode: Image.PreserveAspectFit
}
- Label
+ UM.Label
{
text: model.display_name
font: UM.Theme.getFont("medium_bold")
anchors.left: packageIcon.right
anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.verticalCenter: packageIcon.verticalCenter
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
@@ -92,12 +89,10 @@ UM.Dialog
}
// Incompatible packages
- Label
+ UM.Label
{
- font: UM.Theme.getFont("default")
text: catalog.i18nc("@label", "The following packages can not be installed because of an incompatible Cura version:")
visible: subscribedPackagesModel.hasIncompatiblePackages
- color: UM.Theme.getColor("text")
height: contentHeight + UM.Theme.getSize("default_margin").height
}
Repeater
@@ -122,14 +117,13 @@ UM.Dialog
mipmap: true
fillMode: Image.PreserveAspectFit
}
- Label
+ UM.Label
{
text: model.display_name
font: UM.Theme.getFont("medium_bold")
anchors.left: packageIcon.right
anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.verticalCenter: packageIcon.verticalCenter
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
@@ -147,8 +141,6 @@ UM.Dialog
anchors.margins: UM.Theme.getSize("default_margin").height
text: actionButtonText
onClicked: accept()
- leftPadding: UM.Theme.getSize("dialog_primary_button_padding").width
- rightPadding: UM.Theme.getSize("dialog_primary_button_padding").width
}
}
}
diff --git a/plugins/Marketplace/resources/qml/MultipleLicenseDialog.qml b/plugins/Marketplace/resources/qml/MultipleLicenseDialog.qml
index 9bee5a030e..2da92a6a5e 100644
--- a/plugins/Marketplace/resources/qml/MultipleLicenseDialog.qml
+++ b/plugins/Marketplace/resources/qml/MultipleLicenseDialog.qml
@@ -46,7 +46,7 @@ UM.Dialog
Image
{
id: icon
- width: 30 * screenScaleFactor
+ width: UM.Theme.getSize("card_icon").width
height: width
sourceSize.width: width
sourceSize.height: height
@@ -81,11 +81,8 @@ UM.Dialog
[
Cura.PrimaryButton
{
- leftPadding: UM.Theme.getSize("dialog_primary_button_padding").width
- rightPadding: UM.Theme.getSize("dialog_primary_button_padding").width
-
text: licenseModel.acceptButtonText
- onClicked: { handler.onLicenseAccepted() }
+ onClicked: handler.onLicenseAccepted()
}
]
@@ -95,7 +92,7 @@ UM.Dialog
{
id: declineButton
text: licenseModel.declineButtonText
- onClicked: { handler.onLicenseDeclined() }
+ onClicked: handler.onLicenseDeclined()
}
]
}