From 9bb819b39fb56c299aeeb00bb02c4d8aaa85d139 Mon Sep 17 00:00:00 2001 From: Elias Bonnici Date: Mon, 6 May 2024 15:40:44 +0200 Subject: [PATCH] Change OATH pinned icon color --- lib/oath/views/account_helper.dart | 5 +---- lib/oath/views/account_view.dart | 11 ++++++++--- pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/oath/views/account_helper.dart b/lib/oath/views/account_helper.dart index 5ea88f1e..1669836a 100755 --- a/lib/oath/views/account_helper.dart +++ b/lib/oath/views/account_helper.dart @@ -89,10 +89,7 @@ class AccountHelper { ActionItem( key: keys.togglePinAction, feature: features.accountsPin, - icon: Icon( - Symbols.push_pin, - fill: pinned ? 1 : 0, - ), + icon: Icon(pinned ? Symbols.keep_off : Symbols.keep), title: pinned ? l10n.s_unpin_account : l10n.s_pin_account, subtitle: l10n.l_pin_account_desc, intent: TogglePinIntent(credential), diff --git a/lib/oath/views/account_view.dart b/lib/oath/views/account_view.dart index 5a72c378..f8ba9471 100755 --- a/lib/oath/views/account_view.dart +++ b/lib/oath/views/account_view.dart @@ -16,6 +16,7 @@ import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:material_symbols_icons/symbols.dart'; @@ -192,10 +193,14 @@ class _AccountViewState extends ConsumerState { onPressed: Actions.handler( context, TogglePinIntent(credential)), icon: Icon( - Symbols.push_pin, - fill: 1, - color: Colors.grey.shade600, + Symbols.keep_off, + color: Theme.of(context) + .colorScheme + .onSecondaryContainer + .withOpacity(0.4), ), + tooltip: + AppLocalizations.of(context)!.s_unpin_account, ), helper.code != null ? FilledButton.tonalIcon( diff --git a/pubspec.yaml b/pubspec.yaml index 576e3f86..aa71eb5b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -70,7 +70,7 @@ dependencies: io: ^1.0.4 base32: ^2.1.3 convert: ^3.1.1 - material_symbols_icons: ^4.2719.3 + material_symbols_icons: ^4.2741.0 dev_dependencies: integration_test: