main: improve some UX aesthetics
This commit is contained in:
+3
-2
@@ -135,7 +135,7 @@ impl App {
|
||||
fn draw_options(&mut self, frame: &mut Frame, area: Rect) {
|
||||
frame.render_stateful_widget(
|
||||
List::new(self.next_reply_options.clone())
|
||||
.block(Block::bordered().border_style(style::Color::LightGreen).title("Reply Options (Press 'Ctrl+R' to regenerate, Tab to use)"))
|
||||
.block(Block::bordered().border_style(style::Color::LightGreen).title("Reply Options (Press 'Ctrl+R' to regenerate, Ctrl+Enter to use)"))
|
||||
.style(ratatui::style::Color::White)
|
||||
.highlight_symbol("> ")
|
||||
.highlight_style(style::Style::new().bold().fg(style::Color::Cyan)),
|
||||
@@ -147,7 +147,7 @@ impl App {
|
||||
fn draw_user_input(&mut self, frame: &mut Frame, area: Rect) {
|
||||
let width = area.width.max(3) - 3;
|
||||
let scroll = self.user_input.visual_scroll(width as usize);
|
||||
let input = Paragraph::new(self.user_input.value()).block(Block::bordered().border_type(BorderType::LightDoubleDashed).title("User Input")).scroll((0, scroll as u16));
|
||||
let input = Paragraph::new(self.user_input.value()).block(Block::bordered().border_type(BorderType::LightDoubleDashed).title("User Input (Press 'Ctrl-X' to start/stop audio transcription)")).scroll((0, scroll as u16));
|
||||
frame.render_widget(input, area);
|
||||
let x = self.user_input.visual_cursor().max(scroll);
|
||||
frame.set_cursor_position((area.x + x as u16 + 1, area.y + 1));
|
||||
@@ -339,6 +339,7 @@ impl App {
|
||||
"/bandcamp" => {
|
||||
self.add_bandcamp_artifact(arg).await;
|
||||
self.scene.insert_conversation(ConversationEntry::SystemMessage(format!("Added Bandcamp artifact from {}", arg)));
|
||||
self.scene.insert_conversation(ConversationEntry::ShipComputer(format!("Incoming transmission.")));
|
||||
},
|
||||
"/episode" => {
|
||||
if let Ok(episode_number) = arg.trim().parse::<u32>() {
|
||||
|
||||
Reference in New Issue
Block a user