def msg_color(msg_type):
    """Get the color to use for the msg type."""
    return {
        "sent":     0x4caf50,
        "edited":   0xffc107,
        "deleted":  0xff5252,
    }.get(msg_type, 0x000000)