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:
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r--plugins/Marketplace/resources/qml/LicenseDialog.qml5
-rw-r--r--plugins/Marketplace/resources/qml/Marketplace.qml5
-rw-r--r--plugins/Marketplace/resources/qml/PackageCard.qml5
-rw-r--r--plugins/Marketplace/resources/qml/PackageCardHeader.qml12
-rw-r--r--plugins/Marketplace/resources/qml/PackageDetails.qml3
-rw-r--r--plugins/Marketplace/resources/qml/PackagePage.qml43
-rw-r--r--plugins/Marketplace/resources/qml/PackageTypeTab.qml5
-rw-r--r--plugins/Marketplace/resources/qml/Packages.qml3
8 files changed, 24 insertions, 57 deletions
diff --git a/plugins/Marketplace/resources/qml/LicenseDialog.qml b/plugins/Marketplace/resources/qml/LicenseDialog.qml
index 2f3f4ffc12..4517771da3 100644
--- a/plugins/Marketplace/resources/qml/LicenseDialog.qml
+++ b/plugins/Marketplace/resources/qml/LicenseDialog.qml
@@ -42,16 +42,13 @@ UM.Dialog
source: UM.Theme.getIcon("Certificate", "high")
}
- Label
+ UM.Label
{
text: catalog.i18nc("@text", "Please read and agree with the plugin licence.")
- color: UM.Theme.getColor("text")
font: UM.Theme.getFont("large")
anchors.verticalCenter: icon.verticalCenter
height: UM.Theme.getSize("marketplace_large_icon").height
verticalAlignment: Qt.AlignmentFlag.AlignVCenter
- wrapMode: Text.Wrap
- renderType: Text.NativeRendering
}
}
diff --git a/plugins/Marketplace/resources/qml/Marketplace.qml b/plugins/Marketplace/resources/qml/Marketplace.qml
index 887886fd22..d925f265d9 100644
--- a/plugins/Marketplace/resources/qml/Marketplace.qml
+++ b/plugins/Marketplace/resources/qml/Marketplace.qml
@@ -6,7 +6,7 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Window 2.2
-import UM 1.2 as UM
+import UM 1.5 as UM
import Cura 1.6 as Cura
Window
@@ -67,7 +67,7 @@ Window
Layout.preferredWidth: parent.width
Layout.preferredHeight: childrenRect.height + UM.Theme.getSize("default_margin").height
- Label
+ UM.Label
{
id: pageTitle
anchors
@@ -80,7 +80,6 @@ Window
}
font: UM.Theme.getFont("large")
- color: UM.Theme.getColor("text")
text: content.item ? content.item.pageTitle: catalog.i18nc("@title", "Loading...")
}
}
diff --git a/plugins/Marketplace/resources/qml/PackageCard.qml b/plugins/Marketplace/resources/qml/PackageCard.qml
index 7442c63aa6..52254a478f 100644
--- a/plugins/Marketplace/resources/qml/PackageCard.qml
+++ b/plugins/Marketplace/resources/qml/PackageCard.qml
@@ -29,16 +29,13 @@ Rectangle
anchors.fill: parent
- Label
+ UM.Label
{
id: descriptionLabel
width: parent.width
text: packageData.description
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
maximumLineCount: 2
- wrapMode: Text.Wrap
elide: Text.ElideRight
visible: text !== ""
}
diff --git a/plugins/Marketplace/resources/qml/PackageCardHeader.qml b/plugins/Marketplace/resources/qml/PackageCardHeader.qml
index 9d401c5253..2bbf76f9d0 100644
--- a/plugins/Marketplace/resources/qml/PackageCardHeader.qml
+++ b/plugins/Marketplace/resources/qml/PackageCardHeader.qml
@@ -87,11 +87,10 @@ Item
Layout.preferredWidth: parent.width
Layout.preferredHeight: childrenRect.height
- Label
+ UM.Label
{
text: packageData.displayName
font: UM.Theme.getFont("medium_bold")
- color: UM.Theme.getColor("text")
verticalAlignment: Text.AlignTop
}
VerifiedIcon
@@ -100,12 +99,10 @@ Item
visible: packageData.isCheckedByUltimaker
}
- Label
+ UM.Label
{
id: packageVersionLabel
text: packageData.packageVersion
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
Layout.fillWidth: true
}
@@ -155,14 +152,11 @@ Item
spacing: UM.Theme.getSize("narrow_margin").width
// label "By"
- Label
+ UM.Label
{
id: authorBy
Layout.alignment: Qt.AlignCenter
-
text: catalog.i18nc("@label", "By")
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
}
// clickable author name
diff --git a/plugins/Marketplace/resources/qml/PackageDetails.qml b/plugins/Marketplace/resources/qml/PackageDetails.qml
index 218669d81e..2bc92da8de 100644
--- a/plugins/Marketplace/resources/qml/PackageDetails.qml
+++ b/plugins/Marketplace/resources/qml/PackageDetails.qml
@@ -45,14 +45,13 @@ Item
iconSize: height - leftPadding * 2
}
- Label
+ UM.Label
{
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
Layout.fillWidth: true
text: detailPage.title
font: UM.Theme.getFont("large")
- color: UM.Theme.getColor("text")
}
}
diff --git a/plugins/Marketplace/resources/qml/PackagePage.qml b/plugins/Marketplace/resources/qml/PackagePage.qml
index 455b2b8d5d..a8ddf2348c 100644
--- a/plugins/Marketplace/resources/qml/PackagePage.qml
+++ b/plugins/Marketplace/resources/qml/PackagePage.qml
@@ -56,13 +56,9 @@ Rectangle
color: UM.Theme.getColor("text")
}
- Label
+ UM.Label
{
-
anchors.verticalCenter: downloadsIcon.verticalCenter
-
- color: UM.Theme.getColor("text")
- font: UM.Theme.getFont("default")
text: packageData.downloadCount
}
}
@@ -78,25 +74,22 @@ Rectangle
topPadding: 0
spacing: UM.Theme.getSize("default_margin").height
- Label
+ UM.Label
{
width: parent.width - parent.padding * 2
text: catalog.i18nc("@header", "Description")
font: UM.Theme.getFont("medium_bold")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
- Label
+ UM.Label
{
width: parent.width - parent.padding * 2
text: packageData.formattedDescription
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
linkColor: UM.Theme.getColor("text_link")
- wrapMode: Text.Wrap
textFormat: Text.RichText
onLinkActivated: UM.UrlUtil.openUrl(link, ["http", "https"])
@@ -110,13 +103,12 @@ Rectangle
visible: packageData.packageType === "material"
spacing: 0
- Label
+ UM.Label
{
width: parent.width
text: catalog.i18nc("@header", "Compatible printers")
font: UM.Theme.getFont("medium_bold")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
@@ -124,25 +116,23 @@ Rectangle
{
model: packageData.compatiblePrinters
- Label
+ UM.Label
{
width: compatiblePrinterColumn.width
text: modelData
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
- Label
+ UM.Label
{
width: parent.width
visible: packageData.compatiblePrinters.length == 0
text: "(" + catalog.i18nc("@info", "No compatibility information") + ")"
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
@@ -155,13 +145,12 @@ Rectangle
visible: packageData.packageType === "material"
spacing: 0
- Label
+ UM.Label
{
width: parent.width
text: catalog.i18nc("@header", "Compatible support materials")
font: UM.Theme.getFont("medium_bold")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
@@ -169,25 +158,23 @@ Rectangle
{
model: packageData.compatibleSupportMaterials
- Label
+ UM.Label
{
width: compatibleSupportMaterialColumn.width
text: modelData
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
- Label
+ UM.Label
{
width: parent.width
visible: packageData.compatibleSupportMaterials.length == 0
text: "(" + catalog.i18nc("@info No materials", "None") + ")"
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
@@ -199,23 +186,21 @@ Rectangle
visible: packageData.packageType === "material"
spacing: 0
- Label
+ UM.Label
{
width: parent.width
text: catalog.i18nc("@header", "Compatible with Material Station")
font: UM.Theme.getFont("medium_bold")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
- Label
+ UM.Label
{
width: parent.width
text: packageData.isCompatibleMaterialStation ? catalog.i18nc("@info", "Yes") : catalog.i18nc("@info", "No")
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
@@ -227,23 +212,21 @@ Rectangle
visible: packageData.packageType === "material"
spacing: 0
- Label
+ UM.Label
{
width: parent.width
text: catalog.i18nc("@header", "Optimized for Air Manager")
font: UM.Theme.getFont("medium_bold")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
- Label
+ UM.Label
{
width: parent.width
text: packageData.isCompatibleAirManager ? catalog.i18nc("@info", "Yes") : catalog.i18nc("@info", "No")
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
diff --git a/plugins/Marketplace/resources/qml/PackageTypeTab.qml b/plugins/Marketplace/resources/qml/PackageTypeTab.qml
index 79eaa9a16c..09dd7f56c3 100644
--- a/plugins/Marketplace/resources/qml/PackageTypeTab.qml
+++ b/plugins/Marketplace/resources/qml/PackageTypeTab.qml
@@ -3,7 +3,7 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
-import UM 1.0 as UM
+import UM 1.5 as UM
TabButton
{
@@ -22,11 +22,10 @@ TabButton
border.width: UM.Theme.getSize("thick_lining").width
}
- contentItem: Label
+ contentItem: UM.Label
{
text: parent.text
font: UM.Theme.getFont("medium_bold")
- color: UM.Theme.getColor("text")
width: contentWidth
anchors.centerIn: parent
}
diff --git a/plugins/Marketplace/resources/qml/Packages.qml b/plugins/Marketplace/resources/qml/Packages.qml
index 74a18bccd3..70ff7de195 100644
--- a/plugins/Marketplace/resources/qml/Packages.qml
+++ b/plugins/Marketplace/resources/qml/Packages.qml
@@ -40,7 +40,7 @@ ListView
color: UM.Theme.getColor("detail_background")
- Label
+ UM.Label
{
id: sectionHeaderText
anchors.verticalCenter: parent.verticalCenter
@@ -48,7 +48,6 @@ ListView
text: section
font: UM.Theme.getFont("large")
- color: UM.Theme.getColor("text")
}
}