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

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
<path d="M24,44,7,33.4V14.6L24,4,41,14.6V33.4ZM9,32.3l15,9.3,15-9.3V15.7L24,6.4,9,15.7Z"/>
</svg>

After

Width:  |  Height:  |  Size: 184 B

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
{

View file

@ -68,9 +68,11 @@ UM.Dialog{
Image
{
id: packageIcon
source: model.icon_url || "../../images/logobot.svg"
source: model.icon_url || "../../images/placeholder.svg"
height: lineHeight
width: height
sourceSize.height: height
sourceSize.width: width
mipmap: true
fillMode: Image.PreserveAspectFit
}
@ -111,9 +113,11 @@ UM.Dialog{
Image
{
id: packageIcon
source: model.icon_url || "../../images/logobot.svg"
source: model.icon_url || "../../images/placeholder.svg"
height: lineHeight
width: height
sourceSize.height: height
sourceSize.width: width
mipmap: true
fillMode: Image.PreserveAspectFit
}

View file

@ -53,8 +53,10 @@ UM.Dialog
id: icon
width: 30 * screenScaleFactor
height: width
sourceSize.width: width
sourceSize.height: height
fillMode: Image.PreserveAspectFit
source: licenseModel.iconUrl || "../../images/logobot.svg"
source: licenseModel.iconUrl || "../../images/placeholder.svg"
mipmap: true
}

View file

@ -33,7 +33,7 @@ Item
width: UM.Theme.getSize("toolbox_thumbnail_medium").width
height: UM.Theme.getSize("toolbox_thumbnail_medium").height
fillMode: Image.PreserveAspectFit
source: details.icon_url || "../../images/logobot.svg"
source: details.icon_url || "../../images/placeholder.svg"
mipmap: true
anchors
{

View file

@ -46,8 +46,12 @@ Item
{
anchors.fill: parent
fillMode: Image.PreserveAspectFit
source: details === null ? "" : (details.icon_url || "../../images/logobot.svg")
source: details === null ? "" : (details.icon_url || "../../images/placeholder.svg")
mipmap: true
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
}
}