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 'resources/qml/WelcomePages')
-rw-r--r--resources/qml/WelcomePages/AddCloudPrintersView.qml28
-rw-r--r--resources/qml/WelcomePages/AddLocalPrinterScrollView.qml13
-rw-r--r--resources/qml/WelcomePages/AddNetworkOrLocalPrinterContent.qml5
-rw-r--r--resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml4
-rw-r--r--resources/qml/WelcomePages/AddPrinterByIpContent.qml67
-rw-r--r--resources/qml/WelcomePages/CloudContent.qml23
-rw-r--r--resources/qml/WelcomePages/DataCollectionsContent.qml13
-rw-r--r--resources/qml/WelcomePages/DropDownHeader.qml2
-rw-r--r--resources/qml/WelcomePages/FirstStartMachineActionsContent.qml5
-rw-r--r--resources/qml/WelcomePages/ImageTile.qml7
-rw-r--r--resources/qml/WelcomePages/WelcomeContent.qml10
-rw-r--r--resources/qml/WelcomePages/WelcomeDialogItem.qml6
-rw-r--r--resources/qml/WelcomePages/WhatsNewContent.qml15
13 files changed, 57 insertions, 141 deletions
diff --git a/resources/qml/WelcomePages/AddCloudPrintersView.qml b/resources/qml/WelcomePages/AddCloudPrintersView.qml
index 0b94d21fae..3f2d3dbab2 100644
--- a/resources/qml/WelcomePages/AddCloudPrintersView.qml
+++ b/resources/qml/WelcomePages/AddCloudPrintersView.qml
@@ -38,7 +38,7 @@ Item
bottomMargin: UM.Theme.getSize("default_margin").height
}
- Label
+ UM.Label
{
id: titleLabel
anchors.top: parent.top
@@ -47,7 +47,6 @@ Item
text: catalog.i18nc("@label", "Add a Cloud printer")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
- renderType: Text.NativeRendering
}
// Component that contains a busy indicator and a message, while it waits for Cura to discover a cloud printer
@@ -65,7 +64,7 @@ Item
running: searchingForCloudPrinters
palette.dark: UM.Theme.getColor("text")
}
- Label
+ UM.Label
{
id: waitingLabel
anchors.top: waitingIndicator.bottom
@@ -73,10 +72,8 @@ Item
horizontalAlignment: Text.AlignHCenter
text: catalog.i18nc("@label", "Waiting for Cloud response")
font: UM.Theme.getFont("large")
- renderType: Text.NativeRendering
- color: UM.Theme.getColor("text")
}
- Label
+ UM.Label
{
id: noPrintersFoundLabel
anchors.top: waitingLabel.bottom
@@ -85,9 +82,8 @@ Item
horizontalAlignment: Text.AlignHCenter
text: catalog.i18nc("@label", "No printers found in your account?")
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
}
- Label
+ UM.Label
{
text: "Sign in with a different account"
anchors.top: noPrintersFoundLabel.bottom
@@ -112,7 +108,7 @@ Item
}
// Label displayed when a new cloud printer is discovered
- Label
+ UM.Label
{
anchors.top: titleLabel.bottom
anchors.topMargin: 2 * UM.Theme.getSize("default_margin").height
@@ -121,7 +117,6 @@ Item
text: catalog.i18nc("@label", "The following printers in your account have been added in Cura:")
height: contentHeight + 2 * UM.Theme.getSize("default_margin").height
visible: discoveredCloudPrintersModel.count > 0
- color: UM.Theme.getColor("text")
}
// The scrollView that contains the list of newly discovered Ultimaker Cloud printers. Visible only when
@@ -153,32 +148,29 @@ Item
Column
{
id: contentColumn
- Label
+ UM.Label
{
id: cloudPrinterNameLabel
leftPadding: UM.Theme.getSize("default_margin").width
text: model.name ? model.name : ""
font: UM.Theme.getFont("large_bold")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
- Label
+ UM.Label
{
id: cloudPrinterTypeLabel
leftPadding: 2 * UM.Theme.getSize("default_margin").width
topPadding: UM.Theme.getSize("thin_margin").height
- text: {"Type: " + model.machine_type}
+ text: "Type: " + model.machine_type
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
- Label
+ UM.Label
{
id: cloudPrinterFirmwareVersionLabel
leftPadding: 2 * UM.Theme.getSize("default_margin").width
- text: {"Firmware version: " + model.firmware_version}
+ text: "Firmware version: " + model.firmware_version
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
diff --git a/resources/qml/WelcomePages/AddLocalPrinterScrollView.qml b/resources/qml/WelcomePages/AddLocalPrinterScrollView.qml
index d2d48267de..1d868d72ef 100644
--- a/resources/qml/WelcomePages/AddLocalPrinterScrollView.qml
+++ b/resources/qml/WelcomePages/AddLocalPrinterScrollView.qml
@@ -1,8 +1,8 @@
// Copyright (c) 2022 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
-import QtQuick 2.10
-import QtQuick.Controls 2.3
+import QtQuick 2.15
+import QtQuick.Controls 2.14
import UM 1.5 as UM
import Cura 1.1 as Cura
@@ -115,14 +115,12 @@ Item
width: childrenRect.width
height: UM.Theme.getSize("action_button").height
- UM.RecolorImage
+ UM.ColorImage
{
id: arrow
anchors.left: parent.left
width: UM.Theme.getSize("standard_arrow").width
height: UM.Theme.getSize("standard_arrow").height
- sourceSize.width: width
- sourceSize.height: height
color: UM.Theme.getColor("text")
source: base.currentSection == section ? UM.Theme.getIcon("ChevronSingleDown") : UM.Theme.getIcon("ChevronSingleRight")
}
@@ -185,7 +183,6 @@ Item
UM.Label
{
width: parent.width - (2 * UM.Theme.getSize("default_margin").width)
- wrapMode: Text.Wrap
text: base.getMachineName()
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
@@ -235,9 +232,9 @@ Item
placeholderText: catalog.i18nc("@text", "Please name your printer")
maximumLength: 40
width: parent.width - (printerNameLabel.width + (3 * UM.Theme.getSize("default_margin").width))
- validator: RegExpValidator
+ validator: RegularExpressionValidator
{
- regExp: printerNameTextField.machineNameValidator.machineNameRegex
+ regularExpression: printerNameTextField.machineNameValidator.machineNameRegex
}
property var machineNameValidator: Cura.MachineNameValidator { }
}
diff --git a/resources/qml/WelcomePages/AddNetworkOrLocalPrinterContent.qml b/resources/qml/WelcomePages/AddNetworkOrLocalPrinterContent.qml
index dbf68ce701..83a38eab7a 100644
--- a/resources/qml/WelcomePages/AddNetworkOrLocalPrinterContent.qml
+++ b/resources/qml/WelcomePages/AddNetworkOrLocalPrinterContent.qml
@@ -4,7 +4,7 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
-import UM 1.3 as UM
+import UM 1.5 as UM
import Cura 1.1 as Cura
@@ -15,7 +15,7 @@ Item
{
UM.I18nCatalog { id: catalog; name: "cura" }
- Label
+ UM.Label
{
id: titleLabel
anchors.top: parent.top
@@ -24,7 +24,6 @@ Item
text: catalog.i18nc("@label", "Add a printer")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
- renderType: Text.NativeRendering
}
DropDownWidget
diff --git a/resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml b/resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml
index 64f194dd56..36c670f462 100644
--- a/resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml
+++ b/resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml
@@ -200,7 +200,7 @@ Item
height: troubleshootingLinkIcon.height
width: troubleshootingLinkIcon.width + troubleshootingLabel.width + UM.Theme.getSize("thin_margin").width
- UM.RecolorImage
+ UM.ColorImage
{
id: troubleshootingLinkIcon
anchors.right: troubleshootingLabel.left
@@ -208,7 +208,6 @@ Item
anchors.verticalCenter: parent.verticalCenter
height: troubleshootingLabel.height
width: height
- sourceSize.height: width
color: UM.Theme.getColor("text_link")
source: UM.Theme.getIcon("LinkExternal")
}
@@ -219,7 +218,6 @@ Item
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
text: catalog.i18nc("@label", "Troubleshooting")
- font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text_link")
}
diff --git a/resources/qml/WelcomePages/AddPrinterByIpContent.qml b/resources/qml/WelcomePages/AddPrinterByIpContent.qml
index 2207bd1708..90fdd2be91 100644
--- a/resources/qml/WelcomePages/AddPrinterByIpContent.qml
+++ b/resources/qml/WelcomePages/AddPrinterByIpContent.qml
@@ -1,11 +1,11 @@
// Copyright (c) 2019 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
-import QtQuick 2.10
+import QtQuick 2.15
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
-import UM 1.3 as UM
+import UM 1.5 as UM
import Cura 1.5 as Cura
@@ -61,7 +61,7 @@ Item
}
}
- Label
+ UM.Label
{
id: titleLabel
anchors.top: parent.top
@@ -70,7 +70,6 @@ Item
text: catalog.i18nc("@label", "Add printer by IP address")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
- renderType: Text.NativeRendering
}
Item
@@ -88,17 +87,13 @@ Item
anchors.right: parent.right
anchors.margins: UM.Theme.getSize("default_margin").width
- Label
+ UM.Label
{
id: explainLabel
height: contentHeight
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
-
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
text: catalog.i18nc("@label", "Enter the IP address of your printer on the network.")
}
@@ -123,9 +118,9 @@ Item
onInvalidInputDetected: invalidInputLabel.visible = true
- validator: RegExpValidator
+ validator: RegularExpressionValidator
{
- regExp: /([a-fA-F0-9.:]+)?/
+ regularExpression: /([a-fA-F0-9.:]+)?/
}
onTextEdited: invalidInputLabel.visible = false
@@ -136,7 +131,7 @@ Item
onAccepted: addPrinterButton.clicked()
}
- Label
+ UM.Label
{
id: invalidInputLabel
anchors.top: hostnameField.bottom
@@ -144,9 +139,6 @@ Item
anchors.left: parent.left
visible: false
text: catalog.i18nc("@text", "Please enter a valid IP address.")
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
Cura.SecondaryButton
@@ -188,14 +180,11 @@ Item
anchors.top: userInputFields.bottom
anchors.margins: UM.Theme.getSize("default_margin").width
- Label
+ UM.Label
{
id: waitResponseLabel
anchors.top: parent.top
anchors.margins: UM.Theme.getSize("default_margin").width
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
visible: addPrinterByIpScreen.hasRequestInProgress || (addPrinterByIpScreen.hasRequestFinished && !addPrinterByIpScreen.isPrinterDiscovered)
textFormat: Text.RichText
@@ -225,18 +214,15 @@ Item
visible: addPrinterByIpScreen.isPrinterDiscovered
- Label
+ UM.Label
{
id: printerNameLabel
anchors.top: parent.top
font: UM.Theme.getFont("large")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
-
text: !addPrinterByIpScreen.isPrinterDiscovered ? "???" : addPrinterByIpScreen.discoveredPrinter.name
}
- Label
+ UM.Label
{
id: printerCannotBeAddedLabel
width: parent.width
@@ -245,8 +231,6 @@ Item
text: catalog.i18nc("@label", "This printer cannot be added because it's an unknown printer or it's not the host of a group.")
visible: addPrinterByIpScreen.hasRequestFinished && !addPrinterByIpScreen.canAddPrinter
font: UM.Theme.getFont("default_bold")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
wrapMode: Text.WordWrap
}
@@ -258,52 +242,33 @@ Item
columns: 2
columnSpacing: UM.Theme.getSize("default_margin").width
- Label
+ UM.Label
{
text: catalog.i18nc("@label", "Type")
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
- Label
+ UM.Label
{
id: typeText
text: !addPrinterByIpScreen.isPrinterDiscovered ? "?" : addPrinterByIpScreen.discoveredPrinter.readableMachineType
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
-
- Label
+ UM.Label
{
text: catalog.i18nc("@label", "Firmware version")
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
- Label
+ UM.Label
{
id: firmwareText
text: !addPrinterByIpScreen.isPrinterDiscovered ? "0.0.0.0" : addPrinterByIpScreen.discoveredPrinter.device.getProperty("firmware_version")
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
- Label
+ UM.Label
{
text: catalog.i18nc("@label", "Address")
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
- Label
+ UM.Label
{
id: addressText
text: !addPrinterByIpScreen.isPrinterDiscovered ? "0.0.0.0" : addPrinterByIpScreen.discoveredPrinter.address
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
}
diff --git a/resources/qml/WelcomePages/CloudContent.qml b/resources/qml/WelcomePages/CloudContent.qml
index 7dc35c7bc5..cf830a9b36 100644
--- a/resources/qml/WelcomePages/CloudContent.qml
+++ b/resources/qml/WelcomePages/CloudContent.qml
@@ -4,7 +4,7 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
-import UM 1.3 as UM
+import UM 1.5 as UM
import Cura 1.1 as Cura
@@ -56,7 +56,7 @@ Item
spacing: UM.Theme.getSize("thick_margin").height
- Label
+ UM.Label
{
id: titleLabel
anchors.horizontalCenter: parent.horizontalCenter
@@ -64,7 +64,6 @@ Item
text: catalog.i18nc("@label", "Sign in to the Ultimaker platform")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
- renderType: Text.NativeRendering
}
// Filler item
@@ -116,17 +115,13 @@ Item
sourceSize.width: width
sourceSize.height: height
}
- Label
+ UM.Label
{
id: marketplaceTextLabel
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width
text: catalog.i18nc("@text", "Add material settings and plugins from the Marketplace")
- wrapMode: Text.Wrap
horizontalAlignment: Text.AlignHCenter
- color: UM.Theme.getColor("text")
- font: UM.Theme.getFont("default")
- renderType: Text.NativeRendering
}
}
@@ -146,17 +141,13 @@ Item
sourceSize.width: width
sourceSize.height: height
}
- Label
+ UM.Label
{
id: syncTextLabel
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width
text: catalog.i18nc("@text", "Backup and sync your material settings and plugins")
- wrapMode: Text.Wrap
horizontalAlignment: Text.AlignHCenter
- color: UM.Theme.getColor("text")
- font: UM.Theme.getFont("default")
- renderType: Text.NativeRendering
}
}
@@ -176,17 +167,13 @@ Item
sourceSize.width: width
sourceSize.height: height
}
- Label
+ UM.Label
{
id: communityTextLabel
anchors.horizontalCenter: communityColumn.horizontalCenter
width: parent.width
text: catalog.i18nc("@text", "Share ideas and get help from 48,000+ users in the Ultimaker Community")
- wrapMode: Text.Wrap
horizontalAlignment: Text.AlignHCenter
- color: UM.Theme.getColor("text")
- font: UM.Theme.getFont("default")
- renderType: Text.NativeRendering
}
}
}
diff --git a/resources/qml/WelcomePages/DataCollectionsContent.qml b/resources/qml/WelcomePages/DataCollectionsContent.qml
index be4d09e876..ece437890e 100644
--- a/resources/qml/WelcomePages/DataCollectionsContent.qml
+++ b/resources/qml/WelcomePages/DataCollectionsContent.qml
@@ -4,7 +4,7 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
-import UM 1.3 as UM
+import UM 1.5 as UM
import Cura 1.1 as Cura
@@ -15,7 +15,7 @@ Item
{
UM.I18nCatalog { id: catalog; name: "cura" }
- Label
+ UM.Label
{
id: titleLabel
anchors.top: parent.top
@@ -24,7 +24,6 @@ Item
text: catalog.i18nc("@label", "Help us to improve Ultimaker Cura")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
- renderType: Text.NativeRendering
}
// Area where the cloud contents can be put. Pictures, texts and such.
@@ -48,7 +47,7 @@ Item
spacing: UM.Theme.getSize("wide_margin").height
- Label
+ UM.Label
{
id: topLabel
width: parent.width
@@ -57,8 +56,6 @@ Item
text: catalog.i18nc("@text", "Ultimaker Cura collects anonymous data to improve print quality and user experience, including:")
wrapMode: Text.WordWrap
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
Grid {
@@ -91,7 +88,7 @@ Item
}
}
- Label
+ UM.Label
{
id: bottomLabel
width: parent.width
@@ -107,10 +104,8 @@ Item
textFormat: Text.RichText
wrapMode: Text.WordWrap
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
linkColor: UM.Theme.getColor("text_link")
onLinkActivated: CuraApplication.showMoreInformationDialogForAnonymousDataCollection()
- renderType: Text.NativeRendering
}
}
}
diff --git a/resources/qml/WelcomePages/DropDownHeader.qml b/resources/qml/WelcomePages/DropDownHeader.qml
index a4b416b093..b91f3383be 100644
--- a/resources/qml/WelcomePages/DropDownHeader.qml
+++ b/resources/qml/WelcomePages/DropDownHeader.qml
@@ -57,7 +57,7 @@ Cura.RoundedRectangle
color: base.hovered ? UM.Theme.getColor("small_button_text_hover") : UM.Theme.getColor("small_button_text")
}
- UM.RecolorImage
+ UM.ColorImage
{
id: rightIcon
anchors.right: parent.right
diff --git a/resources/qml/WelcomePages/FirstStartMachineActionsContent.qml b/resources/qml/WelcomePages/FirstStartMachineActionsContent.qml
index 64a815855b..2503190c32 100644
--- a/resources/qml/WelcomePages/FirstStartMachineActionsContent.qml
+++ b/resources/qml/WelcomePages/FirstStartMachineActionsContent.qml
@@ -4,7 +4,7 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
-import UM 1.3 as UM
+import UM 1.5 as UM
import Cura 1.1 as Cura
@@ -36,7 +36,7 @@ Item
}
}
- Label
+ UM.Label
{
id: titleLabel
anchors.top: parent.top
@@ -45,7 +45,6 @@ Item
text: machineActionsModel.currentItem.title == undefined ? "" : machineActionsModel.currentItem.title
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
- renderType: Text.NativeRendering
}
Item
diff --git a/resources/qml/WelcomePages/ImageTile.qml b/resources/qml/WelcomePages/ImageTile.qml
index 7ed07304e6..b8f40ed25f 100644
--- a/resources/qml/WelcomePages/ImageTile.qml
+++ b/resources/qml/WelcomePages/ImageTile.qml
@@ -4,7 +4,7 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
-import UM 1.3 as UM
+import UM 1.5 as UM
//
@@ -18,7 +18,7 @@ Column
property alias text: label.text
property alias imageSource: image.source
- Label
+ UM.Label
{
id: label
width: image.width
@@ -26,9 +26,6 @@ Column
horizontalAlignment: Text.AlignHCenter
text: ""
wrapMode: Text.WordWrap
- font: UM.Theme.getFont("default")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
Image
diff --git a/resources/qml/WelcomePages/WelcomeContent.qml b/resources/qml/WelcomePages/WelcomeContent.qml
index 619780435d..4123535cc9 100644
--- a/resources/qml/WelcomePages/WelcomeContent.qml
+++ b/resources/qml/WelcomePages/WelcomeContent.qml
@@ -4,7 +4,7 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
-import UM 1.3 as UM
+import UM 1.5 as UM
import Cura 1.1 as Cura
//
@@ -48,7 +48,7 @@ Item
width: parent.width
}
- Label
+ UM.Label
{
id: titleLabel
anchors.horizontalCenter: parent.horizontalCenter
@@ -56,20 +56,16 @@ Item
text: catalog.i18nc("@label", "Welcome to Ultimaker Cura")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge_bold")
- renderType: Text.NativeRendering
}
- Label
+ UM.Label
{
id: textLabel
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
width: titleLabel.width + 2 * UM.Theme.getSize("thick_margin").width
text: catalog.i18nc("@text", "Please follow these steps to set up Ultimaker Cura. This will only take a few moments.")
- wrapMode: Text.Wrap
font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
- renderType: Text.NativeRendering
}
// Filler item
diff --git a/resources/qml/WelcomePages/WelcomeDialogItem.qml b/resources/qml/WelcomePages/WelcomeDialogItem.qml
index 2d01642ada..d98610d7d8 100644
--- a/resources/qml/WelcomePages/WelcomeDialogItem.qml
+++ b/resources/qml/WelcomePages/WelcomeDialogItem.qml
@@ -4,7 +4,6 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Window 2.2
-import QtGraphicalEffects 1.0 // For the DropShadow
import UM 1.3 as UM
import Cura 1.1 as Cura
@@ -45,7 +44,8 @@ Item
}
// Drop shadow around the panel
- DropShadow
+ // TODO: Maybe re-implement this some other way.
+ /*DropShadow
{
id: shadow
radius: UM.Theme.getSize("first_run_shadow_radius").width
@@ -55,7 +55,7 @@ Item
verticalOffset: shadowOffset
color: UM.Theme.getColor("first_run_shadow")
transparentBorder: true
- }
+ }*/
// Close this dialog when there's no more page to show
Connections
diff --git a/resources/qml/WelcomePages/WhatsNewContent.qml b/resources/qml/WelcomePages/WhatsNewContent.qml
index c56f8880ed..bbae9380a2 100644
--- a/resources/qml/WelcomePages/WhatsNewContent.qml
+++ b/resources/qml/WelcomePages/WhatsNewContent.qml
@@ -4,9 +4,8 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
-import QtGraphicalEffects 1.12 // For the DropShadow
-import UM 1.3 as UM
+import UM 1.5 as UM
import Cura 1.1 as Cura
@@ -20,7 +19,7 @@ Item
UM.I18nCatalog { id: catalog; name: "cura" }
- Label
+ UM.Label
{
id: titleLabel
anchors.top: parent.top
@@ -29,7 +28,6 @@ Item
text: catalog.i18nc("@label", "What's New")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
- renderType: Text.NativeRendering
}
Rectangle
@@ -67,7 +65,7 @@ Item
Rectangle
{
- Layout.alignment: Qt.AlignHCenter
+ Layout.alignment: Qt.AlignmentFlag.AlignHCenter
color: UM.Theme.getColor("viewport_overlay")
width: whatsNewViewport.width
height: whatsNewViewport.height
@@ -92,13 +90,6 @@ Item
source: manager.getSubpageImageSource(index)
}
- DropShadow {
- anchors.fill: subpageImage
- radius: UM.Theme.getSize("monitor_shadow_radius").width
- color: UM.Theme.getColor("first_run_shadow")
- source: subpageImage
- }
-
Cura.ScrollableTextArea
{
id: subpageText