forked from qt-creator/qt-creator
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:
@@ -128,7 +128,7 @@ Item {
|
|||||||
StudioControls.MenuSeparator {}
|
StudioControls.MenuSeparator {}
|
||||||
|
|
||||||
StudioControls.MenuItem {
|
StudioControls.MenuItem {
|
||||||
text: qsTr("New Material")
|
text: qsTr("Create New Material")
|
||||||
|
|
||||||
onTriggered: materialBrowserModel.addNewMaterial()
|
onTriggered: materialBrowserModel.addNewMaterial()
|
||||||
}
|
}
|
||||||
@@ -169,7 +169,8 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
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
|
color: StudioTheme.Values.themeTextColor
|
||||||
font.pixelSize: StudioTheme.Values.mediumFontSize
|
font.pixelSize: StudioTheme.Values.mediumFontSize
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
@@ -179,7 +180,8 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
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
|
color: StudioTheme.Values.themeTextColor
|
||||||
font.pixelSize: StudioTheme.Values.mediumFontSize
|
font.pixelSize: StudioTheme.Values.mediumFontSize
|
||||||
topPadding: 30
|
topPadding: 30
|
||||||
|
@@ -48,8 +48,9 @@ PropertyEditorPane {
|
|||||||
height: 150
|
height: 150
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: hasQuick3DImport ? qsTr("No materials yet.\nClick '+' above to start.")
|
text: hasQuick3DImport ? qsTr("There are no materials in this project.<br>Select '<b>+</b>' to create one.")
|
||||||
: qsTr("Add QtQuick3D module using the Components view to enable the Material Editor.")
|
: 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
|
color: StudioTheme.Values.themeTextColor
|
||||||
font.pixelSize: StudioTheme.Values.mediumFontSize
|
font.pixelSize: StudioTheme.Values.mediumFontSize
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
@@ -63,7 +63,7 @@ Rectangle {
|
|||||||
buttonSize: root.height
|
buttonSize: root.height
|
||||||
enabled: hasQuick3DImport
|
enabled: hasQuick3DImport
|
||||||
onClicked: root.toolBarAction(ToolBarAction.AddNewMaterial)
|
onClicked: root.toolBarAction(ToolBarAction.AddNewMaterial)
|
||||||
tooltip: qsTr("Add a new material.")
|
tooltip: qsTr("Create new material.")
|
||||||
}
|
}
|
||||||
|
|
||||||
IconButton {
|
IconButton {
|
||||||
|
Reference in New Issue
Block a user