white search bar

This commit is contained in:
Krzosa Karol
2025-05-08 22:56:47 +02:00
parent a1282af0b5
commit bc9be4927b
2 changed files with 4 additions and 9 deletions

View File

@@ -6,7 +6,6 @@
- Add metadata to Lua bindings so that we would get a better listing (function args?, what else?) - 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) - rules, interface for opening files using the F4 (aka next path from build output)
- for now add ./ and .\ to valid line starters - 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!) - Kill buffer command (it should be marked for deletion and deleted at the end of frame!)
- Delete directory/file on disk command - Delete directory/file on disk command
- Create directory command (probably should enter it automatically - Create directory command (probably should enter it automatically

View File

@@ -122,7 +122,7 @@ void DrawWindow(Window *window, Event &event) {
Color color_sub_caret = ColorSubCaret; Color color_sub_caret = ColorSubCaret;
Color color_text_line_numbers = ColorTextLineNumbers; Color color_text_line_numbers = ColorTextLineNumbers;
Color color_text = ColorText; Color color_text = ColorText;
if (window->is_title_bar) { if (window->is_title_bar || window->is_search_bar) {
if (is_active) { if (is_active) {
color_background = ColorTitleBarActiveBackground; color_background = ColorTitleBarActiveBackground;
} else { } 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 // Draw highlight
Int front = GetFront(it); Int front = GetFront(it);
@@ -269,12 +269,8 @@ void DrawWindow(Window *window, Event &event) {
DrawRect(window->total_rect, {255, 255, 255, 25}); DrawRect(window->total_rect, {255, 255, 255, 25});
} }
if (!is_active) { if (!is_actib) {
SetScissor(screen_rect); SetScissor(screen_rect);
if (window->is_title_bar) { DrawRect(window->total_rect, ColorInactiveWindow);
} else {
DrawRect(window->total_rect, ColorInactiveWindow);
}
} }
} }