mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:28:59 +08:00
Fix background colour for dark theme
The default colour for Rectangle is white. So this Rectangle, not defining a colour, became white. Instead we should use an Item, which cannot have a background colour and thus becomes transparent, making the background colour the same as the button below, which was intended. It's also slightly faster to render. Contributes to issue CURA-6033.
This commit is contained in:
parent
5e98544541
commit
a720cca5b6
@ -73,7 +73,7 @@ Button
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unknown material
|
// Unknown material
|
||||||
Rectangle
|
Item
|
||||||
{
|
{
|
||||||
id: unknownMaterial
|
id: unknownMaterial
|
||||||
height: unknownMaterialMessage.height + UM.Theme.getSize("thin_margin").width / 2
|
height: unknownMaterialMessage.height + UM.Theme.getSize("thin_margin").width / 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user