Settings actions: theme colours and filled confirm buttons
Reboot and Delete All Paths rows use scheme.tertiary and scheme.error instead of fixed palette colours. Their dialogs use showConfirmClearDialog, which gains confirmLabel and warning options. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0aa867e40e
commit
c45424adaa
5 files changed
+103
-74
No files matched your search
@@ -156,7 +156,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act
|
||||
- `FilledButton.tonal`: a secondary action that still needs weight (rare).
|
||||
- `OutlinedButton(.icon)`: secondary actions next to a filled one.
|
||||
- `TextButton`: Cancel and low-emphasis actions in dialogs; inline actions in cards.
|
||||
- Destructive confirm: `FilledButton` with `backgroundColor: scheme.error`, `foregroundColor: scheme.onError` (`showConfirmClearDialog` in `widgets/confirm_clear_dialog.dart`), or a `TextButton` with `foregroundColor: scheme.error` when it is not the primary action.
|
||||
- Destructive confirm: `FilledButton` with `backgroundColor: scheme.error`, `foregroundColor: scheme.onError` (`showConfirmClearDialog` in `widgets/confirm_clear_dialog.dart`), or a `TextButton` with `foregroundColor: scheme.error` when it is not the primary action. Use `showConfirmClearDialog(confirmLabel:)` for any confirm dialog; `warning: true` makes the button `scheme.tertiary` for disruptive, non-destructive actions (Reboot in Settings).
|
||||
- Dialog action order: Cancel first, primary last.
|
||||
- Avoid `ElevatedButton` in new code.
|
||||
|
||||
|
||||
@@ -210,7 +210,7 @@ One-tap device operations:
|
||||
| Sync Time | Sends current Unix timestamp to the device |
|
||||
| Refresh Contacts | Re-requests the full contact list |
|
||||
| Reboot Device | Confirmation dialog → reboots the device (shown in warning color) |
|
||||
| Delete All Paths | Confirmation dialog → clears all stored routing paths (shown in alert color) |
|
||||
| Delete All Paths | Confirmation dialog → clears all stored routing paths (shown in error color) |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user