mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Change warning icon background to the CircleSolid.svg
CURA-8439
This commit is contained in:
parent
e845462e5d
commit
01c4a0f72d
1 changed files with 21 additions and 8 deletions
|
@ -28,20 +28,32 @@ Item
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
visible: configurationList.model.length == 0
|
visible: configurationList.model.length == 0
|
||||||
height: label.height + UM.Theme.getSize("wide_margin").height
|
height: icon.height
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||||
|
Item
|
||||||
Rectangle
|
|
||||||
{
|
{
|
||||||
id: icon
|
id: icon
|
||||||
color: UM.Theme.getColor("warning")
|
width: visible ? UM.Theme.getSize("section_icon").width : 0
|
||||||
width: UM.Theme.getSize("section_icon").width
|
|
||||||
height: width
|
height: width
|
||||||
radius: width / 2
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
UM.RecolorImage
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
anchors.fill:parent
|
id: warningIconBackground
|
||||||
|
height: parent.height
|
||||||
|
width: parent.width
|
||||||
|
sourceSize.width: width
|
||||||
|
sourceSize.height: height
|
||||||
|
source: UM.Theme.getIcon("CircleSolid", "low")
|
||||||
|
color: UM.Theme.getColor("warning")
|
||||||
|
}
|
||||||
|
UM.RecolorImage
|
||||||
|
{
|
||||||
|
id: warningIcon
|
||||||
|
height: parent.height
|
||||||
|
width: parent.width
|
||||||
|
sourceSize.width: width
|
||||||
|
sourceSize.height: height
|
||||||
source: UM.Theme.getIcon("Warning", "low")
|
source: UM.Theme.getIcon("Warning", "low")
|
||||||
color: UM.Theme.getColor("message_warning_icon")
|
color: UM.Theme.getColor("message_warning_icon")
|
||||||
}
|
}
|
||||||
|
@ -51,8 +63,9 @@ Item
|
||||||
id: label
|
id: label
|
||||||
anchors.left: icon.right
|
anchors.left: icon.right
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
// There are two cases that we want to diferenciate, one is when Cura is loading the configurations and the
|
// There are two cases that we want to differenciate, one is when Cura is loading the configurations and the
|
||||||
// other when the connection was lost
|
// other when the connection was lost
|
||||||
text: Cura.MachineManager.printerConnected ?
|
text: Cura.MachineManager.printerConnected ?
|
||||||
catalog.i18nc("@label", "Loading available configurations from the printer...") :
|
catalog.i18nc("@label", "Loading available configurations from the printer...") :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue