omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Ui.image only displays the silhouette?

    Pythonista
    emoji ui.image image
    2
    4
    2969
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bjucha
      Bjucha last edited by ccc

      Hello!

      B1 = ui.Button()
      B1.image = ui.Image.named('emj:Skull')
      

      it only displays the silhouette and not the image itself.
      To clarify I want the button to look like a skull and not have an icon on the button with the skull.

      However it does not look so good since it's only displays the shape/silhouette and not image

      What Im doing wrong?

      1 Reply Last reply Reply Quote 0
      • mikael
        mikael last edited by

        Use original rendering mode to get the "normal" image.

        E.g.:

        icon =   ui.Image(image_name).with_rendering_mode(ui.RENDERING_MODE_ORIGINAL)
        
        Bjucha 2 Replies Last reply Reply Quote 2
        • Bjucha
          Bjucha @mikael last edited by

          @mikael ok gonna try that. Thanks!

          1 Reply Last reply Reply Quote 0
          • Bjucha
            Bjucha @mikael last edited by

            @mikael it worked! Looks great now. Thank you

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors