Skip to content

Commit

Permalink
Fix consistency of close button, related to #550
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Dec 15, 2023
1 parent 44577e6 commit e5455f5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/lib/dialogs/area/dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AreasDialog extends StatelessWidget {
children: [
Header(
title: Text(AppLocalizations.of(context).areas),
leading: IconButton(
leading: IconButton.outlined(
icon: const PhosphorIcon(PhosphorIconsLight.x),
onPressed: () => Navigator.of(context).pop(),
tooltip: AppLocalizations.of(context).close,
Expand Down
2 changes: 1 addition & 1 deletion app/lib/dialogs/search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class _SearchDialogState extends State<SearchDialog> {
),
),
const SizedBox(width: 8),
IconButton(
IconButton.outlined(
icon: const PhosphorIcon(PhosphorIconsLight.x),
onPressed: () => Navigator.pop(context),
tooltip: AppLocalizations.of(context).close,
Expand Down
16 changes: 8 additions & 8 deletions app/lib/dialogs/sync.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ class _SyncDialogState extends State<SyncDialog> {
children: [
Header(
title: Text(status.getLocalizedName(context)),
leading: IconButton(
icon: PhosphorIcon(status.getIcon()),
onPressed: () => service.sync(),
tooltip: status.getLocalizedName(context),
),
actions: [
IconButton(
icon: const PhosphorIcon(PhosphorIconsLight.x),
onPressed: () => Navigator.pop(context),
tooltip: AppLocalizations.of(context).close,
icon: PhosphorIcon(status.getIcon()),
onPressed: () => service.sync(),
tooltip: status.getLocalizedName(context),
),
],
leading: IconButton.outlined(
icon: const PhosphorIcon(PhosphorIconsLight.x),
onPressed: () => Navigator.pop(context),
tooltip: AppLocalizations.of(context).close,
),
),
const Divider(),
SingleChildScrollView(
Expand Down
2 changes: 1 addition & 1 deletion app/lib/dialogs/template.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class _TemplateDialogState extends State<TemplateDialog> {
children: [
Header(
title: Text(AppLocalizations.of(context).templates),
leading: IconButton(
leading: IconButton.outlined(
icon: const PhosphorIcon(PhosphorIconsLight.x),
onPressed: () => Navigator.of(context).pop(),
tooltip: AppLocalizations.of(context).close,
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/83.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Improve performance when saving ([#547](https://github.com/LinwoodDev/Butterfly/issues/547))
* Improve mobile add dialog
* Improve selected icons in settings
* Improve consistency of close button ([#550](https://github.com/LinwoodDev/Butterfly/issues/550))
* Rename default locale to system locale
* Fix calling onScale to tools on moving on touch devices ([#546](https://github.com/LinwoodDev/Butterfly/issues/546))
* Fix exporting documents as png or svg
Expand Down

0 comments on commit e5455f5

Please sign in to comment.