26 Commits

Author SHA1 Message Date
Casper Lamboo
e558752ed0
Merge pull request #13972 from Ultimaker/CURA-9793_extend_recommended_print_settings
[CURA-9793] Extend recommended print settings
2022-12-12 14:38:46 +01:00
c.lamboo
7e8eca3b03 Fix size of ColorDialog
CURA-9997
2022-12-12 11:58:22 +01:00
Joey de l'Arago
f601229390 Move Validators to UM, so they can be used in UM components.
Update all TextFieldWithUnit to use our FloatValidator. This component now has proper styling when the input is invalid. The DoubleValidator was flagging numbers with a "." in them as an incorrect input (I assume this is because the region was set to europe on the OS where "," is common). The workaround is to use our FloatValidator which validates both "." and ","

CURA-9793
2022-12-07 16:27:42 +01:00
Joey de l'Arago
487bf41a7b Add validators to project.
CURA-9793
2022-11-30 16:55:04 +01:00
c.lamboo
2f22002fd5 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
2022-06-06 21:45:48 +02:00
c.lamboo
45bc498c7f Replace RecolorImage with ColorImage
CURA-8640
2022-04-08 15:55:34 +02:00
j.delarago
2ffcfafc77 Some place RegularExpressionValidator can't be found in QtQuick 2.10 but can be in 2.15 so all files using RegularExpressionValidator have been bumped to latest QtQuick
CURA-8640
2022-04-05 16:10:39 +02:00
j.delarago
359bcc1bee Textfield was in incorrect style
CURA-8640
2022-04-04 11:09:50 +02:00
j.delarago
e2e0a5cdee Inheriting components don't have full access to the context of their parent in QT6 (I assume?)
The buttonRow in Dialog must be exposed through an alias now (buttonArea).

This fixes minimumHeight failing to evaluate buttonRow.height

CURA-8640
2022-04-04 11:08:29 +02:00
j.delarago
2f96f7b410 RegularExpressionValidator requires newer version of QtQuick
CURA-8640
2022-04-04 10:45:00 +02:00
c.lamboo
3c9e2a1b08 Update RegExpValidator to RegularExpressionValidator
Due to Qt6 API change

CURA-8640
2022-03-30 15:10:37 +02:00
j.delarago
8a182b1f3f Workaround for windows not giving dialogs the correct width.
CURA-8921
2022-03-14 16:41:53 +01:00
Remco Burema
37ae1cd69d Workaround on Windows.
part of CURA-8938
2022-03-02 18:05:50 +01:00
Casper Lamboo
4853350638
make onClicked action a one-liner
Co-authored-by: Jaime van Kessel <nallath@gmail.com>
2022-03-01 17:49:14 +01:00
casper
53b31e816a Set size of color swatch from theme
CURA-8983
2022-03-01 16:16:53 +01:00
casper
2761aed455 Make number of columns configurable in color dialog
CURA-8938
2022-02-24 15:45:10 +01:00
casper
7dbe5c0f7c Change some margins
CURA-8938
2022-02-24 15:44:46 +01:00
casper
9b06849955 Let the content of the color dialog determine the size of the dialog
CURA-8938
2022-02-24 15:43:22 +01:00
casper
301d68ebf2 Update swatches on swatch color property changed
CURA-8938
2022-02-24 15:42:27 +01:00
casper
0786ff2c6b Change variable names
"swatch" is a more descriptive variable name for this usecase

CURA-8938
2022-02-17 09:50:38 +01:00
casper
02a6cc6e1d Improve visual appearance of ColorDialog
According to the figma design

CURA-8938
2022-02-16 23:43:54 +01:00
casper
ca0d84dcae Always prefix text in ColorDialog with a hashtag
CURA 8687
2022-02-11 13:48:57 +01:00
casper
959caece90 Make input field in ColorDialog selectable by mouse
CURA 8687
2022-02-11 13:45:03 +01:00
casper
7f95dc98e6 Translate text within the color picker
CURA 8687
2022-02-11 13:27:29 +01:00
Jaime van Kessel
c1d5526537 Add some documentation to ColorDialog
CURA-8687
2022-02-11 11:08:11 +01:00
casper
fca6ef29ae Move ColorDialog to Cura repo
Move component to the Cura repo as `Cura.SecondaryButton` and
`Cura.PrimaryButton` are used.

CURA 8687
2022-02-10 18:06:43 +01:00