diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt index 0e9f4eaba8..a499c08102 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt @@ -1254,7 +1254,7 @@ private fun HashVerificationSymbol(verifiedHash: Boolean) { painter = painterRes(R.drawable.original, 1), contentDescription = stringRes(id = R.string.hash_verification_passed), modifier = Size30Modifier, - tint = Color.Unspecified, + tint = MaterialTheme.colorScheme.primary, ) } } else { @@ -1268,7 +1268,7 @@ private fun HashVerificationSymbol(verifiedHash: Boolean) { symbol = MaterialSymbols.Report, contentDescription = stringRes(id = R.string.hash_verification_failed), modifier = Size30Modifier, - tint = Color.Red, + tint = MaterialTheme.colorScheme.error, ) } } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NIP05VerificationDisplay.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NIP05VerificationDisplay.kt index b87ed48c44..32730d9424 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NIP05VerificationDisplay.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NIP05VerificationDisplay.kt @@ -36,7 +36,6 @@ import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier -import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalUriHandler import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.style.TextOverflow @@ -481,7 +480,7 @@ fun RenderNIP05VerifiedSymbol( painter = painterRes(R.drawable.nip_05, compositionSizeReference), contentDescription = stringRes(id = R.string.nip05_verified), modifier = modifier, - tint = Color.Unspecified, + tint = MaterialTheme.colorScheme.nip05, ) } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Color.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Color.kt index 047ea2941e..f432f5e73f 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Color.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Color.kt @@ -48,9 +48,6 @@ val BitcoinLight = Color(0xFFB66605) val Following = Color(0xFF03DAC5) -val Nip05EmailColorDark = Color(0xFF765AA2) -val Nip05EmailColorLight = Color(0xFFa770f3) - val LightRedColor = Color(0xFFC62828) val RelayIconFilter = ColorFilter.colorMatrix(ColorMatrix().apply { setToSaturation(0.5f) }) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt index da98930d03..3bbf7ab42e 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt @@ -546,8 +546,9 @@ val ColorScheme.mediumImportanceLink: Color val ColorScheme.placeholderText: Color get() = if (isLight) LightPlaceholderText else DarkPlaceholderText +// NIP-05 identifiers were a fixed purple; follow the selected accent instead. val ColorScheme.nip05: Color - get() = if (isLight) Nip05EmailColorLight else Nip05EmailColorDark + get() = primary val ColorScheme.onBackgroundColorFilter: ColorFilter get() = if (isLight) LightOnBackgroundColorFilter else DarkOnBackgroundColorFilter