QmlDesigner: Unify empty text between material editor and browser

Make the text indicating that there are no materials, same size and
content between the material editor and browser.

Change-Id: I6e9e46c30d89aed090b504b256b113e2601b4659
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Mahmoud Badri
2022-05-24 14:43:18 +03:00
parent 71e553f497
commit 4c1e4ed907
2 changed files with 4 additions and 3 deletions

View File

@@ -163,9 +163,10 @@ Item {
}
Text {
text: qsTr("No materials yet.");
text: qsTr("No materials yet.\nClick '+' above to start.")
color: StudioTheme.Values.themeTextColor
font.pixelSize: StudioTheme.Values.mediumFontSize
horizontalAlignment: Text.AlignHCenter
topPadding: 30
anchors.horizontalCenter: parent.horizontalCenter
visible: materialBrowserModel.hasQuick3DImport && materialBrowserModel.isEmpty && searchBox.isEmpty()

View File

@@ -48,10 +48,10 @@ PropertyEditorPane {
height: 150
Text {
text: hasQuick3DImport ? qsTr("No materials yet.\nClick 'Add new material' above to start.")
text: hasQuick3DImport ? qsTr("No materials yet.\nClick '+' above to start.")
: qsTr("Add QtQuick3D module using the Components view to enable the Material Editor.")
color: StudioTheme.Values.themeTextColor
font.pixelSize: StudioTheme.Values.baseFontSize
font.pixelSize: StudioTheme.Values.mediumFontSize
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
width: root.width