diff --git a/controllers/settings/settings.go b/controllers/settings/settings.go index d48df2fc..0f4049f7 100644 --- a/controllers/settings/settings.go +++ b/controllers/settings/settings.go @@ -33,6 +33,7 @@ func ChangePublicSettingsHandler(c *gin.Context) { lang := c.PostForm("language") mascot := c.PostForm("mascot") mascotURL := c.PostForm("mascot_url") + altColors := c.PostForm("altColors") messages := msg.GetMessages(c) @@ -59,6 +60,7 @@ func ChangePublicSettingsHandler(c *gin.Context) { user.Theme = theme user.Mascot = mascot user.MascotURL = mascotURL + user.AltColors = altColors user.UpdateRaw() } // Set cookie with http and not gin for expires (maxage not supported in table { diff --git a/public/css/tomorrow.css b/public/css/tomorrow.css index a85de4f4..9dddb736 100644 --- a/public/css/tomorrow.css +++ b/public/css/tomorrow.css @@ -88,6 +88,12 @@ td.tr-le, .error-text { background-color: #cc6666; } +.alt-colors tr:nth-child(even) { + background: hsla(255, 4%, 29%, 0.2); +} +.alt-colors tr:nth-child(odd) { + background: hsla(255, 31%, 6%, 0.2); +} .aplus, .btn-blue { background: hsla(180, 50%, 50%, 0.2) !important; } diff --git a/templates/layouts/partials/helpers/search.jet.html b/templates/layouts/partials/helpers/search.jet.html index 9b22d277..d158fa8c 100644 --- a/templates/layouts/partials/helpers/search.jet.html +++ b/templates/layouts/partials/helpers/search.jet.html @@ -58,7 +58,7 @@ Exclude: - + {{T("sort_by")}} {{ yield errors(name="name")}} - +