Skip to content

Commit d5df7c3

Browse files
committed
update android docs
1 parent 088091d commit d5df7c3

File tree

2 files changed

+4
-22
lines changed
  • articles/communication-services/how-tos/ui-library-sdk/includes/theming

2 files changed

+4
-22
lines changed

articles/communication-services/how-tos/ui-library-sdk/includes/theming/android.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Theming on Android is handled via XML resource files. We expose the following re
2121
<public name="azure_communication_ui_calling_primary_color_tint10" type="attr" />
2222
<public name="azure_communication_ui_calling_primary_color_tint20" type="attr" />
2323
<public name="azure_communication_ui_calling_primary_color_tint30" type="attr" />
24+
<public name="azure_communication_ui_calling_foreground_on_primary_color" type="attr" />
2425
</resources>
2526
```
2627

@@ -32,6 +33,7 @@ You can implement a theme like the following one in your apps to supply the prim
3233
<item name="azure_communication_ui_calling_primary_color_tint10">#882BD8</item>
3334
<item name="azure_communication_ui_calling_primary_color_tint20">#E0C7F4</item>
3435
<item name="azure_communication_ui_calling_primary_color_tint30">#ECDEF9</item>
36+
<item name="azure_communication_ui_calling_foreground_on_primary_color">#00FF00</item>
3537
</style>
3638
```
3739

@@ -82,24 +84,4 @@ To enable night mode programmatically, Android provides the following function.
8284

8385
### Font color
8486

85-
The `foregroundOnPrimaryColor` allows you to programmatically update the font color that appears on elements using the primary color. You can use this method when you want to match a specific theme or brand guidelines. By invoking `foregroundOnPrimaryColor`, you should ensure that the text remains legible and visually appealing by selecting an appropriate contrasting font color for the primary-colored components.
86-
87-
#### [Kotlin](#tab/kotlin)
88-
89-
```kotlin
90-
val callComposite: CallComposite =
91-
CallCompositeBuilder()
92-
.theme(R.style.MyCompany_CallComposite)
93-
.build()
94-
```
95-
96-
#### [Java](#tab/java)
97-
98-
```java
99-
CallComposite callComposite =
100-
new CallCompositeBuilder()
101-
.theme(R.style.MyCompany_CallComposite)
102-
.build();
103-
```
104-
105-
----
87+
The `azure_communication_ui_calling_foreground_on_primary_color` allows you to configure the font color that appears on elements using the primary color. You can use this setting when you want to match a specific theme or brand guidelines. By changing `azure_communication_ui_calling_foreground_on_primary_color`, you should ensure that the text remains legible and visually appealing by selecting an appropriate contrasting font color for the primary-colored components.

articles/communication-services/how-tos/ui-library-sdk/includes/theming/ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ let callCompositeOptions = CallCompositeOptions(theme: CustomThemeOptions())
6060

6161
### Font color
6262

63-
The `foregroundOnPrimaryColor` allows you to programmatically update the font color that appears on elements using the primary color. You can use this method when you want to match a specific theme or brand guidelines. By invoking `foregroundOnPrimaryColor`, you should ensure that the text remains legible and visually appealing by selecting an appropriate contrasting font color for the primary-colored components.
63+
The `foregroundOnPrimaryColor` allows you to programmatically update the font color that appears on elements using the primary color. You can use this method when you want to match a specific theme or brand guidelines. By invoking `foregroundOnPrimaryColor`, you should ensure that the text remains legible and visually appealing by selecting an appropriate contrasting font color for the primary-colored components.
6464

6565
```swift
6666
struct CustomColorTheming: ThemeOptions {

0 commit comments

Comments
 (0)