From e02973f414381399ce27b1a9655815e417e5e177 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Sun, 23 Apr 2023 09:44:14 +0800 Subject: [PATCH] Update doc (16530) Signed-off-by: ester.zhou --- .../arkui-ts/ts-universal-attributes-foreground-color.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-foreground-color.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-foreground-color.md index cfa2a0310f..8098c34b6e 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-foreground-color.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-foreground-color.md @@ -47,12 +47,11 @@ struct ColoringStrategyExample { // Draw a circle with a diameter of 150 and set its foreground color to the inverse of the component background color. Circle({ width: 150, height: 200 }) .backgroundColor(Color.Black) - .foregroungColor(ColoringStrategy.Invert) + .foregroundColor(ColoringStrategy.INVERT) }.width('100%') } } ``` - ![foregroundColor_circle](figures/ColoringStrategy_circle.png) ### Example 3 @@ -64,9 +63,9 @@ struct ColoringStrategyExample { struct foregroundColorInherit { build() { Column() { - Button('Foreground Color Set to Orange').fontSize(20).foregroundColor(Color.Orange).backgroundColor(Color.Gray) + Button('Foreground Color: Set to Orange').fontSize(20).foregroundColor(Color.Orange).backgroundColor(Color.Gray) Divider() - Button ('Foreground Color Inherited from Parent Component When Not Set').fontSize(20).backgroundColor(Color.Gray) + Button ('Foreground Color: Inherited from Parent Component When Not Set').fontSize(20).backgroundColor(Color.Gray) }.foregroundColor(Color.Red) } } -- GitLab