enhance(frontend): テーマ設定で簡易プレビューを表示するように (#15643)
* enhance(frontend): テーマ設定で簡易プレビューを表示するように * Update Changelog * fix lint * 🎨 --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -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)]);
|
||||
|
Reference in New Issue
Block a user