mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 07:25:56 +08:00
Fix icon being ignored in message action buttons
CURA-8112
This commit is contained in:
parent
9d8286d90c
commit
9ddb3b7713
@ -417,6 +417,7 @@ UM.MainWindow
|
|||||||
Cura.PrimaryButton
|
Cura.PrimaryButton
|
||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
|
iconSource: UM.Theme.getIcon(model.icon)
|
||||||
height: UM.Theme.getSize("message_action_button").height
|
height: UM.Theme.getSize("message_action_button").height
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -426,6 +427,7 @@ UM.MainWindow
|
|||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
|
iconSource: UM.Theme.getIcon(model.icon)
|
||||||
height: UM.Theme.getSize("message_action_button").height
|
height: UM.Theme.getSize("message_action_button").height
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -434,6 +436,11 @@ UM.MainWindow
|
|||||||
Cura.TertiaryButton
|
Cura.TertiaryButton
|
||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
|
iconSource: {
|
||||||
|
if (model.icon == null || model.icon == "")
|
||||||
|
return UM.Theme.getIcon("LinkExternal")
|
||||||
|
return UM.Theme.getIcon(model.icon)
|
||||||
|
}
|
||||||
height: UM.Theme.getSize("message_action_button").height
|
height: UM.Theme.getSize("message_action_button").height
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user