[pve-devel] [PATCH pve-flutter-frontend 9/9] task log list: make warning icon more distinct

Dominik Csapak d.csapak at proxmox.com
Fri Apr 12 10:04:58 CEST 2024


by making it rounded (which appears as 'less dangerous').
Sadly the 'error' icon is not really usable for us, since it looks
almost the same as the 'info' icon (just 180 degree rotated).

We could use an 'outline' variant for either, but making the 'less
dangerous' one rounded feels alright.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 lib/widgets/pve_task_log_expansiontile_widget.dart | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/widgets/pve_task_log_expansiontile_widget.dart b/lib/widgets/pve_task_log_expansiontile_widget.dart
index 2ff5eb2..6491b6b 100644
--- a/lib/widgets/pve_task_log_expansiontile_widget.dart
+++ b/lib/widgets/pve_task_log_expansiontile_widget.dart
@@ -67,7 +67,11 @@ class _PveTaskExpansionTileState extends State<PveTaskExpansionTile> {
       collapsedBackgroundColor: Theme.of(context).colorScheme.background,
       key: PageStorageKey<PveClusterTasksModel>(widget.task),
       leading: Icon(
-        hasError || hasWarnings ? Icons.warning : Icons.info,
+        hasError
+            ? Icons.warning
+            : hasWarnings
+                ? Icons.warning_rounded
+                : Icons.info,
         color: hasError
             ? errorColor
             : hasWarnings
-- 
2.39.2





More information about the pve-devel mailing list