|
@@ -9,24 +9,25 @@ import QtQuick.Layouts 1.2
|
|
|
import UM 1.2 as UM
|
|
|
import Cura 1.0 as Cura
|
|
|
|
|
|
-import "Menus"
|
|
|
-
|
|
|
Item
|
|
|
{
|
|
|
id: globalProfileRow
|
|
|
- height: UM.Theme.getSize("print_setup_item").height
|
|
|
+ height: childrenRect.height
|
|
|
|
|
|
Label
|
|
|
{
|
|
|
id: globalProfileLabel
|
|
|
- text: catalog.i18nc("@label","Profile:")
|
|
|
- textFormat: Text.PlainText
|
|
|
- width: Math.round(parent.width * 0.45 - UM.Theme.getSize("thick_margin").width - 2)
|
|
|
+ anchors
|
|
|
+ {
|
|
|
+ top: parent.top
|
|
|
+ bottom: parent.bottom
|
|
|
+ left: parent.left
|
|
|
+ right: globalProfileSelection.left
|
|
|
+ }
|
|
|
+ text: catalog.i18nc("@label", "Profile")
|
|
|
font: UM.Theme.getFont("default")
|
|
|
color: UM.Theme.getColor("text")
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
- anchors.top: parent.top
|
|
|
- anchors.bottom: parent.bottom
|
|
|
}
|
|
|
|
|
|
ToolButton
|
|
@@ -34,20 +35,30 @@ Item
|
|
|
id: globalProfileSelection
|
|
|
|
|
|
text: generateActiveQualityText()
|
|
|
- width: Math.round(parent.width * 0.55)
|
|
|
- height: UM.Theme.getSize("setting_control").height
|
|
|
- anchors.left: globalProfileLabel.right
|
|
|
- anchors.right: parent.right
|
|
|
+ width: UM.Theme.getSize("print_setup_big_dropdown").width
|
|
|
+ height: UM.Theme.getSize("print_setup_big_dropdown").height
|
|
|
+ anchors
|
|
|
+ {
|
|
|
+ top: parent.top
|
|
|
+ right: parent.right
|
|
|
+ }
|
|
|
tooltip: Cura.MachineManager.activeQualityOrQualityChangesName
|
|
|
style: UM.Theme.styles.sidebar_header_button
|
|
|
activeFocusOnPress: true
|
|
|
- menu: ProfileMenu { }
|
|
|
+ menu: Cura.ProfileMenu { }
|
|
|
|
|
|
- function generateActiveQualityText () {
|
|
|
- var result = Cura.MachineManager.activeQualityOrQualityChangesName;
|
|
|
+ function generateActiveQualityText()
|
|
|
+ {
|
|
|
+ var result = Cura.MachineManager.activeQualityOrQualityChangesName
|
|
|
+ if (Cura.MachineManager.isActiveQualityExperimental)
|
|
|
+ {
|
|
|
+ result += " (Experimental)"
|
|
|
+ }
|
|
|
|
|
|
- if (Cura.MachineManager.isActiveQualitySupported) {
|
|
|
- if (Cura.MachineManager.activeQualityLayerHeight > 0) {
|
|
|
+ if (Cura.MachineManager.isActiveQualitySupported)
|
|
|
+ {
|
|
|
+ if (Cura.MachineManager.activeQualityLayerHeight > 0)
|
|
|
+ {
|
|
|
result += " <font color=\"" + UM.Theme.getColor("text_detail") + "\">"
|
|
|
result += " - "
|
|
|
result += Cura.MachineManager.activeQualityLayerHeight + "mm"
|
|
@@ -63,15 +74,15 @@ Item
|
|
|
id: customisedSettings
|
|
|
|
|
|
visible: Cura.MachineManager.hasUserSettings
|
|
|
- height: Math.round(parent.height * 0.6)
|
|
|
- width: Math.round(parent.height * 0.6)
|
|
|
+ width: UM.Theme.getSize("print_setup_icon").width
|
|
|
+ height: UM.Theme.getSize("print_setup_icon").height
|
|
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
anchors.right: parent.right
|
|
|
anchors.rightMargin: Math.round(UM.Theme.getSize("setting_preferences_button_margin").width - UM.Theme.getSize("thick_margin").width)
|
|
|
|
|
|
color: hovered ? UM.Theme.getColor("setting_control_button_hover") : UM.Theme.getColor("setting_control_button");
|
|
|
- iconSource: UM.Theme.getIcon("star");
|
|
|
+ iconSource: UM.Theme.getIcon("star")
|
|
|
|
|
|
onClicked:
|
|
|
{
|
|
@@ -81,7 +92,7 @@ Item
|
|
|
onEntered:
|
|
|
{
|
|
|
var content = catalog.i18nc("@tooltip","Some setting/override values are different from the values stored in the profile.\n\nClick to open the profile manager.")
|
|
|
- base.showTooltip(globalProfileRow, Qt.point(-UM.Theme.getSize("thick_margin").width, 0), content)
|
|
|
+ base.showTooltip(globalProfileRow, Qt.point(-UM.Theme.getSize("default_margin").width, 0), content)
|
|
|
}
|
|
|
onExited: base.hideTooltip()
|
|
|
}
|