Load current style properties when opening dialog

Fixes #412, and #72.