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?)
- 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

View File

@@ -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);
}
}