Fixes #5108: Removes hardcoded styles from advanced settings

Also rewrites to use input/checkbox views.