Resize field type selection to fit screen

This commit is contained in:
Jasper Blanckenburg 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);

View File

@ -516,14 +516,14 @@
"X": 15,
"Y": 48,
"Width": 450,
"Height": 305,
"Height": 257,
"Components": [
{
"Type": "ScrollWheel",
"Name": "fieldTypeSelection",
"Y": 80,
"Width": 150,
"Height": 225,
"Height": 177,
"Visible": false,
"SelectedItemOffset": 94,
"IsCircular": true,