Skip to content

IconImage is not the correct size and does not scale #555

Description

@jmilloy

I am trying to use images in PushButton icons.

PushButton:
    icon = Icon(images=[IconImage(image=load_image('my_image.svg'))])

The image is displayed, but it is neither the size of the image nor does it scale with the PushButton size (as defined in constraints). I tried setting the raw_size and size for the Image but that had no affect. It is displayed very small, like 6x6, but the image in 64x64 and the PushButton is 96x100. I tried with both an svg and a png.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions