]> git.proxmox.com Git - flutter/pve_flutter_frontend.git/commitdiff
task logs: crudely handle warnings
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Apr 2024 10:39:44 +0000 (12:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Apr 2024 10:39:49 +0000 (12:39 +0200)
needs some more thoughs and probably rework of the whole coloring
here, probably using more from the (dynamic) theme instead.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
lib/widgets/pve_task_log_widget.dart

index 062cb92c41da6a053048c581cb2297b5e575a0d3..97cbf035cf4eb01f16924689bd2879ce7b72b111 100644 (file)
@@ -198,6 +198,7 @@ class _PveTaskLogScrollViewState extends State<PveTaskLogScrollView> {
       child: ProxmoxStreamBuilder<PveTaskLogViewerBloc, PveTaskLogViewerState>(
           bloc: Provider.of<PveTaskLogViewerBloc>(context),
           builder: (context, state) {
+            // TODO: fix color (for dark theme) and better handle warnings
             var indicatorColor = Colors.teal.shade500;
             var statusChipColor = Colors.teal.shade100;
             if (state.status?.failed ?? false) {
@@ -276,7 +277,9 @@ class _PveTaskLogScrollViewState extends State<PveTaskLogScrollView> {
                                     style: TextStyle(
                                       color: isLast || errorLine
                                           ? Colors.white
-                                          : Colors.black,
+                                          : warningLine
+                                              ? Colors.orange.shade800
+                                              : Colors.black,
                                     ),
                                   ),
                                 ),