This commit is contained in:
Liang Ding 2014-11-02 10:48:34 +08:00
parent bb58dad40c
commit b7634fa4a5
3 changed files with 6 additions and 3 deletions

View File

@ -155,9 +155,10 @@ func addUser(username, password string) string {
dir := filepath.Dir(firstUserWorkspace)
workspace := filepath.Join(dir, username)
newUser := &conf.User{Name: username, Password: password, Workspace: workspace,
Locale: conf.Wide.Locale, GoFormat: "gofmt", Editor: &conf.Editor{FontSize: "10px"}}
conf.Wide.Users = append(conf.Wide.Users, newUser)
conf.Wide.Users = append(conf.Wide.Users,
&conf.User{Name: username, Password: password, Workspace: workspace,
Locale: conf.Wide.Locale, GoFormat: "gofmt", FontFamily: "Helvetica", FontSize: "inherit",
Editor: &conf.Editor{FontFamily: "Consolas, 'Courier New', monospace", FontSize: "inherit"}})
if !conf.Save() {
return UserCreateError

View File

@ -2,6 +2,7 @@ body,
input,
button {
font-family: Helvetica;
font-size: inherit;
}
.edit-exprinfo,

View File

@ -2,6 +2,7 @@ body,
input,
button {
font-family: {{.user.FontFamily}};
font-size: {{.user.FontSize}};
}
.edit-exprinfo,