better set-selected-frame-dark implementation thanks to @DamienCassou