* [pve-devel] [PATCH pve_flutter_frontend] fix: ui: improve snackbar error readability using default m3 colors
@ 2025-12-23 13:20 Shan Shaji
0 siblings, 0 replies; only message in thread
From: Shan Shaji @ 2025-12-23 13:20 UTC (permalink / raw)
To: pve-devel
The snackbar error text was not user friendly and hard to read.
The text color was white, which made it difficult to read against
the low-saturation red background. To fix this, the background
color was updated to use the `error` color, and the text color was
updated to use the `onError` color from the Material baseline
color scheme.
Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
---
lib/widgets/proxmox_stream_builder_widget.dart | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/widgets/proxmox_stream_builder_widget.dart b/lib/widgets/proxmox_stream_builder_widget.dart
index a346b37..efcbd63 100644
--- a/lib/widgets/proxmox_stream_builder_widget.dart
+++ b/lib/widgets/proxmox_stream_builder_widget.dart
@@ -31,9 +31,11 @@ class _ProxmoxBaseStreamBuilderState<B extends ProxmoxBaseBloc<dynamic, S>,
SnackBar(
content: Text(
newState.errorMessage,
- style: ThemeData.dark().textTheme.labelLarge,
+ style: Theme.of(context).textTheme.labelLarge?.copyWith(
+ color: Theme.of(context).colorScheme.onError,
+ ),
),
- backgroundColor: ThemeData.dark().colorScheme.error,
+ backgroundColor: Theme.of(context).colorScheme.error,
),
);
}
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-23 13:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-23 13:20 [pve-devel] [PATCH pve_flutter_frontend] fix: ui: improve snackbar error readability using default m3 colors Shan Shaji
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.