A fluorescent "2 in 1" proton sensor and polarity probe based on core substituted naphthalene diimide.