Modal cursor recoloring

This commit is contained in:
PS 2024-02-10 15:43:16 -08:00
parent 7aa033783c
commit 8552305ecc
2 changed files with 11 additions and 15 deletions

View File

@ -850,21 +850,15 @@ draw_original_4coder_style_cursor_mark_highlight(Application_Links *app, View_ID
i64 cursor_pos = view_get_cursor_pos(app, view_id); i64 cursor_pos = view_get_cursor_pos(app, view_id);
i64 mark_pos = view_get_mark_pos(app, view_id); i64 mark_pos = view_get_mark_pos(app, view_id);
if (is_active_view){ if (is_active_view){
draw_character_block(app, text_layout_id, cursor_pos, roundness, Modal_Mode* mode_curr = modal_get_mode_curr();
fcolor_id(defcolor_cursor, cursor_sub_id)); FColor c0 = mode_curr->cursor_color;
paint_text_color_pos(app, text_layout_id, cursor_pos, FColor c1 = fcolor_id(defcolor_at_cursor);
fcolor_id(defcolor_at_cursor)); draw_character_block(app, text_layout_id, cursor_pos, roundness, c0);
draw_character_wire_frame(app, text_layout_id, mark_pos, paint_text_color_pos(app, text_layout_id, cursor_pos, c1);
roundness, outline_thickness, draw_character_wire_frame(app, text_layout_id, mark_pos, roundness, outline_thickness, c0);
fcolor_id(defcolor_mark)); } else {
} draw_character_wire_frame(app, text_layout_id, mark_pos, roundness, outline_thickness, fcolor_id(defcolor_mark));
else{ draw_character_wire_frame(app, text_layout_id, cursor_pos, roundness, outline_thickness, fcolor_id(defcolor_cursor, cursor_sub_id));
draw_character_wire_frame(app, text_layout_id, mark_pos,
roundness, outline_thickness,
fcolor_id(defcolor_mark));
draw_character_wire_frame(app, text_layout_id, cursor_pos,
roundness, outline_thickness,
fcolor_id(defcolor_cursor, cursor_sub_id));
} }
} }
} }

View File

@ -12,4 +12,6 @@ struct Modal_Mode
typedef CUSTOM_COMMAND_SIG(custom_cmd); typedef CUSTOM_COMMAND_SIG(custom_cmd);
function Modal_Mode* modal_get_mode_curr();
#endif //FRED_MODAL_H #endif //FRED_MODAL_H