feat(color): More compact Flight Mode list and edit views (#3344)

* Flight mode list and edit changes:
- Update trim ranges in Companion to match radio.
- Move trims setup to main edit view instead of dialog popup.
- Show/edit current trim value for each trim (if enabled)

* Show flight mode list view like logical switches.

* Update FM trim values in edit window if trim is changed (via trim switch).

* Use styles for layout

* Remove grid layouts - use flex flow as it is faster.

* Speed up page build time.
Reduces build time on TX16S Mk2 from ~320ms to ~25ms.

* Fix touch screen events.
This commit is contained in:
philmoz
2023-03-27 11:43:44 +10:00
committed by GitHub
parent 7e581d00dd
commit ebef94d993
4 changed files with 447 additions and 229 deletions
@@ -575,9 +575,9 @@ int OpenTxFirmware::getCapability(::Capability capability)
case ExtraInputs:
return 1;
case TrimsRange:
return 125;
return 128;
case ExtendedTrimsRange:
return 500;
return 512;
case Simulation:
return 1;
case NumCurves: