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(
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),

View File

@ -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<AccountView> {
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(

View File

@ -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: