diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,7 +1,6 @@ /* @TODO: -- ted.h documentation -- document lsp.h and lsp.c. +- document lsp.h. - debug-lsp option (which logs LSP messages) - check LSP process status (TEST: what happens if LSP server is not installed) - make tags_dir the root folder @@ -876,7 +875,7 @@ int main(int argc, char **argv) { glViewport(0, 0, (GLsizei)window_width, (GLsizei)window_height); { // clear (background) float bg_color[4]; - rgba_u32_to_floats(ted_color(ted, COLOR_BG), bg_color); + rgba_u32_to_floats(ted_active_color(ted, COLOR_BG), bg_color); glClearColor(bg_color[0], bg_color[1], bg_color[2], bg_color[3]); } glClear(GL_COLOR_BUFFER_BIT); @@ -973,7 +972,7 @@ int main(int argc, char **argv) { } else { autocomplete_close(ted); text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.", - window_width * 0.5f, window_height * 0.5f, ted_color(ted, COLOR_TEXT_SECONDARY), ANCHOR_MIDDLE); + window_width * 0.5f, window_height * 0.5f, ted_active_color(ted, COLOR_TEXT_SECONDARY), ANCHOR_MIDDLE); text_render(font); } } @@ -1026,8 +1025,8 @@ int main(int argc, char **argv) { ted_color_settings_for_message_type(ted->message_type, &bg_color, &border_color); - gl_geometry_rect(r, ted_color(ted, bg_color)); - gl_geometry_rect_border(r, settings->border_thickness, ted_color(ted, border_color)); + gl_geometry_rect(r, ted_active_color(ted, bg_color)); + gl_geometry_rect_border(r, settings->border_thickness, ted_active_color(ted, border_color)); float text_x1 = rect_x1(r) + padding, text_x2 = rect_x2(r) - padding; float text_y1 = rect_y1(r) + padding; @@ -1039,7 +1038,7 @@ int main(int argc, char **argv) { text_state.x = text_x1; text_state.y = text_y1; text_state.wrap = true; - rgba_u32_to_floats(ted_color(ted, COLOR_TEXT), text_state.color); + rgba_u32_to_floats(ted_active_color(ted, COLOR_TEXT), text_state.color); text_utf8_with_state(font, &text_state, ted->message_shown); gl_geometry_draw(); text_render(font); |