Skip to content

Commit c0e1de9

Browse files
committed
avatar styles added
1 parent a3e93b9 commit c0e1de9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -817,16 +817,16 @@ export const AvatarStyle = [
817817
color: '#bfbfbf',
818818
},
819819
FILL,
820-
{
821-
name: "label",
822-
label: trans("avatarComp.label"),
823-
color: '#000000',
824-
},
825-
{
826-
name: "caption",
827-
label: trans("avatarComp.caption"),
828-
color: '#a5a5a5',
829-
},
820+
] as const;
821+
822+
export const avatarContainerStyle = [
823+
getStaticBackground(SURFACE_COLOR),
824+
...STYLING_FIELDS_CONTAINER_SEQUENCE
825+
] as const;
826+
827+
export const avatarLabelStyle = [
828+
getStaticBackground(SURFACE_COLOR),
829+
...STYLING_FIELDS_SEQUENCE
830830
] as const;
831831

832832
export const avatarGroupStyle = [
@@ -1578,6 +1578,8 @@ export const RichTextEditorStyle = [
15781578

15791579
export type QRCodeStyleType = StyleConfigType<typeof QRCodeStyle>;
15801580
export type AvatarStyleType = StyleConfigType<typeof AvatarStyle>;
1581+
export type AvatarLabelStyleType = StyleConfigType<typeof avatarLabelStyle>;
1582+
export type AvatarContainerStyleType = StyleConfigType<typeof avatarContainerStyle>;
15811583
export type AvatarGroupStyleType = StyleConfigType<typeof avatarGroupStyle>;
15821584
export type FloatButtonStyleType = StyleConfigType<typeof FloatButtonStyle>;
15831585
export type TransferStyleType = StyleConfigType<typeof TransferStyle>;

0 commit comments

Comments
 (0)