Finer-grained template selector for theme compat