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.


    Change the colour of icons and emojis

    Pythonista
    2
    2
    1415
    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.
    • daveM
      daveM last edited by

      In the icons and emojis, there are a selection of black and white “things”, I’ll call them icons until corrected.

      I’ve generally just been using the black ones but I’ve decided I want to display one in red and change the colour at will.

      Are you in fact able to do that? ie just change any black to any arbitrary RGB value

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @daveM last edited by

        @daveM If I correctly understand, try:

        import ui
        v = ui.View()
        bi = ui.ButtonItem()
        bi.image = ui.Image.named('iob:bag_32')
        bi.tint_color = 'green'
        v.right_button_items = (bi,)
        b = ui.Button()
        b.frame = (10,10,32,32)
        b.tint_color = 'red'
        b.image = ui.Image.named('iob:bag_32')
        v.add_subview(b)
        v.present('sheet')
        

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