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(
|
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),
|
||||||
|
@ -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(
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user