This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 68204ae3668064adc89718b742362c1735661bfb Author: Claus Ibsen <[email protected]> AuthorDate: Mon Jul 27 20:18:43 2026 +0200 camel-tui: Highlight focused panel border in Overview tab Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../camel/dsl/jbang/core/commands/tui/OverviewTab.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/OverviewTab.java b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/OverviewTab.java index 1636ac13334c..0b800326d620 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/OverviewTab.java +++ b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/OverviewTab.java @@ -573,13 +573,17 @@ class OverviewTab extends AbstractTab { }; } + String integrationTitle = infraCount > 0 ? " Integrations " : " Overview "; + Style intBorderStyle = infraFocused ? Theme.muted() : Style.EMPTY.fg(Theme.accent()); + Style intTitleStyle = infraFocused ? Style.EMPTY.fg(Theme.accent()) : Theme.title(); Table.Builder tableBuilder = Table.builder() .rows(rows) .header(header) .widths(widths) .highlightSpacing(Table.HighlightSpacing.ALWAYS) .block(Block.builder().borderType(BorderType.ROUNDED).borders(Borders.ALL) - .title(infraCount > 0 ? " Integrations " : " Overview ").build()); + .borderStyle(intBorderStyle) + .title(Title.from(Line.from(Span.styled(integrationTitle, intTitleStyle)))).build()); if (!infraFocused) { tableBuilder.highlightStyle(Theme.selectionBg()); } @@ -988,7 +992,11 @@ class OverviewTab extends AbstractTab { Constraint.fill()) .highlightSpacing(Table.HighlightSpacing.ALWAYS) .block(Block.builder().borderType(BorderType.ROUNDED).borders(Borders.ALL) - .title(" Dev/Infra Services ").build()); + .borderStyle(infraFocused ? Style.EMPTY.fg(Theme.accent()) : Theme.muted()) + .title(Title.from(Line.from( + Span.styled(" Dev/Infra Services ", + infraFocused ? Theme.title() : Style.EMPTY.fg(Theme.accent()))))) + .build()); if (infraFocused) { infraBuilder.highlightStyle(Theme.selectionBg()); }
