summaryrefslogtreecommitdiffstats
path: root/qml/mw-ui.qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2018-12-08 15:45:52 +0100
committerPapoteur <papoteur@mageia.org>2018-12-17 10:19:29 +0100
commit72ced80ab02c84903d408fe3f638e6e34ec82c9b (patch)
treec8be75d410ba743a94848c12a69241f55f6c1cd8 /qml/mw-ui.qml
parentfe8e77976519df6cc74e85a4b5765dcb9132e7ed (diff)
downloadmageiawelcome-72ced80ab02c84903d408fe3f638e6e34ec82c9b.tar
mageiawelcome-72ced80ab02c84903d408fe3f638e6e34ec82c9b.tar.gz
mageiawelcome-72ced80ab02c84903d408fe3f638e6e34ec82c9b.tar.bz2
mageiawelcome-72ced80ab02c84903d408fe3f638e6e34ec82c9b.tar.xz
mageiawelcome-72ced80ab02c84903d408fe3f638e6e34ec82c9b.zip
Define color gradient background
Diffstat (limited to 'qml/mw-ui.qml')
-rw-r--r--qml/mw-ui.qml102
1 files changed, 91 insertions, 11 deletions
diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml
index a32742c..9bd9440 100644
--- a/qml/mw-ui.qml
+++ b/qml/mw-ui.qml
@@ -4,6 +4,7 @@ import QtQml.Models 2.1
import QtQuick.Layouts 1.3
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
+import QtGraphicalEffects 1
Rectangle {
id: box
@@ -38,7 +39,17 @@ Rectangle {
Rectangle {
property var title: qsTr("Welcome")
width: view.width; height: view.height
- color: "#FFFEF0"
+ LinearGradient {
+ anchors.fill: parent
+ start: Qt.point(0, 0)
+ end: Qt.point(0, 1000)
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "white" }
+ GradientStop { position: 1.0; color: "#2397D4" }
+ }
+
+ }
+
Label {
text: qsTr("Welcome to Mageia, %1").arg(user)
font.bold: true
@@ -57,7 +68,17 @@ and help you with the configuration of your newly installed system.
Rectangle {
property var title: qsTr("Media sources")
width: view.width; height: view.height
- color: "#F0FFF7"
+ LinearGradient {
+ anchors.fill: parent
+ start: Qt.point(0, 0)
+ end: Qt.point(0, 1000)
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "white" }
+ GradientStop { position: 1.0; color: "#2397D4" }
+ }
+
+ }
+
Column {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
@@ -171,7 +192,17 @@ and help you with the configuration of your newly installed system.
Rectangle {
property var title: "Update"
width: view.width; height: view.height
- color: "#F4F0FF"
+ LinearGradient {
+ anchors.fill: parent
+ start: Qt.point(0, 0)
+ end: Qt.point(0, 1000)
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "white" }
+ GradientStop { position: 1.0; color: "#2397D4" }
+ }
+
+ }
+
Column {
anchors {left: parent.left; verticalCenter: parent.verticalCenter; leftMargin: 10}
Label { text: qsTr("Update"); font.bold: true; }
@@ -209,7 +240,17 @@ It is highly recommended that you update your system regularly. An Update icon w
Rectangle {
property var title: "MCC"
width: view.width; height: view.height
- color: "#F4F0FF"
+ LinearGradient {
+ anchors.fill: parent
+ start: Qt.point(0, 0)
+ end: Qt.point(0, 1000)
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "white" }
+ GradientStop { position: 1.0; color: "#2397D4" }
+ }
+
+ }
+
Column {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
@@ -264,7 +305,17 @@ It is highly recommended that you update your system regularly. An Update icon w
Rectangle {
property var title: "Install software"
width: view.width; height: view.height
- color: "#F4F0FF"
+ LinearGradient {
+ anchors.fill: parent
+ start: Qt.point(0, 0)
+ end: Qt.point(0, 1000)
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "white" }
+ GradientStop { position: 1.0; color: "#2397D4" }
+ }
+
+ }
+
Column {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
@@ -317,6 +368,9 @@ It is highly recommended that you update your system regularly. An Update icon w
anchors.verticalCenter: parent.verticalCenter
Button {
id: rpmdrake
+ objectName: "launch"
+ onClicked: {
+ launch.command(["rpmdrake",])}
style: ButtonStyle {
label: Label {
text: qsTr("RPMdrake")+" *";
@@ -337,8 +391,17 @@ It is highly recommended that you update your system regularly. An Update icon w
Rectangle {
property var title: "Applications"
width: view.width; height: view.height
+ LinearGradient {
+ anchors.fill: parent
+ start: Qt.point(0, 0)
+ end: Qt.point(0, 1000)
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "white" }
+ GradientStop { position: 1.0; color: "#2397D4" }
+ }
+
+ }
- color: "#F4F0FF"
Column {
Rectangle {
@@ -517,7 +580,17 @@ It is highly recommended that you update your system regularly. An Update icon w
Rectangle {
property var title: "Your configuration"
width: view.width; height: view.height
- color: "#F4F0FF"
+ LinearGradient {
+ anchors.fill: parent
+ start: Qt.point(0, 0)
+ end: Qt.point(0, 1000)
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "white" }
+ GradientStop { position: 1.0; color: "#2397D4" }
+ }
+
+ }
+
ListView {
id: confList
anchors.fill: parent
@@ -532,7 +605,17 @@ It is highly recommended that you update your system regularly. An Update icon w
Rectangle {
property var title: "More information"
width: view.width; height: view.height
- color: "#F4F0FF"
+ LinearGradient {
+ anchors.fill: parent
+ start: Qt.point(0, 0)
+ end: Qt.point(0, 1000)
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "white" }
+ GradientStop { position: 1.0; color: "#2397D4" }
+ }
+
+ }
+
Column {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
@@ -581,9 +664,6 @@ It is highly recommended that you update your system regularly. An Update icon w
}
}
}
-
-
- Component.onDestruction: if (printDestruction) print("destroyed 3")
}
}