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>
This commit is contained in:
Miikka Heikkinen
2022-06-22 12:48:25 +03:00
parent 41986d7942
commit 359f4f1767
3 changed files with 9 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 {