aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2022-06-22 12:48:25 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2022-06-22 10:44:59 +0000
commit359f4f176755c0504a4a6372835498f8faae3fb0 (patch)
treecc217a44a698c230ebf976155c30a1b83f3a94ec
parent41986d794279c9a6db2e2893372707a3d5415b82 (diff)
QmlDesigner: Fix material editor/browser texts
Fixes: QDS-7083 Change-Id: Ib4a5269e275c7811a5645bbff54e3b0ec95ec302 Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml8
-rw-r--r--share/qtcreator/qmldesigner/materialEditorQmlSources/EmptyMaterialEditorPane.qml5
-rw-r--r--share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml2
3 files changed, 9 insertions, 6 deletions
diff --git a/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml b/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml
index ab061e4289..0419b945b9 100644
--- a/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml
+++ b/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml
@@ -128,7 +128,7 @@ Item {
StudioControls.MenuSeparator {}
StudioControls.MenuItem {
- text: qsTr("New Material")
+ text: qsTr("Create New Material")
onTriggered: materialBrowserModel.addNewMaterial()
}
@@ -169,7 +169,8 @@ Item {
}
Text {
- text: qsTr("No materials yet.\nClick '+' above to start.")
+ text: qsTr("There are no materials in this project.<br>Select '<b>+</b>' to create one.")
+ textFormat: Text.RichText
color: StudioTheme.Values.themeTextColor
font.pixelSize: StudioTheme.Values.mediumFontSize
horizontalAlignment: Text.AlignHCenter
@@ -179,7 +180,8 @@ Item {
}
Text {
- text: qsTr("Add QtQuick3D module using the Components view to enable the Material Browser.");
+ text: qsTr("To use <b>Material Browser</b>, first add the QtQuick3D module in the <b>Components</b> view.");
+ textFormat: Text.RichText
color: StudioTheme.Values.themeTextColor
font.pixelSize: StudioTheme.Values.mediumFontSize
topPadding: 30
diff --git a/share/qtcreator/qmldesigner/materialEditorQmlSources/EmptyMaterialEditorPane.qml b/share/qtcreator/qmldesigner/materialEditorQmlSources/EmptyMaterialEditorPane.qml
index 80ec524e23..a9e272b6d5 100644
--- a/share/qtcreator/qmldesigner/materialEditorQmlSources/EmptyMaterialEditorPane.qml
+++ b/share/qtcreator/qmldesigner/materialEditorQmlSources/EmptyMaterialEditorPane.qml
@@ -48,8 +48,9 @@ PropertyEditorPane {
height: 150
Text {
- text: hasQuick3DImport ? qsTr("No materials yet.\nClick '+' above to start.")
- : qsTr("Add QtQuick3D module using the Components view to enable the Material Editor.")
+ text: hasQuick3DImport ? qsTr("There are no materials in this project.<br>Select '<b>+</b>' to create one.")
+ : qsTr("To use <b>Material Editor</b>, first add the QtQuick3D module in the <b>Components</b> view.")
+ textFormat: Text.RichText
color: StudioTheme.Values.themeTextColor
font.pixelSize: StudioTheme.Values.mediumFontSize
horizontalAlignment: Text.AlignHCenter
diff --git a/share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml b/share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml
index c610df94c5..80a8d9abbe 100644
--- a/share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml
+++ b/share/qtcreator/qmldesigner/materialEditorQmlSources/MaterialEditorToolBar.qml
@@ -63,7 +63,7 @@ Rectangle {
buttonSize: root.height
enabled: hasQuick3DImport
onClicked: root.toolBarAction(ToolBarAction.AddNewMaterial)
- tooltip: qsTr("Add a new material.")
+ tooltip: qsTr("Create new material.")
}
IconButton {