mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 12:25:53 +08:00
Add icons to the left of titles
Align title text with values in table CURA-9424
This commit is contained in:
parent
b01ff2f57e
commit
f72c980c20
@ -93,6 +93,7 @@ UM.Dialog
|
|||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
anchors.leftMargin: UM.Theme.getSize("default_margin")
|
||||||
|
|
||||||
UM.TooltipArea
|
UM.TooltipArea
|
||||||
{
|
{
|
||||||
@ -109,6 +110,7 @@ UM.Dialog
|
|||||||
id: open_with_label
|
id: open_with_label
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
|
||||||
text: catalog.i18nc("@action:label", "Open With")
|
text: catalog.i18nc("@action:label", "Open With")
|
||||||
font: UM.Theme.getFont("default_bold")
|
font: UM.Theme.getFont("default_bold")
|
||||||
}
|
}
|
||||||
@ -162,18 +164,36 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
id: printerSettingsTitleRow
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
|
||||||
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
|
UM.ColorImage
|
||||||
|
{
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
source: UM.Theme.getIcon("Printer")
|
||||||
|
height: UM.Theme.getSize("medium_button_icon").height
|
||||||
|
width: height
|
||||||
|
}
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@action:label", "Printer settings")
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
font: UM.Theme.getFont("default_bold")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
|
id: printerSettingsValuesTable
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
leftPadding: UM.Theme.getSize("medium_button_icon").width + UM.Theme.getSize("default_margin").width
|
||||||
UM.Label
|
anchors.top: printerSettingsTitleRow.bottom
|
||||||
{
|
|
||||||
id: printer_settings_label
|
|
||||||
text: catalog.i18nc("@action:label", "Printer settings")
|
|
||||||
font: UM.Theme.getFont("default_bold")
|
|
||||||
}
|
|
||||||
|
|
||||||
Row
|
Row
|
||||||
{
|
{
|
||||||
@ -239,17 +259,36 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Column
|
Row
|
||||||
{
|
{
|
||||||
width: parent.width
|
id: profileSettingsTitleRow
|
||||||
height: childrenRect.height
|
anchors.top: parent.top
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
|
||||||
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
|
UM.ColorImage
|
||||||
|
{
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
source: UM.Theme.getIcon("Printer")
|
||||||
|
height: UM.Theme.getSize("medium_button_icon").height
|
||||||
|
width: height
|
||||||
|
}
|
||||||
UM.Label
|
UM.Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@action:label", "Profile settings")
|
text: catalog.i18nc("@action:label", "Profile settings")
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
font: UM.Theme.getFont("default_bold")
|
font: UM.Theme.getFont("default_bold")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Column
|
||||||
|
{
|
||||||
|
id: profileSettingsValuesTable
|
||||||
|
width: parent.width
|
||||||
|
height: childrenRect.height
|
||||||
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
leftPadding: UM.Theme.getSize("medium_button_icon").width + UM.Theme.getSize("default_margin").width
|
||||||
|
anchors.top: profileSettingsTitleRow.bottom
|
||||||
|
|
||||||
Row
|
Row
|
||||||
{
|
{
|
||||||
@ -356,24 +395,35 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
id: materialSettingsTitleRow
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
|
||||||
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
|
UM.ColorImage
|
||||||
|
{
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
source: UM.Theme.getIcon("Printer")
|
||||||
|
height: UM.Theme.getSize("medium_button_icon").height
|
||||||
|
width: height
|
||||||
|
}
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@action:label", "Material settings")
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
font: UM.Theme.getFont("default_bold")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
Row
|
leftPadding: UM.Theme.getSize("medium_button_icon").width + UM.Theme.getSize("default_margin").width
|
||||||
{
|
anchors.top: materialSettingsTitleRow.bottom
|
||||||
height: childrenRect.height
|
|
||||||
width: parent.width
|
|
||||||
spacing: UM.Theme.getSize("narrow_margin").width
|
|
||||||
|
|
||||||
UM.Label
|
|
||||||
{
|
|
||||||
text: catalog.i18nc("@action:label", "Material settings")
|
|
||||||
font: UM.Theme.getFont("default_bold")
|
|
||||||
width: (parent.width / 3) | 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
@ -398,67 +448,92 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Column
|
Item
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
|
||||||
|
|
||||||
UM.Label
|
Row
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@action:label", "Setting visibility")
|
id: visibilitySettingsTitleRow
|
||||||
font: UM.Theme.getFont("default_bold")
|
anchors.top: parent.top
|
||||||
|
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
|
||||||
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
|
UM.ColorImage
|
||||||
|
{
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
source: UM.Theme.getIcon("Printer")
|
||||||
|
height: UM.Theme.getSize("medium_button_icon").height
|
||||||
|
width: height
|
||||||
|
}
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@action:label", "Setting visibility")
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
font: UM.Theme.getFont("default_bold")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Column
|
||||||
|
{
|
||||||
|
width: parent.width
|
||||||
|
height: childrenRect.height
|
||||||
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
leftPadding: UM.Theme.getSize("medium_button_icon").width + UM.Theme.getSize("default_margin").width
|
||||||
|
anchors.top: visibilitySettingsTitleRow.bottom
|
||||||
|
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
width: parent.width
|
||||||
|
height: childrenRect.height
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@action:label", "Mode")
|
||||||
|
width: (parent.width / 3) | 0
|
||||||
|
}
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
text: manager.activeMode
|
||||||
|
width: (parent.width / 3) | 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
width: parent.width
|
||||||
|
height: childrenRect.height
|
||||||
|
visible: manager.hasVisibleSettingsField
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@action:label", "Visible settings:")
|
||||||
|
width: (parent.width / 3) | 0
|
||||||
|
}
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@action:label", "%1 out of %2" ).arg(manager.numVisibleSettings).arg(manager.totalNumberOfSettings)
|
||||||
|
width: (parent.width / 3) | 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Row
|
Row
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
UM.Label
|
visible: manager.hasObjectsOnPlate
|
||||||
|
UM.ColorImage
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@action:label", "Mode")
|
width: warningLabel.height
|
||||||
width: (parent.width / 3) | 0
|
height: width
|
||||||
|
source: UM.Theme.getIcon("Information")
|
||||||
|
color: UM.Theme.getColor("text")
|
||||||
}
|
}
|
||||||
UM.Label
|
UM.Label
|
||||||
{
|
{
|
||||||
text: manager.activeMode
|
id: warningLabel
|
||||||
width: (parent.width / 3) | 0
|
text: catalog.i18nc("@action:warning", "Loading a project will clear all models on the build plate.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Row
|
|
||||||
{
|
|
||||||
width: parent.width
|
|
||||||
height: childrenRect.height
|
|
||||||
visible: manager.hasVisibleSettingsField
|
|
||||||
UM.Label
|
|
||||||
{
|
|
||||||
text: catalog.i18nc("@action:label", "Visible settings:")
|
|
||||||
width: (parent.width / 3) | 0
|
|
||||||
}
|
|
||||||
UM.Label
|
|
||||||
{
|
|
||||||
text: catalog.i18nc("@action:label", "%1 out of %2" ).arg(manager.numVisibleSettings).arg(manager.totalNumberOfSettings)
|
|
||||||
width: (parent.width / 3) | 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Row
|
|
||||||
{
|
|
||||||
width: parent.width
|
|
||||||
height: childrenRect.height
|
|
||||||
visible: manager.hasObjectsOnPlate
|
|
||||||
UM.ColorImage
|
|
||||||
{
|
|
||||||
width: warningLabel.height
|
|
||||||
height: width
|
|
||||||
source: UM.Theme.getIcon("Information")
|
|
||||||
color: UM.Theme.getColor("text")
|
|
||||||
}
|
|
||||||
UM.Label
|
|
||||||
{
|
|
||||||
id: warningLabel
|
|
||||||
text: catalog.i18nc("@action:warning", "Loading a project will clear all models on the build plate.")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user