mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 09:01:17 -08:00
add author field
This commit is contained in:
1 file changed
+4
@@ -5,6 +5,7 @@ export type SableThemeContrast = 'low' | 'high';
|
||||
export type SableThemeMetadata = {
|
||||
id: string;
|
||||
name: string;
|
||||
author?: string;
|
||||
kind: ThemeKind;
|
||||
contrast: SableThemeContrast;
|
||||
tags: string[];
|
||||
@@ -36,6 +37,9 @@ export function parseSableThemeMetadata(cssText: string): Partial<SableThemeMeta
|
||||
case 'name':
|
||||
out.name = value;
|
||||
break;
|
||||
case 'author':
|
||||
out.author = value;
|
||||
break;
|
||||
case 'kind':
|
||||
out.kind = value === 'dark' ? ThemeKind.Dark : ThemeKind.Light;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user