mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fix the color of misleading url according to design document.
This commit is contained in:
parent
57779c99c2
commit
52aa57ac7c
@ -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)
|
||||
|
@ -99,6 +99,11 @@
|
||||
<color name="riotx_text_secondary_dark">#FFA1B2D1</color>
|
||||
<color name="riotx_text_secondary_black">#FFA1B2D1</color>
|
||||
|
||||
<attr name="riotx_text_primary_body_contrast" format="color" />
|
||||
<color name="riotx_text_primary_body_contrast_light">#FF61708B</color>
|
||||
<color name="riotx_text_primary_body_contrast_dark">#FFA1B2D1</color>
|
||||
<color name="riotx_text_primary_body_contrast_black">#FFA1B2D1</color>
|
||||
|
||||
<attr name="riotx_android_secondary" format="color" />
|
||||
<color name="riotx_android_secondary_light">#FF7E899C</color>
|
||||
<color name="riotx_android_secondary_dark">#FF7E899C</color>
|
||||
|
@ -18,6 +18,7 @@
|
||||
<item name="riotx_header_panel_text_secondary">@color/riotx_header_panel_text_secondary_black</item>
|
||||
<item name="riotx_text_primary">@color/riotx_text_primary_black</item>
|
||||
<item name="riotx_text_secondary">@color/riotx_text_secondary_black</item>
|
||||
<item name="riotx_text_primary_body_contrast">@color/riotx_text_primary_body_contrast_black</item>
|
||||
<item name="riotx_android_secondary">@color/riotx_android_secondary_black</item>
|
||||
<item name="riotx_search_placeholder">@color/riotx_search_placeholder_black</item>
|
||||
<item name="riotx_room_highlight">@color/riotx_room_highlight_black</item>
|
||||
|
@ -16,6 +16,7 @@
|
||||
<item name="riotx_header_panel_text_secondary">@color/riotx_header_panel_text_secondary_dark</item>
|
||||
<item name="riotx_text_primary">@color/riotx_text_primary_dark</item>
|
||||
<item name="riotx_text_secondary">@color/riotx_text_secondary_dark</item>
|
||||
<item name="riotx_text_primary_body_contrast">@color/riotx_text_primary_body_contrast_dark</item>
|
||||
<item name="riotx_android_secondary">@color/riotx_android_secondary_dark</item>
|
||||
<item name="riotx_search_placeholder">@color/riotx_search_placeholder_dark</item>
|
||||
<item name="riotx_room_highlight">@color/riotx_room_highlight_dark</item>
|
||||
|
@ -16,6 +16,7 @@
|
||||
<item name="riotx_header_panel_text_secondary">@color/riotx_header_panel_text_secondary_light</item>
|
||||
<item name="riotx_text_primary">@color/riotx_text_primary_light</item>
|
||||
<item name="riotx_text_secondary">@color/riotx_text_secondary_light</item>
|
||||
<item name="riotx_text_primary_body_contrast">@color/riotx_text_primary_body_contrast_light</item>
|
||||
<item name="riotx_android_secondary">@color/riotx_android_secondary_light</item>
|
||||
<item name="riotx_search_placeholder">@color/riotx_search_placeholder_light</item>
|
||||
<item name="riotx_room_highlight">@color/riotx_room_highlight_light</item>
|
||||
|
Loading…
Reference in New Issue
Block a user