This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fix/camel-tui-cosmetic in repository https://gitbox.apache.org/repos/asf/camel.git
commit 15c7d5139e485f26ed3ed3c06fcd185142d56f09 Author: Claus Ibsen <[email protected]> AuthorDate: Fri May 15 19:19:44 2026 +0200 Remove all color styling from log tab to get clean baseline rendering Strip all Style/Color from renderLog and renderLogDetail: plain Span.raw for all cells, no dim/cyan/level-color on rows, no highlight color on the selected row, no RED/YELLOW on the detail panel text. Color will be added back incrementally once the garbage-on-tab-switch issue is resolved. --- .../dsl/jbang/core/commands/tui/CamelMonitor.java | 24 ++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java index 73044262afc2..4c019661522c 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java +++ b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java @@ -1921,28 +1921,27 @@ public class CamelMonitor extends CamelCommand { // Log table List<Row> rows = new ArrayList<>(); for (LogEntry entry : filteredLogEntries) { - Style levelStyle = colorStyleForLevel(entry.level); rows.add(Row.from( - Cell.from(Span.styled(entry.time, Style.EMPTY.dim())), - Cell.from(Span.styled(entry.level, levelStyle)), - Cell.from(Span.styled(entry.logger != null ? entry.logger : "", Style.EMPTY.fg(Color.CYAN))), - Cell.from(Span.styled(entry.message, levelStyle)))); + Cell.from(Span.raw(entry.time != null ? entry.time : "")), + Cell.from(Span.raw(entry.level != null ? entry.level : "")), + Cell.from(Span.raw(entry.logger != null ? entry.logger : "")), + Cell.from(Span.raw(entry.message != null ? entry.message : "")))); } String levelTitle = buildLevelFilterTitle(); Table logTable = Table.builder() .rows(rows) .header(Row.from( - Cell.from(Span.styled("TIME", Style.EMPTY.bold())), - Cell.from(Span.styled("LEVEL", Style.EMPTY.bold())), - Cell.from(Span.styled("LOGGER", Style.EMPTY.bold())), - Cell.from(Span.styled("MESSAGE", Style.EMPTY.bold())))) + Cell.from(Span.raw("TIME")), + Cell.from(Span.raw("LEVEL")), + Cell.from(Span.raw("LOGGER")), + Cell.from(Span.raw("MESSAGE")))) .widths( Constraint.length(12), Constraint.length(6), Constraint.length(20), Constraint.fill()) - .highlightStyle(Style.EMPTY.fg(Color.WHITE).bold().onBlue()) + .highlightStyle(Style.EMPTY) .highlightSpacing(Table.HighlightSpacing.ALWAYS) .block(Block.builder().borderType(BorderType.ROUNDED) .title(" Log " + levelTitle).build()) @@ -1959,8 +1958,7 @@ public class CamelMonitor extends CamelCommand { if (sel == null || sel < 0 || sel >= filteredLogEntries.size()) { frame.renderWidget( Paragraph.builder() - .text(Text.from(Line.from( - Span.styled(" Select a log entry", Style.EMPTY.dim())))) + .text(Text.from(Line.from(Span.raw(" Select a log entry")))) .block(Block.builder().borderType(BorderType.ROUNDED) .title(" Detail ").build()) .build(), @@ -1971,7 +1969,7 @@ public class CamelMonitor extends CamelCommand { LogEntry entry = filteredLogEntries.get(sel); frame.renderWidget( Paragraph.builder() - .text(Text.from(Line.from(Span.styled(entry.raw, colorStyleForLevel(entry.level))))) + .text(Text.from(Line.from(Span.raw(entry.raw != null ? entry.raw : "")))) .overflow(Overflow.WRAP_WORD) .block(Block.builder().borderType(BorderType.ROUNDED) .title(" " + entry.time + " " + entry.level + " ").build())
