Dan Ballard pushed to branch tor-browser-153.3.0esr-16.0-1 at The Tor Project / Applications / Tor Browser Commits: 73d0d638 by clairehurst at 2026-09-21T16:46:24-06:00 fixup! [android] Bug 45217: Implement YEC 2026 Takeover for Android Stable Add illustration description - - - - - 2 changed files: - mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tor/CampaignCompose.kt - mobile/android/fenix/app/src/main/res/values/torbrowser_strings.xml Changes: ===================================== mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tor/CampaignCompose.kt ===================================== @@ -152,11 +152,11 @@ private fun DynamicCampaignContent( onDonateButtonClicked: () -> Unit, ) { @Composable - fun Icon(shouldShow: Boolean, @DrawableRes drawable: Int) { + fun Icon(shouldShow: Boolean, @DrawableRes drawable: Int, contentDescription: String? = null) { if (shouldShow) { Image( painterResource(drawable), - contentDescription = null, + contentDescription = contentDescription, alignment = Alignment.Center, ) } @@ -171,7 +171,7 @@ private fun DynamicCampaignContent( modifier = Modifier.fillMaxWidth(), horizontalAlignment = if (alternateLayout) Alignment.Start else Alignment.CenterHorizontally, ) { - Icon(shouldShow = !alternateLayout, R.drawable.bulb_illo_yec) + Icon(shouldShow = !alternateLayout, R.drawable.bulb_illo_yec, contentDescription = stringResource(R.string.bulb_illo_yec_description)) Spacer(Modifier.size (if (alternateLayout) 0.dp else 16.dp)) Row(verticalAlignment = Alignment.CenterVertically) { Icon(shouldShow = alternateLayout, R.drawable.circled_lighning_yec) ===================================== mobile/android/fenix/app/src/main/res/values/torbrowser_strings.xml ===================================== @@ -194,5 +194,7 @@ <string name="yec26_tor_powered_by_you">Tor: powered by you</string> <!-- Year End Campaign 2026. Main body text. --> <string name="yec26_call_to_action">Unlike Big Tech, Tor doesn’t sell your data to make money. Instead, 6,490 donors every year keep Tor strong. Join the movement with a donation today!</string> + <!-- Year End Campaign 2026. Main image description. --> + <string name="bulb_illo_yec_description">Illustration of a pink hand reaching to turn on a pink light bulb on a violet background. The light bulb vaguely resembles an onion with greens coming out of the top. There are playful bolts coming out of the bulb, and a green heart on the sleeve of the shirt.</string> </resources> View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/73d0d638... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/73d0d638... You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
participants (1)
-
Dan Ballard (@dan)