This commit is contained in:
parent
bb58dad40c
commit
b7634fa4a5
|
@ -155,9 +155,10 @@ func addUser(username, password string) string {
|
||||||
dir := filepath.Dir(firstUserWorkspace)
|
dir := filepath.Dir(firstUserWorkspace)
|
||||||
workspace := filepath.Join(dir, username)
|
workspace := filepath.Join(dir, username)
|
||||||
|
|
||||||
newUser := &conf.User{Name: username, Password: password, Workspace: workspace,
|
conf.Wide.Users = append(conf.Wide.Users,
|
||||||
Locale: conf.Wide.Locale, GoFormat: "gofmt", Editor: &conf.Editor{FontSize: "10px"}}
|
&conf.User{Name: username, Password: password, Workspace: workspace,
|
||||||
conf.Wide.Users = append(conf.Wide.Users, newUser)
|
Locale: conf.Wide.Locale, GoFormat: "gofmt", FontFamily: "Helvetica", FontSize: "inherit",
|
||||||
|
Editor: &conf.Editor{FontFamily: "Consolas, 'Courier New', monospace", FontSize: "inherit"}})
|
||||||
|
|
||||||
if !conf.Save() {
|
if !conf.Save() {
|
||||||
return UserCreateError
|
return UserCreateError
|
||||||
|
|
|
@ -2,6 +2,7 @@ body,
|
||||||
input,
|
input,
|
||||||
button {
|
button {
|
||||||
font-family: Helvetica;
|
font-family: Helvetica;
|
||||||
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-exprinfo,
|
.edit-exprinfo,
|
||||||
|
|
|
@ -2,6 +2,7 @@ body,
|
||||||
input,
|
input,
|
||||||
button {
|
button {
|
||||||
font-family: {{.user.FontFamily}};
|
font-family: {{.user.FontFamily}};
|
||||||
|
font-size: {{.user.FontSize}};
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-exprinfo,
|
.edit-exprinfo,
|
||||||
|
|
Loading…
Reference in New Issue