mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 07:44:22 +08:00
Add manage printer link
Contributes to CS-251
This commit is contained in:
parent
2d4fd5649d
commit
1aed8a1fa5
@ -39,7 +39,8 @@ Item
|
|||||||
{
|
{
|
||||||
id: background
|
id: background
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: UM.Theme.getColor("monitor_card_background")
|
// color: UM.Theme.getColor("monitor_card_background")
|
||||||
|
color: "red"
|
||||||
border
|
border
|
||||||
{
|
{
|
||||||
color: UM.Theme.getColor("monitor_card_border")
|
color: UM.Theme.getColor("monitor_card_border")
|
||||||
@ -90,7 +91,7 @@ Item
|
|||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
width: 180 * screenScaleFactor // TODO: Theme!
|
width: 180 * screenScaleFactor // TODO: Theme!
|
||||||
height: printerNameLabel.height + printerFamilyPill.height + 6 * screenScaleFactor // TODO: Theme!
|
height: childrenRect.height
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
@ -135,6 +136,54 @@ Item
|
|||||||
}
|
}
|
||||||
text: printer ? printer.type : ""
|
text: printer ? printer.type : ""
|
||||||
}
|
}
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
id: managePrinterLink
|
||||||
|
anchors {
|
||||||
|
top: printerFamilyPill.bottom
|
||||||
|
topMargin: 6 * screenScaleFactor
|
||||||
|
}
|
||||||
|
height: 18 * screenScaleFactor // TODO: Theme!
|
||||||
|
width: childrenRect.width
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
id: managePrinterText
|
||||||
|
anchors.verticalCenter: managePrinterLink.verticalCenter
|
||||||
|
color: UM.Theme.getColor("monitor_text_link")
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
|
linkColor: UM.Theme.getColor("monitor_text_link")
|
||||||
|
text: catalog.i18nc("@label link to Connect and Cloud interfaces", "Manage printer")
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
}
|
||||||
|
UM.RecolorImage
|
||||||
|
{
|
||||||
|
id: externalLinkIcon
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
left: managePrinterText.right
|
||||||
|
leftMargin: 6 * screenScaleFactor
|
||||||
|
verticalCenter: managePrinterText.verticalCenter
|
||||||
|
}
|
||||||
|
color: UM.Theme.getColor("monitor_text_link")
|
||||||
|
source: UM.Theme.getIcon("external_link")
|
||||||
|
width: 12 * screenScaleFactor
|
||||||
|
height: 12 * screenScaleFactor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
MouseArea
|
||||||
|
{
|
||||||
|
anchors.fill: managePrinterLink
|
||||||
|
onClicked: OutputDevice.openPrintJobControlPanel()
|
||||||
|
onEntered:
|
||||||
|
{
|
||||||
|
manageQueueText.font.underline = true
|
||||||
|
}
|
||||||
|
onExited:
|
||||||
|
{
|
||||||
|
manageQueueText.font.underline = false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MonitorPrinterConfiguration
|
MonitorPrinterConfiguration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user