@@ -43,11 +43,15 @@ export interface ThemeDetail {
43
43
canvas : string ; // app bg-color
44
44
primarySurface : string ; // comp bg-color
45
45
borderRadius : string ;
46
+ borderColor ?: string ;
47
+ borderWidth ?: string ;
48
+ borderStyle ?: string ;
46
49
chart ?: string ;
47
50
margin ?: string ;
48
51
padding ?: string ;
49
52
gridColumns ?: string ; //Added By Aqib Mirza
50
53
textSize ?: string ;
54
+ fontFamily ?: string ;
51
55
animation ?: string ;
52
56
animationDelay ?: string ;
53
57
animationDuration ?: string ;
@@ -59,27 +63,20 @@ export interface ThemeDetail {
59
63
60
64
export function getThemeDetailName ( key : keyof ThemeDetail ) {
61
65
switch ( key ) {
62
- case "primary" :
63
- return trans ( "themeDetail.primary" ) ;
64
- case "textDark" :
65
- return trans ( "themeDetail.textDark" ) ;
66
- case "textLight" :
67
- return trans ( "themeDetail.textLight" ) ;
68
- case "canvas" :
69
- return trans ( "themeDetail.canvas" ) ;
70
- case "primarySurface" :
71
- return trans ( "themeDetail.primarySurface" ) ;
72
- case "borderRadius" :
73
- return trans ( "themeDetail.borderRadius" ) ;
74
- case "margin" :
75
- return trans ( "style.margin" ) ;
76
- case "padding" :
77
- return trans ( "style.padding" ) ;
78
- //Added By Aqib Mirza
79
- case "gridColumns" :
80
- return trans ( "themeDetail.gridColumns" ) ;
81
- case "textSize" :
82
- return trans ( "style.textSize" ) ;
66
+ case "primary" : return trans ( "themeDetail.primary" ) ;
67
+ case "textDark" : return trans ( "themeDetail.textDark" ) ;
68
+ case "textLight" : return trans ( "themeDetail.textLight" ) ;
69
+ case "canvas" : return trans ( "themeDetail.canvas" ) ;
70
+ case "primarySurface" : return trans ( "themeDetail.primarySurface" ) ;
71
+ case "borderRadius" : return trans ( "themeDetail.borderRadius" ) ;
72
+ case "borderColor" : return trans ( "themeDetail.borderColor" ) ;
73
+ case "borderWidth" : return trans ( "themeDetail.borderWidth" ) ;
74
+ case "borderStyle" : return trans ( "themeDetail.borderStyle" ) ;
75
+ case "fontFamily" : return trans ( "themeDetail.fontFamily" ) ;
76
+ case "margin" : return trans ( "style.margin" ) ;
77
+ case "padding" : return trans ( "style.padding" ) ;
78
+ case "gridColumns" : return trans ( "themeDetail.gridColumns" ) ;
79
+ case "textSize" : return trans ( "style.textSize" ) ;
83
80
}
84
81
return "" ;
85
82
}
@@ -91,9 +88,14 @@ export function isThemeColorKey(key: string) {
91
88
case "textLight" :
92
89
case "canvas" :
93
90
case "primarySurface" :
91
+ case "borderRadius" :
92
+ case "borderColor" :
93
+ case "borderWidth" :
94
+ case "borderStyle" :
95
+ case "fontFamily" :
94
96
case "margin" :
95
97
case "padding" :
96
- case "gridColumns" : //Added By Aqib Mirza
98
+ case "gridColumns" :
97
99
case "textSize" :
98
100
return true ;
99
101
}
0 commit comments