forked from qt-creator/qt-creator
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:
@@ -163,9 +163,10 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: qsTr("No materials yet.");
|
text: qsTr("No materials yet.\nClick '+' above to start.")
|
||||||
color: StudioTheme.Values.themeTextColor
|
color: StudioTheme.Values.themeTextColor
|
||||||
font.pixelSize: StudioTheme.Values.mediumFontSize
|
font.pixelSize: StudioTheme.Values.mediumFontSize
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
topPadding: 30
|
topPadding: 30
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
visible: materialBrowserModel.hasQuick3DImport && materialBrowserModel.isEmpty && searchBox.isEmpty()
|
visible: materialBrowserModel.hasQuick3DImport && materialBrowserModel.isEmpty && searchBox.isEmpty()
|
||||||
|
@@ -48,10 +48,10 @@ PropertyEditorPane {
|
|||||||
height: 150
|
height: 150
|
||||||
|
|
||||||
Text {
|
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.")
|
: qsTr("Add QtQuick3D module using the Components view to enable the Material Editor.")
|
||||||
color: StudioTheme.Values.themeTextColor
|
color: StudioTheme.Values.themeTextColor
|
||||||
font.pixelSize: StudioTheme.Values.baseFontSize
|
font.pixelSize: StudioTheme.Values.mediumFontSize
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
width: root.width
|
width: root.width
|
||||||
|
Reference in New Issue
Block a user