From: Shan Shaji <s.shaji@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve_flutter_frontend] fix: ui: improve snackbar error readability using default m3 colors
Date: Tue, 23 Dec 2025 14:20:15 +0100 [thread overview]
Message-ID: <20251223132015.172247-1-s.shaji@proxmox.com> (raw)
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
reply other threads:[~2025-12-23 13:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251223132015.172247-1-s.shaji@proxmox.com \
--to=s.shaji@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox