Skip to content

Commit b19b824

Browse files
FalkWolskyraheeliftikhar5
FalkWolsky
authored andcommitted
Theme Settings extended and Components Display set up.
1 parent 3a94509 commit b19b824

File tree

9 files changed

+812
-350
lines changed

9 files changed

+812
-350
lines changed

client/packages/lowcoder/src/api/commonSettingApi.ts

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ export interface ThemeDetail {
4343
canvas: string; // app bg-color
4444
primarySurface: string; // comp bg-color
4545
borderRadius: string;
46+
borderColor?: string;
47+
borderWidth?: string;
48+
borderStyle?: string;
4649
chart?: string;
4750
margin?: string;
4851
padding?: string;
4952
gridColumns?: string; //Added By Aqib Mirza
5053
textSize?: string;
54+
fontFamily?: string;
5155
animation?: string;
5256
animationDelay?: string;
5357
animationDuration?: string;
@@ -59,27 +63,20 @@ export interface ThemeDetail {
5963

6064
export function getThemeDetailName(key: keyof ThemeDetail) {
6165
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");
8380
}
8481
return "";
8582
}
@@ -91,9 +88,14 @@ export function isThemeColorKey(key: string) {
9188
case "textLight":
9289
case "canvas":
9390
case "primarySurface":
91+
case "borderRadius":
92+
case "borderColor":
93+
case "borderWidth":
94+
case "borderStyle":
95+
case "fontFamily":
9496
case "margin":
9597
case "padding":
96-
case "gridColumns": //Added By Aqib Mirza
98+
case "gridColumns":
9799
case "textSize":
98100
return true;
99101
}

client/packages/lowcoder/src/components/ColorPicker.tsx

Lines changed: 0 additions & 254 deletions
This file was deleted.

0 commit comments

Comments
 (0)