diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailFragment.kt b/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailFragment.kt
index 150c0d1979..f348e0612a 100644
--- a/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailFragment.kt
+++ b/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailFragment.kt
@@ -957,8 +957,8 @@ class RoomDetailFragment @Inject constructor(
.setMessage(
getString(R.string.external_link_confirmation_message, title, url)
.toSpannable()
- .colorizeMatchingText(url, colorProvider.getColorFromAttribute(android.R.attr.textColorLink))
- .colorizeMatchingText(title, colorProvider.getColorFromAttribute(android.R.attr.textColorLink))
+ .colorizeMatchingText(url, colorProvider.getColorFromAttribute(R.attr.riotx_text_primary_body_contrast))
+ .colorizeMatchingText(title, colorProvider.getColorFromAttribute(R.attr.riotx_text_primary_body_contrast))
)
.setPositiveButton(R.string._continue) { _, _ ->
openUrlInExternalBrowser(requireContext(), url)
diff --git a/vector/src/main/res/values/colors_riotx.xml b/vector/src/main/res/values/colors_riotx.xml
index 7c0e57be93..238fcbd6a2 100644
--- a/vector/src/main/res/values/colors_riotx.xml
+++ b/vector/src/main/res/values/colors_riotx.xml
@@ -99,6 +99,11 @@
#FFA1B2D1
#FFA1B2D1
+
+ #FF61708B
+ #FFA1B2D1
+ #FFA1B2D1
+
#FF7E899C
#FF7E899C
diff --git a/vector/src/main/res/values/theme_black.xml b/vector/src/main/res/values/theme_black.xml
index b2ddfd5b81..f3f84a36d8 100644
--- a/vector/src/main/res/values/theme_black.xml
+++ b/vector/src/main/res/values/theme_black.xml
@@ -18,6 +18,7 @@
- @color/riotx_header_panel_text_secondary_black
- @color/riotx_text_primary_black
- @color/riotx_text_secondary_black
+ - @color/riotx_text_primary_body_contrast_black
- @color/riotx_android_secondary_black
- @color/riotx_search_placeholder_black
- @color/riotx_room_highlight_black
diff --git a/vector/src/main/res/values/theme_dark.xml b/vector/src/main/res/values/theme_dark.xml
index 09775d4d41..a2be367e55 100644
--- a/vector/src/main/res/values/theme_dark.xml
+++ b/vector/src/main/res/values/theme_dark.xml
@@ -16,6 +16,7 @@
- @color/riotx_header_panel_text_secondary_dark
- @color/riotx_text_primary_dark
- @color/riotx_text_secondary_dark
+ - @color/riotx_text_primary_body_contrast_dark
- @color/riotx_android_secondary_dark
- @color/riotx_search_placeholder_dark
- @color/riotx_room_highlight_dark
diff --git a/vector/src/main/res/values/theme_light.xml b/vector/src/main/res/values/theme_light.xml
index c63dfa9057..9709172f9d 100644
--- a/vector/src/main/res/values/theme_light.xml
+++ b/vector/src/main/res/values/theme_light.xml
@@ -16,6 +16,7 @@
- @color/riotx_header_panel_text_secondary_light
- @color/riotx_text_primary_light
- @color/riotx_text_secondary_light
+ - @color/riotx_text_primary_body_contrast_light
- @color/riotx_android_secondary_light
- @color/riotx_search_placeholder_light
- @color/riotx_room_highlight_light