enhance(frontend): テーマ設定で簡易プレビューを表示するように (#15643)

* enhance(frontend): テーマ設定で簡易プレビューを表示するように

* Update Changelog

* fix lint

* 🎨

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
かっこかり
2025-03-10 18:35:51 +09:00
committed by GitHub
parent 9dce512fbb
commit f797765b1d
7 changed files with 301 additions and 96 deletions

View File

@@ -114,7 +114,7 @@ export function applyTheme(theme: Theme, persist = true) {
globalEvents.emit('themeChanging');
}
function compile(theme: Theme): Record<string, string> {
export function compile(theme: Theme): Record<string, string> {
function getColor(val: string): tinycolor.Instance {
if (val[0] === '@') { // ref (prop)
return getColor(theme.props[val.substring(1)]);