From 2761aed4556e1292483f0acd9356d232456f977a Mon Sep 17 00:00:00 2001 From: casper Date: Thu, 24 Feb 2022 15:45:10 +0100 Subject: [PATCH] Make number of columns configurable in color dialog CURA-8938 --- resources/qml/ColorDialog.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/qml/ColorDialog.qml b/resources/qml/ColorDialog.qml index 09045581e4..646d23c209 100644 --- a/resources/qml/ColorDialog.qml +++ b/resources/qml/ColorDialog.qml @@ -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