This should make it a bit easier for others to create a new definition since there is less for them to 'have to know'. Previously they would be required to fill in as category Other, but now they can just leave the category out.
Just leave it to the actual icons to provide colour. It may be a bit harder to modify the colours in a different theme then, but now we can have multi-colour icons (as per the new theme requires).
Contributes to issue CURA-4148.
Changed rects with rounded corners into circles. Merged two circles that depicted a circle-with-outline into one circle with an outline. Changed the outline path to a polyline with a stroke.
Contributes to issue CURA-4148.
Removed unnecessary transforms. Changed square rects which had their corner radius set to half their width into actual circles. Merged some glyphs that were a stroke and a background into one glyph with an actual stroke and background. Applied necessary transforms to actual coordinates. Dereferenced xlink symbols that were used only once.
Contributes to issue CURA-4148.
CURA-4186
- The UI shouldn't be bound to the limit_to_extruder stack, it should
always be bound to the per-object stack.
- The ActiveTool.getValue() calls cannot be bound in QML, so use a
Connections to update the values based on signals.
It now constrains the value to be no less than 0 when z_offset_layer_0 is negative or
z_offset_taper_layers is 0, otherwise the value must be such that the gap between subsequent
layers is not less than 80% of the normal layer height.
If the print head was lowered for the first layer, the tapering will always cause the
subsequent layers to be at least the normal layer height above the previous layer so the
tapering can occur over any number of layers.
On the other hand, if the print head was raised for the first layer, we demand that either
tapering is not used (value is 0) or that the tapering occurs over sufficient layers so that
the inter-layer gaps are not too small.
Now the offset cannot be such that the first layer would be less than 1/2 of its normal height.
Warnings shown when first layer is less than 80% or more than 200% of its normal height.
Also from the UX designers: A new dark theme that is exactly the same as the default theme except the background of the scene.
Contributes to issue CURA-4148.
The section size adjusts the size of a setting item, and the actual control is centred within that space so in effect it controls the margins above and below each setting control.
Contributes to issue CURA-4148.
CURA-4204
When a new material is created during project file loading, the material
for each stack is set according to the parent material ID, but actually
the child material should be used. This fix uses a hack to find the
corresponding child material for a stack so when a user chooses to
create a new material during project file loading, the material can be
correctly set.
Because the scene may have a different background colour than the rest, we need to be able to have inverted colours for that part.
Contributes to issue CURA-4148.
This theme item is broken by nature since the theme itself allows you to change the colours such that these text elements don't get inversed colours at all. Instead I'm going to use text_emphasis for these which is currently the same. If ever they need to get different colours for these items than the normal colour, the theme item will have to be split up.
Contributes to issue CURA-4148.
Sadly the colour of this icon is hard-coded into the image... I didn't find any other solution to append an inline image after a multi-line text.
Contributes to issue CURA-4148.