Skip to content

Commit

Permalink
feat: 4533 - new twitter logo and label (#4539)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
monsieurtanuki authored Aug 15, 2023
1 parent ad6303b commit c532180
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 37 deletions.
35 changes: 0 additions & 35 deletions packages/smooth_app/assets/preferences/twitter-bird.svg

This file was deleted.

3 changes: 3 additions & 0 deletions packages/smooth_app/assets/preferences/x-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/smooth_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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,
),
),
Expand Down

0 comments on commit c532180

Please sign in to comment.