Skip to content

Commit ba612a9

Browse files
committed
use daxColorAccentBlue on spannable links
1 parent 12bdc7f commit ba612a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common-ui/src/main/java/com/duckduckgo/mobile/android/ui/view/TextExtensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fun TextView.addClickableLink(
8282
)
8383
setSpan(
8484
ForegroundColorSpan(
85-
ContextCompat.getColor(context, R.color.cornflowerBlue),
85+
context.getColorFromAttr(R.attr.daxColorAccentBlue),
8686
),
8787
fullText.getSpanStart(it),
8888
fullText.getSpanEnd(it),
@@ -114,7 +114,7 @@ fun TextView.addClickableSpan(
114114
)
115115
setSpan(
116116
ForegroundColorSpan(
117-
ContextCompat.getColor(context, R.color.cornflowerBlue),
117+
context.getColorFromAttr(R.attr.daxColorAccentBlue),
118118
),
119119
fullText.getSpanStart(it),
120120
fullText.getSpanEnd(it),

0 commit comments

Comments
 (0)