mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-28 20:06:56 +03:00
Change OATH pinned icon color
This commit is contained in:
parent
4ca7bd30c2
commit
9bb819b39f
@ -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),
|
||||
|
@ -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(
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user