diff --git a/src/modules/welcomeq/Recommended.qml b/src/modules/welcomeq/Recommended.qml
index 636311b11..5a6c1316d 100644
--- a/src/modules/welcomeq/Recommended.qml
+++ b/src/modules/welcomeq/Recommended.qml
@@ -17,6 +17,8 @@
* along with Calamares. If not, see .
*/
+/* THIS COMPONENT IS UNUSED -- from the default welcomeq.qml at least */
+
import io.calamares.core 1.0
import io.calamares.ui 1.0
diff --git a/src/modules/welcomeq/Requirements.qml b/src/modules/welcomeq/Requirements.qml
index e81d0a2e6..a376c6010 100644
--- a/src/modules/welcomeq/Requirements.qml
+++ b/src/modules/welcomeq/Requirements.qml
@@ -44,8 +44,12 @@ Rectangle {
activeFocusOnPress: false
wrapMode: Text.WordWrap
- text: qsTr("
This computer does not satisfy the minimum requirements for installing %1.
+ property var requirementsText: qsTr("
This computer does not satisfy the minimum requirements for installing %1.
Installation cannot continue.
").arg(Branding.string(Branding.VersionedName))
+ property var recommendationsText: qsTr("This computer does not satisfy some of the recommended requirements for setting up %1.
+ Setup can continue, but some features might be disabled.
").arg(Branding.string(Branding.VersionedName))
+
+ text: config.requirementsModel.satisfiedMandatory ? recommendationsText : requirementsText
}
Rectangle {
@@ -60,26 +64,34 @@ Rectangle {
Item {
width: 640
- height: 35
+ // Hide the satisfied requirements; we could do that with
+ // a filtering model, but here we'll just hide it, but also
+ // need to compensate for the spacing between items.
+ height: !satisfied ? 35 : -requirementsList.spacing
+ visible: !satisfied
Column {
anchors.centerIn: parent
Rectangle {
implicitWidth: 640
- implicitHeight: 35
- border.color: mandatory ? "#228b22" : "#ff0000"
- color: mandatory ? "#f0fff0" : "#ffc0cb"
+ implicitHeight: !satisfied ? 35 : 0
+ // Colors and images based on the two satisfied-bools:
+ // - if satisfied, then green / ok
+ // - otherwise if mandatory, then red / stop
+ // - otherwise, then yellow / warning
+ border.color: satisfied ? "#228b22" : (mandatory ? "#ff0000" : "#ffa411")
+ color: satisfied ? "#f0fff0" : (mandatory ? "#ffc0cb" : "#ffefd5")
Image {
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.margins: 20
- source: mandatory ? "qrc:/data/images/yes.svgz" : "qrc:/data/images/no.svgz"
+ source: satisfied ? "qrc:/data/images/yes.svgz" : (mandatory ? "qrc:/data/images/no.svgz" : "qrc:/data/images/information.svgz")
}
Text {
- text: mandatory ? details : negatedText
+ text: satisfied ? details : negatedText
anchors.centerIn: parent
font.pointSize: 11
}
@@ -89,6 +101,7 @@ Rectangle {
}
ListView {
+ id: requirementsList
anchors.fill: parent
spacing: 5
model: config.requirementsModel
diff --git a/src/modules/welcomeq/welcomeq.qml b/src/modules/welcomeq/welcomeq.qml
index b92ff9628..ffa480f4a 100644
--- a/src/modules/welcomeq/welcomeq.qml
+++ b/src/modules/welcomeq/welcomeq.qml
@@ -56,12 +56,8 @@ Page
fillMode: Image.PreserveAspectFit
}
- Recommended {
- visible: !config.requirementsModel.satisfiedRequirements
- }
-
Requirements {
- visible: !config.requirementsModel.satisfiedMandatory
+ visible: !config.requirementsModel.satisfiedRequirements
}
RowLayout {