1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

[WIP] User can select theme

This commit is contained in:
Harvey Kandola 2018-11-24 18:39:43 +00:00
parent 11e164496b
commit 679049d2b1
11 changed files with 141 additions and 8 deletions

View file

@ -282,13 +282,12 @@ type searchStatus struct {
// Themes returns list of installed UI themes.
func (h *Handler) Themes(w http.ResponseWriter, r *http.Request) {
type theme struct {
Name string `json:"names"`
Name string `json:"name"`
Primary string `json:"primary"`
}
th := []theme{}
th = append(th, theme{Name: "Default", Primary: "#280A42"})
th = append(th, theme{Name: "", Primary: "#280A42"})
th = append(th, theme{Name: "Blue", Primary: "#176091"})
th = append(th, theme{Name: "Deep Orange", Primary: "#BF360C"})
th = append(th, theme{Name: "Teal", Primary: "#00695C"})