HIGHLIGHT MODE
This commit is contained in:
@@ -20,6 +20,8 @@ pub fn render_login(
|
||||
login_state: &LoginState,
|
||||
app_state: &AppState,
|
||||
is_edit_mode: bool,
|
||||
is_highlight_mode: bool,
|
||||
highlight_anchor: Option<(usize, usize)>,
|
||||
) {
|
||||
// Main container
|
||||
let block = Block::default()
|
||||
@@ -56,6 +58,8 @@ pub fn render_login(
|
||||
&[&login_state.username, &login_state.password],
|
||||
theme,
|
||||
is_edit_mode,
|
||||
is_highlight_mode,
|
||||
highlight_anchor,
|
||||
);
|
||||
|
||||
// --- ERROR MESSAGE ---
|
||||
|
||||
@@ -22,6 +22,8 @@ pub fn render_register(
|
||||
state: &RegisterState, // Use RegisterState
|
||||
app_state: &AppState,
|
||||
is_edit_mode: bool,
|
||||
is_highlight_mode: bool,
|
||||
highlight_anchor: Option<(usize, usize)>,
|
||||
) {
|
||||
let block = Block::default()
|
||||
.borders(Borders::ALL)
|
||||
@@ -64,6 +66,8 @@ pub fn render_register(
|
||||
&state.inputs().iter().map(|s| *s).collect::<Vec<&String>>(), // Pass inputs directly
|
||||
theme,
|
||||
is_edit_mode,
|
||||
is_highlight_mode,
|
||||
highlight_anchor,
|
||||
);
|
||||
|
||||
// --- HELP TEXT ---
|
||||
|
||||
Reference in New Issue
Block a user