From c96b1fb4c446c628d36e5737221b792823d2b523 Mon Sep 17 00:00:00 2001 From: Elias Bonnici Date: Fri, 24 Jan 2025 08:54:25 +0100 Subject: [PATCH] Change info text color and padding --- lib/piv/views/generate_key_dialog.dart | 4 +++- lib/piv/views/manage_key_dialog.dart | 4 +++- lib/widgets/info_popup_button.dart | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/piv/views/generate_key_dialog.dart b/lib/piv/views/generate_key_dialog.dart index 710f408ba..4e39047c1 100644 --- a/lib/piv/views/generate_key_dialog.dart +++ b/lib/piv/views/generate_key_dialog.dart @@ -269,7 +269,9 @@ class _GenerateKeyDialogState extends ConsumerState { displayDialog: fullScreen, infoText: RichText( text: TextSpan( - style: textTheme.bodySmall, + style: textTheme.bodySmall?.copyWith( + color: colorScheme.onSurfaceVariant, + ), children: [ TextSpan( text: l10n.s_algorithm, diff --git a/lib/piv/views/manage_key_dialog.dart b/lib/piv/views/manage_key_dialog.dart index ae7d8003a..2716cd5b5 100644 --- a/lib/piv/views/manage_key_dialog.dart +++ b/lib/piv/views/manage_key_dialog.dart @@ -389,7 +389,9 @@ class _ManageKeyDialogState extends ConsumerState { displayDialog: fullScreen, infoText: RichText( text: TextSpan( - style: textTheme.bodySmall, + style: textTheme.bodySmall?.copyWith( + color: colorScheme.onSurfaceVariant, + ), children: [ TextSpan( text: l10n.s_management_key_algorithm, diff --git a/lib/widgets/info_popup_button.dart b/lib/widgets/info_popup_button.dart index a5b941e6e..be4edc8c3 100644 --- a/lib/widgets/info_popup_button.dart +++ b/lib/widgets/info_popup_button.dart @@ -29,7 +29,6 @@ class InfoPopupButton extends StatelessWidget { tooltip: l10n.s_more_info, constraints: BoxConstraints(maxWidth: 250, maxHeight: 400), popUpAnimationStyle: AnimationStyle(duration: Duration.zero), - menuPadding: EdgeInsets.zero, borderRadius: BorderRadius.circular(25), child: SizedBox( height: size,