Added customizable colours of the public page with palettes and live preview. Fixes #14

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 21:54:24 +02:00
co-authored by Claude Opus 5.5
parent 1a1688d322
commit 9da18a67ac
12 changed files with 760 additions and 11 deletions
+6 -1
View File
@@ -4,6 +4,7 @@ use std::fmt::{Display, Formatter};
use std::str::FromStr;
use chrono::{Local, NaiveDate, NaiveTime, Weekday};
use lazy_static::lazy_static;
use crate::backend::color::Colors;
use regex::Regex;
use rust_decimal::Decimal;
use serde::{Deserialize, Serialize};
@@ -741,7 +742,11 @@ pub struct Appearance {
id: i32,
pub banner: Option<String>,
pub text: Option<String>,
pub title: Option<String>
pub title: Option<String>,
// Forms that edit the title or the text don't send the colours
#[serde(default)]
#[cfg_attr(feature = "ssr", sqlx(flatten))]
pub colors: Colors
}
impl Appearance {