Explain empty installed materials/plugins brackets.

part of CURA-7240
This commit is contained in:
Remco Burema 2020-03-31 16:56:45 +02:00
parent c764326c25
commit 90ffa2a772
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

@ -30,11 +30,10 @@ ScrollView
right: parent.right
margins: parent.padding
}
text: catalog.i18nc("@title:tab", "My installed plugins")
text: catalog.i18nc("@title:tab", "Installed plugins")
color: UM.Theme.getColor("text_medium")
font: UM.Theme.getFont("medium")
renderType: Text.NativeRendering
visible: toolbox.pluginsInstalledModel.count > 0
}
Rectangle
@ -50,7 +49,6 @@ ScrollView
height: childrenRect.height + UM.Theme.getSize("default_margin").width
border.color: UM.Theme.getColor("lining")
border.width: UM.Theme.getSize("default_lining").width
visible: toolbox.pluginsInstalledModel.count > 0
Column
{
anchors
@ -64,9 +62,17 @@ ScrollView
{
id: pluginList
model: toolbox.pluginsInstalledModel
delegate: ToolboxInstalledTile { visible: ! model.is_bundled }
delegate: ToolboxInstalledTile { }
}
}
Label
{
visible: toolbox.pluginsInstalledModel.count < 1
padding: UM.Theme.getSize("default_margin").width
text: catalog.i18nc("@info", "No plugin has been installed.")
font: UM.Theme.getFont("medium")
renderType: Text.NativeRendering
}
}
Label
@ -77,11 +83,10 @@ ScrollView
right: parent.right
margins: parent.padding
}
text: catalog.i18nc("@title:tab", "My installed materials")
text: catalog.i18nc("@title:tab", "Installed materials")
color: UM.Theme.getColor("text_medium")
font: UM.Theme.getFont("medium")
renderType: Text.NativeRendering
visible: toolbox.materialsInstalledModel.count > 0
}
Rectangle
@ -97,7 +102,6 @@ ScrollView
height: childrenRect.height + UM.Theme.getSize("default_margin").width
border.color: UM.Theme.getColor("lining")
border.width: UM.Theme.getSize("default_lining").width
visible: toolbox.materialsInstalledModel.count > 0
Column
{
anchors
@ -114,6 +118,14 @@ ScrollView
delegate: ToolboxInstalledTile { }
}
}
Label
{
visible: toolbox.materialsInstalledModel.count < 1
padding: UM.Theme.getSize("default_margin").width
text: catalog.i18nc("@info", "No material has been installed.")
font: UM.Theme.getFont("medium")
renderType: Text.NativeRendering
}
}
Label