Add new parameter to config: default_theme.

This commit is contained in:
Anton Chevychalov
2016-05-12 15:11:10 +03:00
committed by acmnu
parent 88b2f48493
commit c6744925c4
4 changed files with 11 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ import (
"github.com/grafana/grafana/pkg/bus"
m "github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/setting"
)
func init() {
@@ -26,7 +28,7 @@ func GetPreferencesWithDefaults(query *m.GetPreferencesWithDefaultsQuery) error
}
res := &m.Preferences{
Theme: "dark",
Theme: setting.DefaultTheme,
Timezone: "browser",
HomeDashboardId: 0,
}