HIGHLIGHT MODE

This commit is contained in:
filipriec
2025-04-15 21:15:58 +02:00
parent f4689125e0
commit 2e9f8815d2
15 changed files with 225 additions and 30 deletions

View File

@@ -6,8 +6,8 @@ use crate::state::pages::canvas_state::CanvasState;
pub struct FormState {
pub id: i64,
pub fields: Vec<String>, // Use Vec<String> for dynamic field names
pub values: Vec<String>, // Store field values dynamically
pub fields: Vec<String>,
pub values: Vec<String>,
pub current_field: usize,
pub has_unsaved_changes: bool,
pub current_cursor_pos: usize,
@@ -33,6 +33,8 @@ impl FormState {
area: Rect,
theme: &Theme,
is_edit_mode: bool,
is_highlight_mode: bool,
highlight_anchor: Option<(usize, usize)>,
total_count: u64,
current_position: u64,
) {
@@ -48,6 +50,8 @@ impl FormState {
&values,
theme,
is_edit_mode,
is_highlight_mode,
highlight_anchor,
total_count,
current_position,
);