secondary_window_stylw
This commit is contained in:
@@ -118,7 +118,7 @@ void DrawWindow(Window *window, Event &event) {
|
|||||||
Color color_text_line_numbers = LineNumberTextColor;
|
Color color_text_line_numbers = LineNumberTextColor;
|
||||||
Color color_text = TextColor;
|
Color color_text = TextColor;
|
||||||
|
|
||||||
if (window->draw_darker) {
|
if (window->secondary_window_style) {
|
||||||
color_background = SecondaryWindowStyle_BackgroundColor;
|
color_background = SecondaryWindowStyle_BackgroundColor;
|
||||||
color_selection = SecondaryWindowStyle_SelectionColor;
|
color_selection = SecondaryWindowStyle_SelectionColor;
|
||||||
color_text = SecondaryWindowStyle_TextColor;
|
color_text = SecondaryWindowStyle_TextColor;
|
||||||
@@ -287,7 +287,7 @@ void DrawWindow(Window *window, Event &event) {
|
|||||||
DrawRect(window->total_rect, {255, 255, 255, 25});
|
DrawRect(window->total_rect, {255, 255, 255, 25});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window->draw_darker) {
|
if (window->secondary_window_style) {
|
||||||
SetScissor(window->total_rect);
|
SetScissor(window->total_rect);
|
||||||
Rect2I rect = window->total_rect;
|
Rect2I rect = window->total_rect;
|
||||||
DrawRect(CutTop(&rect, 1), SecondaryWindowStyle_OutlineColor);
|
DrawRect(CutTop(&rect, 1), SecondaryWindowStyle_OutlineColor);
|
||||||
|
|||||||
@@ -91,9 +91,6 @@ Array<String> ProcessEnviroment = {};
|
|||||||
struct CoData { mco_coro *co; String name; BlockArena arena; bool dont_wait_until_resolved; void *user_ctx; };
|
struct CoData { mco_coro *co; String name; BlockArena arena; bool dont_wait_until_resolved; void *user_ctx; };
|
||||||
Array<CoData> ActiveCoroutines;
|
Array<CoData> ActiveCoroutines;
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////
|
|
||||||
// CONFIG
|
|
||||||
Color GruvboxDark0Hard = {0x1d, 0x20, 0x21, 0xff};
|
Color GruvboxDark0Hard = {0x1d, 0x20, 0x21, 0xff};
|
||||||
Color GruvboxDark0 = {0x28, 0x28, 0x28, 0xff};
|
Color GruvboxDark0 = {0x28, 0x28, 0x28, 0xff};
|
||||||
Color GruvboxDark0Soft = {0x32, 0x30, 0x2f, 0xff};
|
Color GruvboxDark0Soft = {0x32, 0x30, 0x2f, 0xff};
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ struct Window {
|
|||||||
struct {
|
struct {
|
||||||
uint32_t draw_scrollbar : 1;
|
uint32_t draw_scrollbar : 1;
|
||||||
uint32_t draw_line_numbers : 1;
|
uint32_t draw_line_numbers : 1;
|
||||||
uint32_t draw_darker : 1;
|
uint32_t secondary_window_style : 1;
|
||||||
uint32_t draw_line_highlight : 1;
|
uint32_t draw_line_highlight : 1;
|
||||||
uint32_t visible : 1;
|
uint32_t visible : 1;
|
||||||
uint32_t layout : 1;
|
uint32_t layout : 1;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ void BuildWindowInit() {
|
|||||||
view->special = true;
|
view->special = true;
|
||||||
BuildViewID = view->id;
|
BuildViewID = view->id;
|
||||||
window->active_view = view->id;
|
window->active_view = view->id;
|
||||||
window->draw_darker = true;
|
window->secondary_window_style = true;
|
||||||
window->draw_line_highlight = true;
|
window->draw_line_highlight = true;
|
||||||
window->layout = false;
|
window->layout = false;
|
||||||
window->visible = false;
|
window->visible = false;
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ void CommandWindowInit() {
|
|||||||
window->active_view = view->id;
|
window->active_view = view->id;
|
||||||
window->draw_line_numbers = false;
|
window->draw_line_numbers = false;
|
||||||
window->draw_scrollbar = false;
|
window->draw_scrollbar = false;
|
||||||
window->draw_darker = true;
|
window->secondary_window_style = true;
|
||||||
window->draw_line_highlight = true;
|
window->draw_line_highlight = true;
|
||||||
window->layout = false;
|
window->layout = false;
|
||||||
window->visible = false;
|
window->visible = false;
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ void SearchWindowInit() {
|
|||||||
window->active_view = view->id;
|
window->active_view = view->id;
|
||||||
window->draw_line_numbers = false;
|
window->draw_line_numbers = false;
|
||||||
window->draw_scrollbar = false;
|
window->draw_scrollbar = false;
|
||||||
window->draw_darker = true;
|
window->secondary_window_style = true;
|
||||||
window->draw_line_highlight = false;
|
window->draw_line_highlight = false;
|
||||||
window->layout = false;
|
window->layout = false;
|
||||||
window->visible = false;
|
window->visible = false;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ void StatusWindowInit() {
|
|||||||
window->draw_line_numbers = false;
|
window->draw_line_numbers = false;
|
||||||
window->draw_scrollbar = false;
|
window->draw_scrollbar = false;
|
||||||
window->draw_line_highlight = true;
|
window->draw_line_highlight = true;
|
||||||
window->draw_darker = true;
|
window->secondary_window_style = true;
|
||||||
window->layout = false;
|
window->layout = false;
|
||||||
window->jump_history = false;
|
window->jump_history = false;
|
||||||
window->lose_focus_on_escape = true;
|
window->lose_focus_on_escape = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user