From a25df2187fd4577d5bfc49d4a94c2b2fe004bc3c Mon Sep 17 00:00:00 2001 From: monsieurtanuki Date: Tue, 15 Aug 2023 14:36:30 +0200 Subject: [PATCH] feat: 4533 - new twitter logo and label Deleted file: * `twitter-bird.svg` New file: * `x-logo.svg` Impacted files: * `app_en.arb`: edited twitter label * `user_preferences_connect.dart`: now using the new tinted twitter logo --- .../assets/preferences/twitter-bird.svg | 35 ------------------- .../smooth_app/assets/preferences/x-logo.svg | 3 ++ packages/smooth_app/lib/l10n/app_en.arb | 2 +- .../preferences/user_preferences_connect.dart | 8 ++++- 4 files changed, 11 insertions(+), 37 deletions(-) delete mode 100644 packages/smooth_app/assets/preferences/twitter-bird.svg create mode 100644 packages/smooth_app/assets/preferences/x-logo.svg 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, ), ),