aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2021-08-16 20:24:34 +0200
committerHenning Gründl <henning.gruendl@qt.io>2021-08-18 14:50:36 +0000
commit95a1049ceee559843927496e2ce326628aaacc15 (patch)
treed45f214f9ef539a149c8f806929fa3b921300323
parentc6ac773b9a2d6fc5cb581cd56785525d0a352a4a (diff)
QmlDesigner: Fix small CheckBoxes in splash screenqds/v2.2-beta2
* Remove NoShowCheckBox component replace it with stock CheckBox * Add missing qsTr to statistics CheckBox * Place CheckBoxes in a ColumnLayout * Align all text items equaly 16 px from the left * Align close cross * Replace root image with Rectangle and gradient * General cleanup Task-number: QDS-4742 Change-Id: Ie7828531d2510323db3010add840a4e5d09aebe3 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/plugins/studiowelcome/qml/splashscreen/NoShowCheckbox.qml47
-rw-r--r--src/plugins/studiowelcome/qml/splashscreen/Welcome_splash.qml82
-rw-r--r--src/plugins/studiowelcome/qml/splashscreen/welcome_windows/logo.pngbin30814 -> 3449 bytes
-rw-r--r--src/plugins/studiowelcome/qml/splashscreen/welcome_windows/logo@2x.pngbin0 -> 7320 bytes
-rw-r--r--src/plugins/studiowelcome/qml/splashscreen/welcome_windows/welcome_1.pngbin732 -> 0 bytes
5 files changed, 45 insertions, 84 deletions
diff --git a/src/plugins/studiowelcome/qml/splashscreen/NoShowCheckbox.qml b/src/plugins/studiowelcome/qml/splashscreen/NoShowCheckbox.qml
deleted file mode 100644
index dc05c7e4c6..0000000000
--- a/src/plugins/studiowelcome/qml/splashscreen/NoShowCheckbox.qml
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt Creator.
-**
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-****************************************************************************/
-
-import QtQuick 2.7
-import QtQuick.Timeline 1.0
-import QtQuick.Controls 2.12
-
-CheckBox {
- id: do_not_show_checkBox
- width: 268
- height: 40
- text: qsTr("Do not show this again")
- spacing: 12
-
-
- contentItem: Text {
- text:do_not_show_checkBox.text
- font.family: "titillium web"
- color: "#ffffff"
- font.pointSize: 24
- verticalAlignment: Text.AlignVCenter
- horizontalAlignment: Text.AlignLeft
- leftPadding: do_not_show_checkBox.indicator.width + do_not_show_checkBox.spacing
- }
-}
diff --git a/src/plugins/studiowelcome/qml/splashscreen/Welcome_splash.qml b/src/plugins/studiowelcome/qml/splashscreen/Welcome_splash.qml
index b016997c99..860e7b0f56 100644
--- a/src/plugins/studiowelcome/qml/splashscreen/Welcome_splash.qml
+++ b/src/plugins/studiowelcome/qml/splashscreen/Welcome_splash.qml
@@ -23,24 +23,30 @@
**
****************************************************************************/
-import QtQuick 2.7
-import QtQuick.Controls 2.3
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+import QtQuick.Layouts 1.15
import StudioFonts 1.0
-import QtQuick.Layouts 1.0
import projectmodel 1.0
import usagestatistics 1.0
-Image {
+Rectangle {
id: welcome_splash
width: 800
height: 480
- source: "welcome_windows/welcome_1.png"
+
+ gradient: Gradient {
+ orientation: Gradient.Horizontal
+
+ GradientStop { position: 0.0; color: "#333d56" }
+ GradientStop { position: 1.0; color: "#000728" }
+ }
signal goNext
signal closeClicked
signal configureClicked
- property alias doNotShowAgain: do_not_show_checkBox.checked
+ property alias doNotShowAgain: doNotShowCheckBox.checked
property bool loadingPlugins: true
// called from C++
@@ -65,17 +71,14 @@ Image {
Image {
id: logo
- x: 14
- y: 8
- width: 76
- height: 66
- fillMode: Image.PreserveAspectFit
+ x: 16
+ y: 16
source: "welcome_windows/logo.png"
}
Text {
id: qt_design_studio
- x: 13
+ x: 16
y: 93
width: 250
height: 55
@@ -87,7 +90,7 @@ Image {
Text {
id: software_for_ui
- x: 15
+ x: 16
y: 141
width: 250
height: 30
@@ -100,7 +103,7 @@ Image {
Text {
id: copyright
- x: 15
+ x: 16
y: 183
width: 270
height: 24
@@ -112,7 +115,7 @@ Image {
Text {
id: all_rights_reserved
- x: 15
+ x: 16
y: 207
width: 250
height: 24
@@ -205,13 +208,15 @@ Image {
Image {
id: close_window
- x: 779
- y: 5
+ anchors.top: parent.top
+ anchors.right: parent.right
+ anchors.margins: 8
width: 13
height: 13
fillMode: Image.PreserveAspectFit
source: "welcome_windows/close.png"
opacity: area.containsMouse ? 1 : 0.8
+
MouseArea {
id: area
hoverEnabled: true
@@ -221,18 +226,30 @@ Image {
}
}
- NoShowCheckbox {
- id: do_not_show_checkBox
- x: -47
- y: 430
- padding: 0
- scale: 0.5
+ ColumnLayout {
+ anchors.left: parent.left
+ anchors.bottom: parent.bottom
+ anchors.margins: 16
+
+ CheckBox {
+ id: doNotShowCheckBox
+ text: qsTr("Do not show this again")
+ padding: 0
+ }
+
+ CheckBox {
+ id: usageStatisticCheckBox
+ text: qsTr("Enable Usage Statistics")
+ checked: usageStatisticModel.usageStatisticEnabled
+ padding: 0
+
+ onCheckedChanged: usageStatisticModel.setTelemetryEnabled(usageStatisticCheckBox.checked)
+ }
}
RowLayout {
x: 16
y: 330
-
visible: welcome_splash.loadingPlugins
Text {
@@ -240,6 +257,7 @@ Image {
color: "#ffffff"
text: qsTr("%")
font.pixelSize: 12
+
RotationAnimator {
target: text1
from: 0
@@ -263,6 +281,7 @@ Image {
color: "#ffffff"
text: qsTr("%")
font.pixelSize: 12
+
RotationAnimator {
target: text2
from: 0
@@ -276,13 +295,14 @@ Image {
Text {
id: all_rights_reserved1
- x: 15
+ x: 16
y: 75
color: "#ffffff"
text: qsTr("Community Edition")
font.pixelSize: 13
font.family: StudioFonts.titilliumWeb_light
visible: projectModel.communityVersion
+
ProjectModel {
id: projectModel
}
@@ -291,16 +311,4 @@ Image {
id: usageStatisticModel
}
}
-
- NoShowCheckbox {
- id: usageStatisticCheckBox
- x: -47
- y: 391
- text: "Enable Usage Statistics"
- padding: 0
- scale: 0.5
- checked: usageStatisticModel.usageStatisticEnabled
-
- onCheckedChanged: usageStatisticModel.setTelemetryEnabled(usageStatisticCheckBox.checked)
- }
}
diff --git a/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/logo.png b/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/logo.png
index 347beb789c..e4cf99cfa9 100644
--- a/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/logo.png
+++ b/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/logo.png
Binary files differ
diff --git a/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/logo@2x.png b/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/logo@2x.png
new file mode 100644
index 0000000000..4c39c4ff73
--- /dev/null
+++ b/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/logo@2x.png
Binary files differ
diff --git a/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/welcome_1.png b/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/welcome_1.png
deleted file mode 100644
index 58b68511be..0000000000
--- a/src/plugins/studiowelcome/qml/splashscreen/welcome_windows/welcome_1.png
+++ /dev/null
Binary files differ