mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:48:58 +08:00
Fix horizontal bar not coloring correct if last item is checkbox
CURA-6598
This commit is contained in:
parent
cc4dc6a27c
commit
e47514d6dd
@ -31,6 +31,7 @@ Item
|
|||||||
RowLayout
|
RowLayout
|
||||||
{
|
{
|
||||||
id: buttonBar
|
id: buttonBar
|
||||||
|
anchors.centerIn: parent
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 0
|
spacing: 0
|
||||||
@ -46,7 +47,6 @@ Item
|
|||||||
// the horizontal bar. The others should essentially not be limited.
|
// the horizontal bar. The others should essentially not be limited.
|
||||||
Layout.maximumWidth: index + 1 === repeater.count ? activeComponent.width: 200000000
|
Layout.maximumWidth: index + 1 === repeater.count ? activeComponent.width: 200000000
|
||||||
height: activeComponent.height
|
height: activeComponent.height
|
||||||
|
|
||||||
property bool isEnabled: model.enabled
|
property bool isEnabled: model.enabled
|
||||||
// The horizontal bar between the checkable options.
|
// The horizontal bar between the checkable options.
|
||||||
// Note that the horizontal bar points towards the previous item.
|
// Note that the horizontal bar points towards the previous item.
|
||||||
@ -55,7 +55,7 @@ Item
|
|||||||
property Item previousItem: repeater.itemAt(index - 1)
|
property Item previousItem: repeater.itemAt(index - 1)
|
||||||
|
|
||||||
height: barSize
|
height: barSize
|
||||||
width: parent.width - activeComponent.width
|
width: buttonBar.width / (repeater.count - 1) - activeComponent.width - 2
|
||||||
color: defaultItemColor
|
color: defaultItemColor
|
||||||
|
|
||||||
anchors
|
anchors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user