Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 733d01c

Browse files
authored
Merge pull request #16 from grouse/error_annotation_color
Add a color id for the error annotation string
2 parents 894fbaf + 61fb102 commit 733d01c

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

4coder_fleury.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@
144144
//
145145
// - fleury_color_comment_user_name: The color used to highlight the
146146
// username in comments.
147+
//
148+
// - fleury_color_error_annotation: Text color used for the inline error
149+
// message string with F4_RenderErrorAnnotations
147150

148151

149152
//- @f4_render_intro Rendering Features

4coder_fleury_colors.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ CUSTOM_ID(colors, fleury_color_token_minor_highlight);
2626
CUSTOM_ID(colors, fleury_color_comment_user_name);
2727
CUSTOM_ID(colors, fleury_color_lego_grab);
2828
CUSTOM_ID(colors, fleury_color_lego_splat);
29+
CUSTOM_ID(colors, fleury_color_error_annotation);
2930

3031
static ARGB_Color F4_ARGBFromID(Color_Table table, Managed_ID id, int subindex);
3132
static ARGB_Color F4_ARGBFromID(Color_Table table, Managed_ID id);

4coder_fleury_error_annotations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ F4_RenderErrorAnnotations(Application_Links *app, Buffer_ID buffer,
110110
draw_position.x = last_character_on_line_rect.x1 + 30;
111111
}
112112

113-
draw_string(app, face, jump_line, draw_position, 0xffff0000);
113+
draw_string(app, face, jump_line, draw_position, fcolor_id(fleury_color_error_annotation));
114114

115115
Mouse_State mouse_state = get_mouse_state(app);
116116
if(mouse_state.x >= region.x0 && mouse_state.x <= region.x1 &&

theme-fleury.4coder

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ fleury_color_cursor_power_mode = 0xffefaf2f;
5656
fleury_color_cursor_inactive = 0xFF880000;
5757
fleury_color_plot_cycle = { 0xff03d3fc, 0xff22b80b, 0xfff0bb0c, 0xfff0500c };
5858
fleury_color_token_highlight = 0x88dc7575;
59+
fleury_color_error_annotation = 0xffff0000;
5960
fleury_color_token_minor_highlight = 0x44dc7575;
6061
fleury_color_lego_grab = 0xffefaf6f;
6162
fleury_color_lego_splat = 0xffefaaef;
62-
fleury_color_comment_user_name = 0xffffff00;
63+
fleury_color_comment_user_name = 0xffffdd23;

0 commit comments

Comments
 (0)