Add Find: to search window
This commit is contained in:
@@ -263,6 +263,11 @@ void DrawWindow(Window *window, Event &event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SearchWindowID == window->id) {
|
||||||
|
SetScissor(window->line_numbers_rect);
|
||||||
|
DrawString(window->font, u"Find: ", ToVec2(window->line_numbers_rect.min), color_text_line_numbers);
|
||||||
|
}
|
||||||
|
|
||||||
// Draw scrollbar
|
// Draw scrollbar
|
||||||
if (window->draw_scrollbar) {
|
if (window->draw_scrollbar) {
|
||||||
ProfileScope(DrawScrollbar);
|
ProfileScope(DrawScrollbar);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ void SearchWindowInit() {
|
|||||||
window->draw_line_numbers = false;
|
window->draw_line_numbers = false;
|
||||||
window->draw_scrollbar = false;
|
window->draw_scrollbar = false;
|
||||||
window->draw_darker = true;
|
window->draw_darker = true;
|
||||||
window->draw_line_highlight = true;
|
window->draw_line_highlight = false;
|
||||||
window->layout = false;
|
window->layout = false;
|
||||||
window->visible = false;
|
window->visible = false;
|
||||||
window->lose_visibility_on_escape = true;
|
window->lose_visibility_on_escape = true;
|
||||||
@@ -29,6 +29,7 @@ void SearchWindowLayout(Rect2I *rect, Int wx, Int wy) {
|
|||||||
}
|
}
|
||||||
Int barsize = GetExpandingBarSize(n);
|
Int barsize = GetExpandingBarSize(n);
|
||||||
n->document_rect = n->total_rect = CutBottom(rect, barsize);
|
n->document_rect = n->total_rect = CutBottom(rect, barsize);
|
||||||
|
n->line_numbers_rect = CutLeft(&n->document_rect, n->font->char_spacing * 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Command_Search() {
|
void Command_Search() {
|
||||||
|
|||||||
Reference in New Issue
Block a user