mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 08:47:50 -06:00
Tweak "Add Printer" dialog
This commit is contained in:
parent
aa2563b891
commit
282a0d307d
1 changed files with 10 additions and 9 deletions
|
@ -129,30 +129,31 @@ Item
|
||||||
|
|
||||||
section.property: "manufacturer"
|
section.property: "manufacturer"
|
||||||
section.delegate: Button {
|
section.delegate: Button {
|
||||||
text: section + " "
|
text: section
|
||||||
style: ButtonStyle {
|
style: ButtonStyle {
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
id: manufacturerBackground
|
|
||||||
opacity: 0.3
|
|
||||||
border.width: 0
|
border.width: 0
|
||||||
color: control.hovered ? palette.light : "transparent";
|
color: "transparent";
|
||||||
height: UM.Theme.sizes.standard_list_lineheight.height
|
height: UM.Theme.sizes.standard_list_lineheight.height
|
||||||
|
width: machineList.width
|
||||||
}
|
}
|
||||||
label: Text {
|
label: Text {
|
||||||
horizontalAlignment: Text.AlignLeft
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: UM.Theme.sizes.standard_arrow.width + UM.Theme.sizes.default_margin.width
|
||||||
text: control.text
|
text: control.text
|
||||||
color: palette.windowText
|
color: palette.windowText
|
||||||
font.bold: true
|
font.bold: true
|
||||||
UM.RecolorImage {
|
UM.RecolorImage {
|
||||||
id: downArrow
|
id: downArrow
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: parent.right
|
anchors.right: parent.left
|
||||||
|
anchors.rightMargin: UM.Theme.sizes.default_margin.width
|
||||||
width: UM.Theme.sizes.standard_arrow.width
|
width: UM.Theme.sizes.standard_arrow.width
|
||||||
height: UM.Theme.sizes.standard_arrow.height
|
height: UM.Theme.sizes.standard_arrow.height
|
||||||
sourceSize.width: width
|
sourceSize.width: width
|
||||||
sourceSize.height: width
|
sourceSize.height: width
|
||||||
color: palette.windowText
|
color: palette.windowText
|
||||||
source: base,activeManufacturer == section ? UM.Theme.icons.arrow_bottom : UM.Theme.icons.arrow_right
|
source: base.activeManufacturer == section ? UM.Theme.icons.arrow_bottom : UM.Theme.icons.arrow_right
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -183,7 +184,7 @@ Item
|
||||||
ListView.view.currentIndex = index;
|
ListView.view.currentIndex = index;
|
||||||
machineName.text = getMachineName()
|
machineName.text = getMachineName()
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: author
|
id: author
|
||||||
|
@ -195,7 +196,7 @@ Item
|
||||||
anchors.baselineOffset: -UM.Theme.sizes.standard_list_lineheight.height / 16
|
anchors.baselineOffset: -UM.Theme.sizes.standard_list_lineheight.height / 16
|
||||||
color: palette.mid
|
color: palette.mid
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
states: State {
|
states: State {
|
||||||
name: "collapsed";
|
name: "collapsed";
|
||||||
when: base.activeManufacturer != model.manufacturer;
|
when: base.activeManufacturer != model.manufacturer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue