The layout isn't quite there yet, but it mostly works and I want to have a save point to return to if I tinker too much.
Contributes to issue CURA-8008.
It was quite a hassle to allow the column to grow to the size of its contents. For some reason, things update the size to 0. And the size updates again once the pop-up actually gets opened for the first time, because then the column actually gets populated lazily.
Contributes to issue CURA-8008.
If there's just 1 provider, show the button. If there are multiple, show the menu. If there are 0, also show the button but disable the button.
The behaviour is not yet implemented though. It doesn't actually look at which providers are available and what they do.
Contributes to issue CURA-8008.
All of what we were about to implement is already implemented in ExpandablePopup. So let's re-use that one. That guarantees that it looks consistent too.
Contributes to issue CURA-8008.
And show an error message to the user in that case.
This could happen if the user modified their installation or their resource folder.
Fixes Sentry issue CURA-2P2.
This re-links the widths, heights and paddings such that we can later change the width of the button depending on its contents.
However there is a complication: Buttons automatically change the size of the contents based on the size of the button minus its padding. So making the size of the button in turn depend on its contents causes a binding loop.
To get around this binding loop, we need to manually calculate the size of the button, such that the size of the contents ends up exactly right.
Contributes to issue CURA-8008.
The new button should be consistent with the looks of the tool buttons. I've given it the same size as the inner part of the tool buttons, reworked the background so that it matches. I'm also giving it the 'secondary button' style which is also used for one other button. But that other detail button should get the same style anyway so that's fine too.
I've also turned this icon into an actual button. That way it can get focus when using keyboard navigation and works better with tools for blind and such.
Contributes to issue CURA-8202.
The icon was rendered at a too small size, such that it would get a different line width or look-and-feel than the rest. However making it bigger doesn't properly centre it either.
To centre it we also reduced the margin.
Contributes to issue CURA-8202.
For some reason, the prepare menu is still one pixel too small. I think it's got to do with that one being a layout rather than a normal row.
Contributes to issue CURA-8202.
The styling of the Tertiary button (to not look like a link anymore) and the introduction of the Quatertiary button (as the link button) will happen in a separate ticket in the future.
CURA-8012
* Add new printer PBR_3D.def.json
Adding new Profile definition for PBR 3D.
* Create pbr_3d.extruder_0.def.json
Adding extruder profile for PBR 3D
* Delete pbr_3d.def.json
* Delete pbr_3d.extruder_0.def.json
* Adding PBR 3D Gen-I printer definition.
This is an printer definition for our printer.
* Adding PBR 3D Gen-I Printer Extruder definition
This is an extruder definition for our printer.
* Adding buildplate definition for PBR 3D Gen-I
This is a buildplate definition for our printer.
* Update pbr3d_g1.def.json
* Add files via upload
We'd like to keep the list of manufacturers and printers a bit more fair, without some manufacturers/printers getting more attention than others. The printers didn't have stylised caps here either.
Contributes to issue CURA-8364.
This should be different from the background colour in case of the dark theme. The design asks for a white background for the badge in the dark theme.
Contributes to issue CURA-8247.
There are still some discrepancies (e.g. when the extruder is empty, the Preview tab just keeps it disabled and mentions "Generic PLA" while the Monitor tab shows it disabled by mentions "Empty" in the material. But we consider this acceptable for the time being, since it has been like that for a long time.
CURA-8011