mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 13:46:01 +08:00
Tweak codestyle and styling
CURA-336
This commit is contained in:
parent
f55cdbb8eb
commit
b8fddf6527
@ -16,14 +16,14 @@ Cura.MachineAction
|
|||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
id: discoverUM3Action
|
id: discoverUM3Action
|
||||||
SystemPalette { id: palette }
|
SystemPalette { id: palette }
|
||||||
UM.I18nCatalog { id: catalog; name:"cura"}
|
UM.I18nCatalog { id: catalog; name:"cura" }
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: pageTitle
|
id: pageTitle
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: catalog.i18nc("@title", "Connect to Networked Printer")
|
text: catalog.i18nc("@title", "Connect to Networked Printer")
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
font.pointSize: 18;
|
font.pointSize: 18
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
@ -41,8 +41,9 @@ Cura.MachineAction
|
|||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
id: objectListContainer
|
id: objectListContainer
|
||||||
frameVisible: true;
|
frameVisible: true
|
||||||
width: parent.width * 0.5
|
width: parent.width * 0.5
|
||||||
|
height: base.height - parent.y
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
@ -56,7 +57,6 @@ Cura.MachineAction
|
|||||||
id: listview
|
id: listview
|
||||||
model: manager.foundDevices
|
model: manager.foundDevices
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 500
|
|
||||||
currentIndex: activeIndex
|
currentIndex: activeIndex
|
||||||
onCurrentIndexChanged: base.selectedPrinter = listview.model[currentIndex]
|
onCurrentIndexChanged: base.selectedPrinter = listview.model[currentIndex]
|
||||||
Component.onCompleted: manager.startDiscovery()
|
Component.onCompleted: manager.startDiscovery()
|
||||||
@ -98,7 +98,8 @@ Cura.MachineAction
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: base.selectedPrinter ? base.selectedPrinter.name : ""
|
text: base.selectedPrinter ? base.selectedPrinter.name : ""
|
||||||
font.pointSize: 16;
|
font: UM.Theme.getFont("large")
|
||||||
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
Grid
|
Grid
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user