enhance(frontend): テーマ設定で簡易プレビューを表示するように (#15643)
* enhance(frontend): テーマ設定で簡易プレビューを表示するように
* Update Changelog
* fix lint
* 🎨
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
parent
9dce512fbb
commit
f797765b1d
7 changed files with 301 additions and 96 deletions
|
|
@ -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)]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue