Skip to content

Commit e95c3a6

Browse files
Update main.cpp
1 parent b21b509 commit e95c3a6

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/glide_ui/main.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ void apply_terminal_key(UiState& state, const std::string& line)
844844
state.selected_row = std::min(std::max(0, state.row_count - 1), state.selected_row + 1);
845845
rebuild_ui(state);
846846
} else {
847-
index = std::min(8, index + 1);
847+
index = std::min(9, index + 1);
848848
set_active_panel(state, static_cast<SidebarPanel>(index));
849849
}
850850
} else if (key == "left" || key == "back") {
@@ -1445,28 +1445,28 @@ void build_sidebar(UiState& state, std::uint32_t width, std::uint32_t height)
14451445
lv_obj_set_size(rail, menu_width, menu_height);
14461446
lv_obj_align(rail, LV_ALIGN_LEFT_MID, 14, 0);
14471447
lv_obj_set_flex_flow(rail, LV_FLEX_FLOW_COLUMN);
1448-
lv_obj_set_style_pad_top(rail, 24, 0);
1449-
lv_obj_set_style_pad_bottom(rail, 12, 0);
1448+
lv_obj_set_style_pad_top(rail, 16, 0);
1449+
lv_obj_set_style_pad_bottom(rail, 8, 0);
14501450
lv_obj_set_style_pad_left(rail, 0, 0);
14511451
lv_obj_set_style_pad_right(rail, 0, 0);
14521452
lv_obj_set_style_pad_row(rail, 2, 0);
14531453

14541454
auto* brand = label(rail, "OPENHD", &lv_font_montserrat_20, 0xffffff);
14551455
lv_obj_set_width(brand, LV_PCT(100));
14561456
lv_obj_set_style_pad_left(brand, 26, 0);
1457-
lv_obj_set_height(brand, 36);
1457+
lv_obj_set_height(brand, 32);
14581458

14591459
auto* accent = lv_obj_create(rail);
14601460
set_panel_style(accent, 0xff8a00);
14611461
lv_obj_set_size(accent, 70, 1);
14621462
lv_obj_set_style_margin_left(accent, 38, 0);
1463-
lv_obj_set_style_margin_bottom(accent, 14, 0);
1463+
lv_obj_set_style_margin_bottom(accent, 8, 0);
14641464

14651465
for (int i = 0; i < 10; ++i) {
14661466
auto* button = lv_button_create(rail);
14671467
state.nav_buttons[i] = button;
14681468
lv_obj_set_user_data(button, reinterpret_cast<void*>(static_cast<std::intptr_t>(i)));
1469-
lv_obj_set_size(button, LV_PCT(100), 42);
1469+
lv_obj_set_size(button, LV_PCT(100), 36);
14701470
lv_obj_set_style_radius(button, 6, 0);
14711471
lv_obj_set_style_border_width(button, 0, 0);
14721472
lv_obj_set_style_margin_left(button, 6, 0);
@@ -1491,7 +1491,7 @@ void build_sidebar(UiState& state, std::uint32_t width, std::uint32_t height)
14911491
lv_obj_set_flex_flow(row, LV_FLEX_FLOW_ROW);
14921492
lv_obj_set_flex_align(row, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER);
14931493
lv_obj_set_style_pad_left(row, 28, 0);
1494-
lv_obj_set_style_pad_column(row, 14, 0);
1494+
lv_obj_set_style_pad_column(row, 12, 0);
14951495

14961496
auto* icon = label(row, nav_symbol(i), &lv_font_montserrat_18, checked ? 0xff8a00 : 0xdce5ec);
14971497
lv_obj_set_width(icon, 24);
@@ -1503,7 +1503,7 @@ void build_sidebar(UiState& state, std::uint32_t width, std::uint32_t height)
15031503

15041504
auto* footer = lv_obj_create(rail);
15051505
set_panel_style(footer, 0x020d15, LV_OPA_TRANSP);
1506-
lv_obj_set_size(footer, LV_PCT(100), 32);
1506+
lv_obj_set_size(footer, LV_PCT(100), 28);
15071507
lv_obj_set_flex_flow(footer, LV_FLEX_FLOW_ROW);
15081508
lv_obj_set_flex_align(footer, LV_FLEX_ALIGN_SPACE_BETWEEN, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER);
15091509
lv_obj_set_style_pad_left(footer, 26, 0);

0 commit comments

Comments
 (0)