Download this file
| 1 | package calendar |
| 2 | |
| 3 | import ( |
| 4 | "amadan.net/oficina/estilo.git/chrome" |
| 5 | "net/http" |
| 6 | ) |
| 7 | |
| 8 | // appearance handles POST /appearance, the account menu's Light / Dark / |
| 9 | // System group (shared-chrome spec §8.3). estilo validates the mode and the |
| 10 | // return path and sets the suite's estilo_appearance cookie; the layout |
| 11 | // writes <html data-theme> from it with chrome.ThemeAttr, so "System" is |
| 12 | // the ABSENCE of the attribute. Calendar's own /mode, calendar_mode cookie |
| 13 | // and "Auto" label are retired. |
| 14 | func (h *handlers) appearance(w http.ResponseWriter, r *http.Request) { |
| 15 | chrome.HandleAppearance(w, r) |
| 16 | } |
| 17 | |