mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 23:59:03 +08:00
Explain empty installed materials/plugins brackets.
part of CURA-7240
This commit is contained in:
parent
c764326c25
commit
90ffa2a772
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user