diff --git a/packages/smooth_app/assets/preferences/twitter-bird.svg b/packages/smooth_app/assets/preferences/twitter-bird.svg deleted file mode 100644 index 431fb4498fb..00000000000 --- a/packages/smooth_app/assets/preferences/twitter-bird.svg +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - image/svg+xml - - - - - - - - - diff --git a/packages/smooth_app/assets/preferences/x-logo.svg b/packages/smooth_app/assets/preferences/x-logo.svg new file mode 100644 index 00000000000..437e2bfddbb --- /dev/null +++ b/packages/smooth_app/assets/preferences/x-logo.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/smooth_app/lib/l10n/app_en.arb b/packages/smooth_app/lib/l10n/app_en.arb index 454d085c485..6bd35d2f4c1 100644 --- a/packages/smooth_app/lib/l10n/app_en.arb +++ b/packages/smooth_app/lib/l10n/app_en.arb @@ -861,7 +861,7 @@ "connect_with_us": "Connect with us", "instagram": "Instagram", "instagram_link": "https://instagram.com/open.food.facts", - "twitter": "Twitter", + "twitter": "X (formerly Twitter)", "twitter_link": "https://www.twitter.com/openfoodfacts", "blog": "Blog", "faq": "FAQ", diff --git a/packages/smooth_app/lib/pages/preferences/user_preferences_connect.dart b/packages/smooth_app/lib/pages/preferences/user_preferences_connect.dart index 079befb2dde..6cb68e0161e 100644 --- a/packages/smooth_app/lib/pages/preferences/user_preferences_connect.dart +++ b/packages/smooth_app/lib/pages/preferences/user_preferences_connect.dart @@ -1,3 +1,5 @@ +import 'dart:ui' as ui; + import 'package:device_info_plus/device_info_plus.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -64,8 +66,12 @@ class UserPreferencesConnect extends AbstractUserPreferences { title: appLocalizations.twitter, url: appLocalizations.twitter_link, leading: SvgPicture.asset( - 'assets/preferences/twitter-bird.svg', + 'assets/preferences/x-logo.svg', width: DEFAULT_ICON_SIZE, + colorFilter: ui.ColorFilter.mode( + Theme.of(context).colorScheme.onBackground, + ui.BlendMode.srcIn, + ), package: AppHelper.APP_PACKAGE, ), ),