@ -1,6 +1,7 @@
/* === This file is part of Calamares - <https:/ / github . com / calamares > ===
*
* Copyright 2020 , Anke Boersma < demm @ kaosx . us >
* Copyright 2020 , Adriaan de Groot < groot @ kde . org >
*
* Calamares is free software: you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
@ -16,6 +17,7 @@
* along with Calamares . If not , see < http: / / w w w . g n u . o r g / l i c e n s e s / > .
* /
import io . calamares . core 1.0
import io . calamares . ui 1.0
import QtQuick 2.7
@ -33,35 +35,64 @@ Rectangle {
id: recommended
anchors.horizontalCenter: parent . horizontalCenter
anchors.top: parent . top
anchors.topMargin: 20
anchors.topMargin: 10
horizontalAlignment: TextEdit . AlignHCenter
width: 640
font.pointSize: 1 2
font.pointSize: 1 1
textFormat: Text . RichText
antialiasing: true
activeFocusOnPress: false
wrapMode: Text . WordWrap
text: qsTr ( " < p > This computer does not satisfy some of the recommended requirements for setting up % 1 . < / p >
< p > Setup can continue , but some features might be disabled . < / p > " ) . a r g ( B r a n d i n g . s t r i n g ( B r a n d i n g . V e r s i o n e d N a m e ) )
text: qsTr ( " < p > This computer does not satisfy some of the recommended requirements for setting up % 1 . < br / >
Setup can continue , but some features might be disabled . < / p > " ) . a r g ( B r a n d i n g . s t r i n g ( B r a n d i n g . V e r s i o n e d N a m e ) )
}
TextArea {
Rectangle {
width: 640
height: 400
anchors.horizontalCenter: parent . horizontalCenter
anchors.top: recommended . bottom
anchors.topMargin: 20
width: 640
background: Rectangle {
implicitWidth: 640
implicitHeight: 50
border.color: "#ff0000"
color: "#b0e0e6"
anchors.topMargin: 5
Component {
id: requirementsDelegate
Item {
width: 640
height: 40
Column {
anchors.centerIn: parent
Rectangle {
implicitWidth: 640
implicitHeight: 40
border.color: satisfied ? "#228b22" : "#ffa411"
color: satisfied ? "#f0fff0" : "#ffefd5"
Image {
anchors.verticalCenter: parent . verticalCenter
anchors.right: parent . right
anchors.margins: 20
source: satisfied ? "qrc:/data/images/yes.svgz" : "qrc:/data/images/information.svgz"
}
Text {
text: ( satisfied ? 'Met: ' : 'Missing: ' ) + name + " " + details
anchors.centerIn: parent
font.pointSize: 12
}
}
}
}
}
font.pointSize: 12
textFormat: Text . RichText
antialiasing: true
activeFocusOnPress: false
wrapMode: Text . WordWrap
text: qsTr ( "<p>The system is not connected to the internet.</p>" ) / / . a r g ( r e q u i r e m e n t s M o d e l )
ListView {
anchors.fill: parent
spacing: 5
model: config . requirementsModel
delegate: requirementsDelegate
}
}
}