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
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 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')