use view settings() instead of loading it from preferences, since
the view settings may be different from the preferences
Merge pull request #14 from randy3k/master

use view settings() instead of loading it from preferences