Make number of columns configurable in color dialog

CURA-8938
This commit is contained in:
casper 2022-02-24 15:45:10 +01:00
parent 7dbe5c0f7c
commit 2761aed455

View file

@ -19,6 +19,8 @@ UM.Dialog
margin: UM.Theme.getSize("default_margin").width
property alias swatchGridColumns: colorSwatchGrid.columns
// In this case we would like to let the content of the dialog determine the size of the dialog
// however with the current implementation of the dialog this is not possible, so instead we calculate
// the size of the dialog ourselves.
@ -56,6 +58,7 @@ UM.Dialog
spacing: UM.Theme.getSize("wide_margin").height
GridLayout {
id: colorSwatchGrid
columns: 5
width: childrenRect.width
height: childrenRect.height