From 2bde5a6d084732617c606fc9c87ff6a390c3c32f Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 1 May 2014 19:41:52 +0200 Subject: [PATCH] CTestMenu: set dynamic size of buttons, use 1/10 of footer width --- src/gui/test_menu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index 5b7db682e..58564da82 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -550,8 +550,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey) footer->setIcon(NEUTRINO_ICON_INFO); //add button labels with conventional button label struct - footer->setButtonLabels(TestButtons, TestButtonsCount, 0, 150); - + footer->setButtonLabels(TestButtons, TestButtonsCount, 0, footer->getWidth()/10); //also possible: use directly button name and as 2nd parameter string or locale as text // footer->setButtonLabel(NEUTRINO_ICON_BUTTON_RED, "This is a button label text!", 0, 250);