Title bar adjust looks
This commit is contained in:
@@ -47,9 +47,9 @@ Color ColorWhitespaceDuringSelection = GruvboxLight4;
|
||||
Color ColorScrollbarBackground = GruvboxLight2;
|
||||
Color ColorScrollbarScroller = GruvboxLight1;
|
||||
Color ColorScrollbarScrollerSelected = GruvboxLight0Hard;
|
||||
Color ColorTitleBarText = GruvboxDark0Hard;
|
||||
Color ColorTitleBarBackground = GruvboxLight2;
|
||||
Color ColorTitleBarSelection = GruvboxLight1;
|
||||
Color ColorTitleBarText = GruvboxDark2;
|
||||
Color ColorTitleBarBackground = GruvboxLight1;
|
||||
Color ColorTitleBarSelection = GruvboxLight3;
|
||||
String BaseLuaConfig = R"==(
|
||||
local GruvboxDark0Hard = 0x1d2021ff
|
||||
local GruvboxDark0 = 0x282828ff
|
||||
@@ -101,9 +101,9 @@ Color.WhitespaceDuringSelection = GruvboxLight4
|
||||
Color.ScrollbarBackground = GruvboxLight2
|
||||
Color.ScrollbarScroller = GruvboxLight1
|
||||
Color.ScrollbarScrollerSelected = GruvboxLight0Hard
|
||||
Color.TitleBarText = GruvboxDark0Hard
|
||||
Color.TitleBarBackground = GruvboxLight2
|
||||
Color.TitleBarSelection = GruvboxLight1
|
||||
Color.TitleBarText = GruvboxDark2
|
||||
Color.TitleBarBackground = GruvboxLight1
|
||||
Color.TitleBarSelection = GruvboxLight3
|
||||
|
||||
-- @todo: should we rewrite linux paths to windows on windows and vice-versa?
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ Array<Int> GetWindowZOrder(Allocator allocator) {
|
||||
}
|
||||
|
||||
Window *CreateInfobar(Window *parent_window) {
|
||||
Window *window = CreateWindow();
|
||||
window->draw_scrollbar = false;
|
||||
window->draw_line_numbers = false;
|
||||
Window *window = CreateWindow();
|
||||
window->draw_scrollbar = false;
|
||||
// window->draw_line_numbers = false;
|
||||
window->dont_save_in_active_window_history = true;
|
||||
window->deactivate_on_escape = true;
|
||||
window->is_title_bar = true;
|
||||
@@ -34,10 +34,10 @@ void InitWindows(View *null_view) {
|
||||
Allocator sys_allocator = GetSystemAllocator();
|
||||
|
||||
{
|
||||
Window *window = CreateWindow();
|
||||
window->draw_line_numbers = false;
|
||||
Buffer *buffer = CreateBuffer(sys_allocator, "*load_text_a*");
|
||||
View *view = CreateView(buffer->id);
|
||||
Window *window = CreateWindow();
|
||||
// window->draw_line_numbers = false;
|
||||
Buffer *buffer = CreateBuffer(sys_allocator, "*load_text_a*");
|
||||
View *view = CreateView(buffer->id);
|
||||
LoadTextA(buffer);
|
||||
LoadUnicode(buffer);
|
||||
window->active_view = view->id;
|
||||
@@ -138,7 +138,7 @@ void LayoutWindows() {
|
||||
int i = 0;
|
||||
Windows[i].total_rect = CutLeft(&screen_rect, (Int)((double)sizex * 0.5));
|
||||
Window *title_bar_window = GetWindow(Windows[i].title_bar_window);
|
||||
title_bar_window->total_rect = CutTop(&Windows[i].total_rect, FontLineSpacing);
|
||||
title_bar_window->total_rect = CutBottom(&Windows[i].total_rect, FontLineSpacing);
|
||||
Windows[i].document_rect = Windows[i].total_rect;
|
||||
title_bar_window->document_rect = title_bar_window->total_rect;
|
||||
if (Windows[i].draw_scrollbar) Windows[i].scrollbar_rect = CutRight(&Windows[i].document_rect, (Int)ScrollBarSize);
|
||||
@@ -148,7 +148,7 @@ void LayoutWindows() {
|
||||
int i = 2;
|
||||
Windows[i].total_rect = CutLeft(&screen_rect, (Int)((double)sizex));
|
||||
Window *title_bar_window = GetWindow(Windows[i].title_bar_window);
|
||||
title_bar_window->total_rect = CutTop(&Windows[i].total_rect, FontLineSpacing);
|
||||
title_bar_window->total_rect = CutBottom(&Windows[i].total_rect, FontLineSpacing);
|
||||
title_bar_window->document_rect = title_bar_window->total_rect;
|
||||
Windows[i].document_rect = Windows[i].total_rect;
|
||||
if (Windows[i].draw_scrollbar) Windows[i].scrollbar_rect = CutRight(&Windows[i].document_rect, (Int)ScrollBarSize);
|
||||
|
||||
Reference in New Issue
Block a user