* OffroadHome: move experimental mode button to right column
* OffroadHome: replace DriveStats with PrimeAd when no prime
* SetupWidget: remove PrimeAd
* SetupWidget: tweaks to fit smaller space
* UI: add WiFiPromptWidget
* WiFiPrompt: update using network type
* add WiFiPromptWidget to offroad home
* reduce spacing to fit vertical space
* WiFiPromptWidget: open Wi-Fi settings
* no longer necessary
* cleanup
* shrink PrimeUser widget and increase Setup Wi-Fi font size
* correctly resize widget when stack index changes
* layout tweaks
* debug
* spacing
* slightly improved style
* helps -> help
* .
old-commit-hash: 4f815db141
* horribly messy
* bit simpler
* is this right?
* simpler and should work?
* used to be int/frames, but added easing so treat as float
* end slow (start fast)
* little faster
* clean up
* not needed
* try ease in/ease out and fix
* remove debugging print
* fix
* revert to previous curve
* based on speed
* not right
* fix
* fix
* this kinda works
* Revert zoom by speed
Revert "this kinda works"
This reverts commit 48aa30b945148b8eb79fbe33eb58e3fc3a6a7009.
Revert "fix"
This reverts commit 4ff2d33486231727d7cd68d366342c2273e3a315.
Revert "fix"
This reverts commit 15b22f8e8284eb017000856abb05b5e8973a6c0e.
Revert "not right"
This reverts commit 378b9965e14250c57ed39e1976de60d89054c2c8.
Revert "based on speed"
This reverts commit 1f7bfa5d73a2dee3740096da64eda24b33288b51.
Revert "Revert "not right""
This reverts commit 1beeb402534a755208d19771eb4a2afdc69b8739.
* better curve
* revert
* use constants and fixes
* up here too
* feels more intuitive to make zoom_transition=1 be zoomed in
* rm line
* fix
* cmt
* better handling
* better name
* zoom if ANY other stream is requested
* Update selfdrive/ui/qt/widgets/cameraview.cc
old-commit-hash: 26064196d0
* cameraview: Scale the glViewPort by devicePixelRatio()
This fixes an issue seen in Cabana on a "hidpi" system with Wayland where
devicePixelRatio() != 1 and the video doesn't take up the full widget area.
On the recommended Ubuntu 20.04 install I wasn't able to reproduce, because
devicePixelRatio() was always equal to 1 even with scaling to 200% or 300%. It
might be different if "Fractional Scaling" is enabled in GNOME (I couldn't make
that option work in mv WM.)
Was going to enable just for Linux, but it appears to also be recommended for
Retina MacOS:
https://doc.qt.io/qt-5/scalability.html#high-dpi-scaling-on-macos-and-ios
... so have worked from the assumption that glViewport() always takes dimensions
in device pixels, never the "device independent pixels" of Qt.
* Update selfdrive/ui/qt/widgets/cameraview.cc
* Update selfdrive/ui/qt/widgets/cameraview.cc
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fbcd0821c9
* auto detect available streams
* no switch if wide cam not available
* clear frames before getAvailableStreams
* warning
* clear at same time
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d5375af2f5
* show confirmation toggle on first toggle of experimental mode
* don't store confirmation if users toggle off *after* this PR
* refactor
* cleaner
* not true
* try here
old-commit-hash: 2ad9a4f95a
* toggle confirmation
* change text
* not for e2e
* get current description
* remove are you sure
* merge rich text and confirmation dialogs
* add some line breaks
* font colour
* fix padding a little
* revert
* updated toggle design
old-commit-hash: 91a1f1a91e
* reduce frame dropping
* This mode will not draw the same frame twice
* cleanup comment
* use previous texture if update is not triggered by vipc thread and without new frame
old-commit-hash: 602b90f518
* UI: fade into wide camera
* handle routes with no wide calib
* more cleanup
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dbc30c053c
* fix indentation
* add primeTypeChanged signal to uiState
* hide advanced networking toggles on prime type change
* switch between map settings on prime type change
* cleanup
* remove duplicate code, wait for signal
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 06e283a750
* good updater experience
* set params on startup
* no fetch on first loop
* little type hinting
* little more
* update translations
* always set params with valid overlay
* wrap check
* use the param
* more wrapping
* vanish
* cleanup
* remove that
old-commit-hash: c4e63d14ab
* single longitudinal toggle for e2e and disable radar
* write disable radar param
* rename
* better param name
* clean that up
* update refs
* update translations
* not live for experimental
* write it out
* vanish
old-commit-hash: 655a64b603
* check the selected language in lange select dialog
* disable if user selects current option
* update line numbers
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: eb17291ca1
* rough multiple language demo
* more wrappings
* stash
* add some bad translations
* updates
* map from french to spanish still has same problem of needing to call setText on everything
* add files
* restart UI
* use return code
* relative path
* more translations
* don't loop restart
* Toggle and prime translations
* try on device
* try QComboBox with readable style
* stash
* not yet scrollable
* stash
* dynamic translations (doesn't work for dynamic widget strings yet)
* clean up multiple option selector
* store languages in json
* try transparent
* Try transparent popup
* see how this looks
* tweaks
* clean up
* update names
* Add Chinese (Simplified) translations
* Do missing French translations
* unit tests caught that :)
* fix test
* fix other test (on PC)
* add entries to dialog to test
* add cancel button, clean up a bit
* just chinese
* some clean up
* use quotes
* clean up
* Just quit, set timeout to 0
* half a second
* use exitcode
* don't print if it's expected
* this comment is outdated
* update translations
* Update translations
* re-order input classes
* Update line numbers
* use enabled property for button style
* Get rid of ListWidget
* Update line numbers
* Log failed to load language
* Log failed to load language
* Move to utils and fix english logging
extra line
* Update translations
* spacing
* looks a bit better
* try this instead of exitcode
fixes
fix
* only one function
* comment
* Update line numbers
* fixup some japanese translations
* clean up multi option dialog
* Update line numbers
old-commit-hash: 949de4d2b6
* fix unable to scroll on 'Regulatory' page
deleteLater after hide
* remove alert
* override exec
* set MousePressEventDelay to 0
* set to 0.01
* cleanup
* check event->pos()
old-commit-hash: dc3d94d662