Change OATH pinned icon color

This commit is contained in:
Elias Bonnici 2024-05-06 15:40:44 +02:00
parent 4ca7bd30c2
commit 9bb819b39f
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF
3 changed files with 10 additions and 8 deletions

View File

@ -89,10 +89,7 @@ class AccountHelper {
ActionItem( ActionItem(
key: keys.togglePinAction, key: keys.togglePinAction,
feature: features.accountsPin, feature: features.accountsPin,
icon: Icon( icon: Icon(pinned ? Symbols.keep_off : Symbols.keep),
Symbols.push_pin,
fill: pinned ? 1 : 0,
),
title: pinned ? l10n.s_unpin_account : l10n.s_pin_account, title: pinned ? l10n.s_unpin_account : l10n.s_pin_account,
subtitle: l10n.l_pin_account_desc, subtitle: l10n.l_pin_account_desc,
intent: TogglePinIntent(credential), intent: TogglePinIntent(credential),

View File

@ -16,6 +16,7 @@
import 'package:collection/collection.dart'; import 'package:collection/collection.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:material_symbols_icons/symbols.dart'; import 'package:material_symbols_icons/symbols.dart';
@ -192,10 +193,14 @@ class _AccountViewState extends ConsumerState<AccountView> {
onPressed: Actions.handler( onPressed: Actions.handler(
context, TogglePinIntent(credential)), context, TogglePinIntent(credential)),
icon: Icon( icon: Icon(
Symbols.push_pin, Symbols.keep_off,
fill: 1, color: Theme.of(context)
color: Colors.grey.shade600, .colorScheme
.onSecondaryContainer
.withOpacity(0.4),
), ),
tooltip:
AppLocalizations.of(context)!.s_unpin_account,
), ),
helper.code != null helper.code != null
? FilledButton.tonalIcon( ? FilledButton.tonalIcon(

View File

@ -70,7 +70,7 @@ dependencies:
io: ^1.0.4 io: ^1.0.4
base32: ^2.1.3 base32: ^2.1.3
convert: ^3.1.1 convert: ^3.1.1
material_symbols_icons: ^4.2719.3 material_symbols_icons: ^4.2741.0
dev_dependencies: dev_dependencies:
integration_test: integration_test: