Resize field type selection to fit screen

This commit is contained in:
2023-05-22 07:25:32 +02:00
parent bf1b81122e
commit 3e6bbe5e47
3 changed files with 5 additions and 5 deletions

View File

@ -98,7 +98,7 @@ protected:
touchgfx::TextArea brakeLabel;
touchgfx::Container dataFields;
touchgfx::ScrollWheel fieldTypeSelection;
touchgfx::DrawableListItems<DriverViewFieldSelection, 10> fieldTypeSelectionListItems;
touchgfx::DrawableListItems<DriverViewFieldSelection, 8> fieldTypeSelectionListItems;
DriverViewField field3;
DriverViewField field2;
DriverViewField field1;

View File

@ -138,8 +138,8 @@ DriverViewViewBase::DriverViewViewBase() :
add(brakeTemps);
dataFields.setPosition(15, 48, 450, 305);
fieldTypeSelection.setPosition(0, 80, 150, 225);
dataFields.setPosition(15, 48, 450, 257);
fieldTypeSelection.setPosition(0, 80, 150, 177);
fieldTypeSelection.setHorizontal(false);
fieldTypeSelection.setCircular(true);
fieldTypeSelection.setEasingEquation(touchgfx::EasingEquations::linearEaseOut);