Generalized the WindowSettings class