Merge pull request 'devel' (#26) from devel into main

Reviewed-on: #26
This commit is contained in:
inhji 2023-03-30 14:45:36 +02:00
commit c033592db1
2 changed files with 17 additions and 8 deletions

View file

@ -24,13 +24,22 @@
--color-text-dim: 68 68 68; --color-text-dim: 68 68 68;
} }
:root[data-theme=roguelight] { :root[data-theme=frame] {
--color-primary: 150 207 133; --color-primary: 91 82 254;
--color-background: 53 43 49; --color-background: 237 238 242;
--color-text-base: 245 245 212; --color-text-base: 38 43 55;
--color-text-heading: 112 131 140; --color-text-heading: 57 65 83;
--color-text-muted: 245 245 212; --color-text-muted: 57 65 83;
--color-text-dim: 74 59 68; --color-text-dim: 76 87 111;
}
:root[data-theme=frame][data-mode=dark] {
--color-primary: 91 82 254;
--color-background: 38 43 55;
--color-text-base: 204 204 204;
--color-text-heading: 204 204 204;
--color-text-muted: 76 87 111;
--color-text-dim: 57 65 83;
} }
} }

View file

@ -9,7 +9,7 @@ defmodule Chiya.Site.Setting do
field :custom_css, :string, default: "" field :custom_css, :string, default: ""
field :custom_html, :string, default: "" field :custom_html, :string, default: ""
field :theme, Ecto.Enum, values: [:default, :roguelight], default: :default field :theme, Ecto.Enum, values: [:default, :frame], default: :default
field :user_agent, :string, default: "Chiya/0.x +https://inhji.de" field :user_agent, :string, default: "Chiya/0.x +https://inhji.de"