mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-10 15:10:14 -04:00
accessibility work
This commit is contained in:
parent
be8014c97a
commit
de691cd778
48 changed files with 862 additions and 551 deletions
|
@ -73,15 +73,18 @@ class _EditAccountPageState extends WindowSetupState<EditAccountPage> {
|
|||
title: translate('edit_account_page.remove_account_confirm'),
|
||||
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
||||
Text(translate('edit_account_page.remove_account_confirm_message'))
|
||||
.paddingLTRB(24, 24, 24, 0),
|
||||
Text(translate('confirmation.are_you_sure')).paddingAll(8),
|
||||
.paddingLTRB(24.scaled(context), 24.scaled(context),
|
||||
24.scaled(context), 0),
|
||||
Text(translate('confirmation.are_you_sure'))
|
||||
.paddingAll(8.scaled(context)),
|
||||
Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop(false);
|
||||
},
|
||||
child: Row(mainAxisSize: MainAxisSize.min, children: [
|
||||
const Icon(Icons.cancel, size: 16).paddingLTRB(0, 0, 4, 0),
|
||||
Icon(Icons.cancel, size: 16.scaled(context))
|
||||
.paddingLTRB(0, 0, 4.scaled(context), 0),
|
||||
Text(translate('button.no')).paddingLTRB(0, 0, 4, 0)
|
||||
])),
|
||||
ElevatedButton(
|
||||
|
@ -89,10 +92,12 @@ class _EditAccountPageState extends WindowSetupState<EditAccountPage> {
|
|||
Navigator.of(context).pop(true);
|
||||
},
|
||||
child: Row(mainAxisSize: MainAxisSize.min, children: [
|
||||
const Icon(Icons.check, size: 16).paddingLTRB(0, 0, 4, 0),
|
||||
Text(translate('button.yes')).paddingLTRB(0, 0, 4, 0)
|
||||
Icon(Icons.check, size: 16.scaled(context))
|
||||
.paddingLTRB(0, 0, 4.scaled(context), 0),
|
||||
Text(translate('button.yes'))
|
||||
.paddingLTRB(0, 0, 4.scaled(context), 0)
|
||||
]))
|
||||
]).paddingAll(24)
|
||||
]).paddingAll(24.scaled(context))
|
||||
]));
|
||||
if (confirmed != null && confirmed) {
|
||||
try {
|
||||
|
@ -141,29 +146,36 @@ class _EditAccountPageState extends WindowSetupState<EditAccountPage> {
|
|||
title: translate('edit_account_page.destroy_account_confirm'),
|
||||
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
||||
Text(translate('edit_account_page.destroy_account_confirm_message'))
|
||||
.paddingLTRB(24, 24, 24, 0),
|
||||
.paddingLTRB(24.scaled(context), 24.scaled(context),
|
||||
24.scaled(context), 0),
|
||||
Text(translate(
|
||||
'edit_account_page.destroy_account_confirm_message_details'))
|
||||
.paddingLTRB(24, 24, 24, 0),
|
||||
Text(translate('confirmation.are_you_sure')).paddingAll(8),
|
||||
.paddingLTRB(24.scaled(context), 24.scaled(context),
|
||||
24.scaled(context), 0),
|
||||
Text(translate('confirmation.are_you_sure'))
|
||||
.paddingAll(24.scaled(context)),
|
||||
Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop(false);
|
||||
},
|
||||
child: Row(mainAxisSize: MainAxisSize.min, children: [
|
||||
const Icon(Icons.cancel, size: 16).paddingLTRB(0, 0, 4, 0),
|
||||
Text(translate('button.no')).paddingLTRB(0, 0, 4, 0)
|
||||
Icon(Icons.cancel, size: 16.scaled(context))
|
||||
.paddingLTRB(0, 0, 4.scaled(context), 0),
|
||||
Text(translate('button.no'))
|
||||
.paddingLTRB(0, 0, 4.scaled(context), 0)
|
||||
])),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop(true);
|
||||
},
|
||||
child: Row(mainAxisSize: MainAxisSize.min, children: [
|
||||
const Icon(Icons.check, size: 16).paddingLTRB(0, 0, 4, 0),
|
||||
Text(translate('button.yes')).paddingLTRB(0, 0, 4, 0)
|
||||
Icon(Icons.check, size: 16.scaled(context))
|
||||
.paddingLTRB(0, 0, 4.scaled(context), 0),
|
||||
Text(translate('button.yes'))
|
||||
.paddingLTRB(0, 0, 4.scaled(context), 0)
|
||||
]))
|
||||
]).paddingAll(24)
|
||||
]).paddingAll(24.scaled(context))
|
||||
]));
|
||||
if (confirmed != null && confirmed) {
|
||||
try {
|
||||
|
@ -250,6 +262,7 @@ class _EditAccountPageState extends WindowSetupState<EditAccountPage> {
|
|||
|
||||
return StyledScaffold(
|
||||
appBar: DefaultAppBar(
|
||||
context: context,
|
||||
title: Text(translate('edit_account_page.titlebar')),
|
||||
leading: Navigator.canPop(context)
|
||||
? IconButton(
|
||||
|
@ -277,6 +290,7 @@ class _EditAccountPageState extends WindowSetupState<EditAccountPage> {
|
|||
const SignalStrengthMeterWidget(),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.settings),
|
||||
iconSize: 24.scaled(context),
|
||||
tooltip: translate('menu.settings_tooltip'),
|
||||
onPressed: () async {
|
||||
await GoRouterHelper(context).push('/settings');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue