ui/core: store snap/gap settings
code cleanups