diff options
author | c.lamboo <casperlamboo@gmail.com> | 2022-06-06 22:45:48 +0300 |
---|---|---|
committer | c.lamboo <casperlamboo@gmail.com> | 2022-06-06 22:45:48 +0300 |
commit | 2f22002fd59e2be44934c0ff5c904c93a03fd690 (patch) | |
tree | 54f239d898619203b80a806cdfeef9959923b37e /resources | |
parent | 781723fbbc54cd625b8bc3090705a17b602d5a0e (diff) |
Add header and footer components to Dialog
This provides control over how the header (the header is newly introduced in this commit) and footer components are rendered. The footer is the area where the `leftButtoons` and `rightButtons` are rendered. Having control over how this is rendered introduces for instance the possibility to render the buttons within a warning area (an example of this can bee seen in the WorkspaceDialog).
CURA-6990
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/ColorDialog.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/ColorDialog.qml b/resources/qml/ColorDialog.qml index 49adcf0cca..e5216a3404 100644 --- a/resources/qml/ColorDialog.qml +++ b/resources/qml/ColorDialog.qml @@ -29,7 +29,7 @@ UM.Dialog // the size of the dialog ourselves. // Ugly workaround for windows having overlapping elements due to incorrect dialog width minimumWidth: content.width + (Qt.platform.os == "windows" ? 4 * margin : 2 * margin) - minimumHeight: content.height + buttonArea.height + (Qt.platform.os == "windows" ? 5 * margin : 3 * margin) + minimumHeight: content.height + footer.height + (Qt.platform.os == "windows" ? 5 * margin : 3 * margin) property alias color: colorInput.text property var swatchColors: [ |