Solvent-dependent dual-mode photochromism between T- and P-types in a dipyrrinone derivative.