reduce button padding by 1

This commit is contained in:
gagarinlg
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent c29ec6edfe
commit 6fade548fc
+1 -1
View File
@@ -94,7 +94,7 @@ void TabsCarousel::update()
while(buttons.size() < menu->tabs.size())
{
int index = buttons.size();
rect_t btnCoords = {(int)(index * (MENU_HEADER_BUTTON_WIDTH + 2)), 0, (int)(MENU_HEADER_BUTTON_WIDTH + 3), int(MENU_TITLE_TOP + 5)};
rect_t btnCoords = {(int)(index * (MENU_HEADER_BUTTON_WIDTH + 1)), 0, (int)(MENU_HEADER_BUTTON_WIDTH + 3), int(MENU_TITLE_TOP + 5)};
buttons.emplace_back(new TabCarouselButton(this, btnCoords, menu->tabs, index,
[&, index](){
menu->setCurrentTab(index);