diff --git a/src/text_editor/todo.txt b/src/text_editor/todo.txt index 220ed75..b6bf85b 100644 --- a/src/text_editor/todo.txt +++ b/src/text_editor/todo.txt @@ -6,7 +6,6 @@ - Add metadata to Lua bindings so that we would get a better listing (function args?, what else?) - rules, interface for opening files using the F4 (aka next path from build output) - for now add ./ and .\ to valid line starters -- make search bar standout!! - Kill buffer command (it should be marked for deletion and deleted at the end of frame!) - Delete directory/file on disk command - Create directory command (probably should enter it automatically diff --git a/src/text_editor/window_draw.cpp b/src/text_editor/window_draw.cpp index 32fcee9..bdf0a9e 100644 --- a/src/text_editor/window_draw.cpp +++ b/src/text_editor/window_draw.cpp @@ -122,7 +122,7 @@ void DrawWindow(Window *window, Event &event) { Color color_sub_caret = ColorSubCaret; Color color_text_line_numbers = ColorTextLineNumbers; Color color_text = ColorText; - if (window->is_title_bar) { + if (window->is_title_bar || window->is_search_bar) { if (is_active) { color_background = ColorTitleBarActiveBackground; } else { @@ -174,7 +174,7 @@ void DrawWindow(Window *window, Event &event) { } } } - } else if (!window->is_title_bar) { + } else if (!window->is_title_bar && !window->is_search_bar) { // // Draw highlight Int front = GetFront(it); @@ -269,12 +269,8 @@ void DrawWindow(Window *window, Event &event) { DrawRect(window->total_rect, {255, 255, 255, 25}); } - if (!is_active) { + if (!is_actib) { SetScissor(screen_rect); - if (window->is_title_bar) { - - } else { - DrawRect(window->total_rect, ColorInactiveWindow); - } + DrawRect(window->total_rect, ColorInactiveWindow); } }