Merge pull request #7144 from Ultimaker/CURA-7162/replace_robot_with_placeholder

CURA-7162/Replace the default logobot.svg with a new placeholder
This commit is contained in:
konskarm 2020-03-30 15:05:37 +02:00 committed by GitHub
commit bba6a5cc39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 7 deletions

View file

@ -66,8 +66,10 @@ Item
anchors.centerIn: parent
width: UM.Theme.getSize("toolbox_thumbnail_small").width - UM.Theme.getSize("wide_margin").width
height: UM.Theme.getSize("toolbox_thumbnail_small").height - UM.Theme.getSize("wide_margin").width
sourceSize.width: width
sourceSize.height: height
fillMode: Image.PreserveAspectFit
source: model.icon_url || "../../images/logobot.svg"
source: model.icon_url || "../../images/placeholder.svg"
mipmap: true
}
UM.RecolorImage

View file

@ -22,8 +22,10 @@ Rectangle
id: thumbnail
height: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height
width: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height
sourceSize.height: height
sourceSize.width: width
fillMode: Image.PreserveAspectFit
source: model.icon_url || "../../images/logobot.svg"
source: model.icon_url || "../../images/placeholder.svg"
mipmap: true
anchors
{