This commit is contained in:
2026-03-25 14:45:58 +03:00
parent b617e3acf6
commit d2278523bd
7 changed files with 148 additions and 3 deletions
@@ -368,6 +368,16 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
decoration: BoxDecoration(
color: Theme.of(widget.context).colorScheme.surface,
shape: BoxShape.circle,
border:
Theme.of(widget.context).brightness ==
Brightness.dark
? Border.all(
color: Theme.of(
widget.context,
).colorScheme.onSurface.withOpacity(0.3),
width: 1,
)
: null,
boxShadow: [
BoxShadow(
color: Colors.red.withOpacity(0.2),
@@ -393,6 +403,16 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
decoration: BoxDecoration(
color: Theme.of(widget.context).colorScheme.surface,
shape: BoxShape.circle,
border:
Theme.of(widget.context).brightness ==
Brightness.dark
? Border.all(
color: Theme.of(
widget.context,
).colorScheme.onSurface.withOpacity(0.3),
width: 1,
)
: null,
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.3),
@@ -34,7 +34,20 @@ class AccountDeleteDialog extends ConsumerWidget {
'Are you sure you want to delete this account? All associated transactions will also be permanently deleted.',
),
actions: [
TextButton(onPressed: onCancel, child: const Text('Cancel')),
TextButton(
onPressed: onCancel,
style: Theme.of(context).brightness == Brightness.dark
? TextButton.styleFrom(
side: BorderSide(
color: Theme.of(
context,
).colorScheme.onSurface.withOpacity(0.3),
width: 1,
),
)
: null,
child: const Text('Cancel'),
),
TextButton(
onPressed: () async {
if (editingAccount == null) return;
@@ -57,6 +70,16 @@ class AccountDeleteDialog extends ConsumerWidget {
HapticService.medium();
}
},
style: Theme.of(context).brightness == Brightness.dark
? TextButton.styleFrom(
side: BorderSide(
color: Theme.of(
context,
).colorScheme.onSurface.withOpacity(0.3),
width: 1,
),
)
: null,
child: const Text(
'Delete',
style: TextStyle(color: Colors.red),
@@ -130,8 +130,8 @@ class BalanceCardState extends ConsumerState<BalanceCard>
final s = ref.watch(stringsProvider);
final rates = ref.read(exchangeRateServiceProvider);
final fmt = ref.watch(amountFormatProvider);
final showConversions = ref.watch(showCurrencyConversionsProvider);
// Use account-specific colors if provided, otherwise use global colors
final globalColors = ref.watch(cardColorsProvider);
final savedColors = widget.accountColors ?? globalColors;
final primary = widget.previewPrimary ?? savedColors.primary;
@@ -259,7 +259,7 @@ class BalanceCardState extends ConsumerState<BalanceCard>
],
),
),
if (widget.balance != 0) ...[
if (widget.balance != 0 && showConversions) ...[
const SizedBox(width: 16),
Container(
width: 1,