Cold-mode and hot-mode accretion in galaxy formation: an entropy approach | Synapse