using double instead of float for scalefactor

- In fact, Cocoa(GUI Library of Mac) use type ``double`` for scale factor
- previous pr https://github.com/haiwen/seafile-client/pull/165