提交 e02973f4 编写于 作者: E ester.zhou

Update doc (16530)

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 c13bab30
...@@ -47,12 +47,11 @@ struct ColoringStrategyExample { ...@@ -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. // 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 }) Circle({ width: 150, height: 200 })
.backgroundColor(Color.Black) .backgroundColor(Color.Black)
.foregroungColor(ColoringStrategy.Invert) .foregroundColor(ColoringStrategy.INVERT)
}.width('100%') }.width('100%')
} }
} }
``` ```
![foregroundColor_circle](figures/ColoringStrategy_circle.png) ![foregroundColor_circle](figures/ColoringStrategy_circle.png)
### Example 3 ### Example 3
...@@ -64,9 +63,9 @@ struct ColoringStrategyExample { ...@@ -64,9 +63,9 @@ struct ColoringStrategyExample {
struct foregroundColorInherit { struct foregroundColorInherit {
build() { build() {
Column() { 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() 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) }.foregroundColor(Color.Red)
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册