mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix(tui/dialogs): ensure all popups use theme bg/fg and border; update /resume, list/verbosity/reasoning selections, Chrome options, and diff confirm dialog
This commit is contained in:
@@ -133,12 +133,14 @@ impl<'a> BottomPaneView<'a> for ChromeSelectionView {
|
||||
}
|
||||
|
||||
fn render(&self, area: Rect, buf: &mut Buffer) {
|
||||
// Create the selection box
|
||||
// Create the selection box with theme-aware styling
|
||||
Clear.render(area, buf);
|
||||
let block = Block::default()
|
||||
.borders(Borders::ALL)
|
||||
.title(" Chrome Launch Options ")
|
||||
.title_alignment(Alignment::Center)
|
||||
.border_style(Style::default().fg(crate::colors::primary()));
|
||||
.style(Style::default().bg(crate::colors::background()).fg(crate::colors::text()))
|
||||
.border_style(Style::default().fg(crate::colors::border()));
|
||||
|
||||
let inner = block.inner(area);
|
||||
block.render(area, buf);
|
||||
@@ -208,7 +210,9 @@ impl<'a> BottomPaneView<'a> for ChromeSelectionView {
|
||||
width: inner.width.saturating_sub(1),
|
||||
height: inner.height,
|
||||
};
|
||||
let paragraph = Paragraph::new(lines).alignment(Alignment::Left);
|
||||
let paragraph = Paragraph::new(lines)
|
||||
.alignment(Alignment::Left)
|
||||
.style(Style::default().bg(crate::colors::background()).fg(crate::colors::text()));
|
||||
paragraph.render(padded, buf);
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ impl BottomPaneView<'_> for ListSelectionView {
|
||||
let block = Block::default()
|
||||
.borders(Borders::ALL)
|
||||
.border_style(Style::default().fg(crate::colors::border()))
|
||||
.style(Style::default().bg(crate::colors::background()))
|
||||
.style(Style::default().bg(crate::colors::background()).fg(crate::colors::text()))
|
||||
.title(self.title.clone())
|
||||
.title_alignment(Alignment::Center);
|
||||
let inner = block.inner(area);
|
||||
|
||||
@@ -142,7 +142,7 @@ impl<'a> BottomPaneView<'a> for ReasoningSelectionView {
|
||||
let block = Block::default()
|
||||
.borders(Borders::ALL)
|
||||
.border_style(Style::default().fg(crate::colors::border()))
|
||||
.style(Style::default().bg(crate::colors::background()))
|
||||
.style(Style::default().bg(crate::colors::background()).fg(crate::colors::text()))
|
||||
.title(" Select Reasoning Effort ")
|
||||
.title_alignment(Alignment::Center);
|
||||
|
||||
|
||||
@@ -133,10 +133,11 @@ impl<'a> BottomPaneView<'a> for VerbositySelectionView {
|
||||
// Clear the area first
|
||||
Clear.render(area, buf);
|
||||
|
||||
// Create a centered box
|
||||
// Create a centered box with theme-aware styling
|
||||
let block = Block::default()
|
||||
.borders(Borders::ALL)
|
||||
.border_style(Style::default().fg(crate::colors::light_blue()))
|
||||
.border_style(Style::default().fg(crate::colors::border()))
|
||||
.style(Style::default().bg(crate::colors::background()).fg(crate::colors::text()))
|
||||
.title(" Select Text Verbosity ")
|
||||
.title_alignment(Alignment::Center);
|
||||
|
||||
@@ -195,7 +196,9 @@ impl<'a> BottomPaneView<'a> for VerbositySelectionView {
|
||||
width: inner_area.width.saturating_sub(1),
|
||||
height: inner_area.height,
|
||||
};
|
||||
let paragraph = Paragraph::new(lines).alignment(Alignment::Left);
|
||||
let paragraph = Paragraph::new(lines)
|
||||
.alignment(Alignment::Left)
|
||||
.style(Style::default().bg(crate::colors::background()).fg(crate::colors::text()));
|
||||
paragraph.render(padded, buf);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user