Commit Graph

270 Commits

Author SHA1 Message Date
Adeeb Shihadeh
0922a1040f ui: less confusing wifi training (#29137)
* ui: less confusing wifi training

* update

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-25 13:32:00 -07:00
Dean Lee
e958ce1c31 ui: set max brightness when showing the QR code (#28907)
* set max brightness when showing the QR code

* set brightness in ui

* set in device
2023-07-14 12:22:35 -07:00
Adeeb Shihadeh
99f9d21e4b ui: add nav to prime features (#28842) 2023-07-07 15:07:37 -07:00
Dean Lee
2d37c219e7 ui: cleanup controls (#28809)
* cleanup controls

* restore LayoutWidget
2023-07-05 10:50:14 -07:00
Dean Lee
32c5e6aafb modeldata.h: convert constants to uppercase (#28769) 2023-07-01 08:26:21 +01:00
Cameron Clough
bc5a899024 UI: improved nav destination entry (#28476) 2023-06-22 19:57:29 +01:00
Dean Lee
2b800cf2e7 ui: multilang offroad alerts (#28512)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-22 15:04:28 +01:00
Dean Lee
9295aca8ea ui: disable longitudinal personality settings when using stock long (#28443)
* disable longitdinal personality settings

* disable title label

* Revert "disable title label"

This reverts commit ef315ac2770191f1309f774185266e0cd9fe54b0.

* gray checked button on disable
2023-06-08 16:03:18 -07:00
Shane Smiskol
a92cd659ce ButtonParamControl: minimum button width (#28442)
* min width

* param
2023-06-07 01:11:41 -07:00
Dean Lee
7f41047178 ui: refactor ButtonParamControl (#28425)
* refactor ButtonParamControl

* add pressed style

* connect to buttonToggled

* typo
2023-06-06 01:18:17 -07:00
Harald Schäfer
205c900742 Driving Personality setting (also changes follow distance) (#24742)
* Skeleton

* Adjustable follow parameter

* fix rebase

* long planner

* typo

* Add ui toggle

* Fix icon

* Improve text

* Better toggle position

* Im a UX engineer now

* add param reader

* CHange jerk to have same crash test performance

* Try reading param

* Unused comment

* translate ui text

* std stoi

* Parametrized buttons

* Empty strings are ints

* Move to generic

* Update translations

* Fix translation diffs

* Release notes

* update refs

* tweaks

* Misc fixes

* No param is standard
2023-06-05 22:17:41 -07:00
Cameron Clough
4f815db141 UI: connect to wifi prompt (#28273)
* 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

* .
2023-06-02 23:24:38 -07:00
Cameron Clough
e875bcfaee UI: remove comma points (#28303)
* UI: remove comma points

* remove param
2023-05-30 18:18:47 -07:00
Shane Smiskol
21f88f997d Revert "ui: smooth wide cam transition" (#28298)
Revert "ui: smooth wide cam transition (#28277)"

This reverts commit 26064196d0.
2023-05-25 19:23:50 -07:00
Cameron Clough
13cf695738 UI: PrimeUserWidget cleanup (#28300)
* cleanup

* setMargin is obsolete

* more
2023-05-25 16:40:40 -07:00
Cameron Clough
387e865793 UI: update "Finish Setup" widget style (#28287)
* UI: update SetupWidget registration design

* SetupWidget: add icon

* Revert "SetupWidget: add icon"

This reverts commit 325d2d390496f287953beb1634b229ff4ff31717.
2023-05-25 13:01:51 -07:00
Cameron Clough
488975f06e UI: add missing QPushButton pressed styles (#28289)
* UI: add missing QPushButton pressed styles

* keyboard is special
2023-05-24 22:44:10 -07:00
Shane Smiskol
26064196d0 ui: smooth wide cam transition (#28277)
* 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
2023-05-24 17:28:33 -07:00
Dean Lee
8ca3be9788 ui: refactor setPrimeType (#28143)
handle prime type change in new function UIState::setPrimeType
2023-05-15 13:08:21 -07:00
Angus Gratton
fbcd0821c9 cabana/cameraview: Scale the glViewPort by devicePixelRatio() (#27941)
* 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>
2023-04-19 11:06:54 -07:00
Adeeb Shihadeh
9a6bcba741 UI: remove spammy CameraView log 2023-03-15 14:34:33 -07:00
Dean Lee
d5375af2f5 ui: auto detect available streams (#27470)
* 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>
2023-03-14 13:59:22 -07:00
Adeeb Shihadeh
1f85f84027 UI: fix old frame shown on startup (#27283)
Co-authored-by: Comma Device <device@comma.ai>
2023-02-09 20:44:29 -08:00
Shane Smiskol
c1fcd63bba cameraview: fix spaces in debug print 2023-01-19 18:42:34 -08:00
Shane Smiskol
66bdd8b122 Fix spacing in MultiOptionDialog (#26817)
Update input.cc
2022-12-17 00:50:37 -08:00
Shane Smiskol
6dc1fa2559 Remove stretch from MultiOptionDialog 2022-12-15 22:31:34 -08:00
Dean Lee
b1009c7f7d ui: stop vipc thread before the DriverViewWindow is hidden (#26738) 2022-12-12 14:44:04 -08:00
Dean Lee
1c5c0e723c CameraView: remove double semicolon (#26728)
remove double semicolon
2022-12-08 11:06:38 -08:00
Shane Smiskol
797c626984 ui: handle two dynamic toggle icon cases (#26517)
handles two cases
2022-11-15 21:07:11 -08:00
Shane Smiskol
62024176c6 ui: toggle control supports active icons (#26514)
* support active icons

* function

* fix crash if not setting icon but active icon

* revert

* clean up
2022-11-15 20:52:31 -08:00
Shane Smiskol
b3f75b0c5b ui: function for setting toggle confirmation settings (#26516)
function for setting confirmation settings
2022-11-15 20:46:42 -08:00
Dean Lee
97a205c94d UI: fix CameraView crash on deleting. (#26390)
* fix crash on delete

* TODO?

* after makeCurrent
2022-11-15 19:07:50 -08:00
Shane Smiskol
2ad9a4f95a offroad ui: support storing confirmation of a toggle (#26510)
* 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
2022-11-15 16:44:03 -08:00
Shane Smiskol
7fcafa4022 ui: stretch abstract control title (#26499)
stretch toggle title so it's easier to expand
2022-11-14 23:28:43 -08:00
Shane Smiskol
a3cd50c5bb ParamControl dialog: more explicit confirmation text (#26431)
* Use enable

* vanish

* fill in missing translation

* Update selfdrive/ui/translations/main_pt-BR.ts
2022-11-09 19:38:17 -08:00
Cameron Clough
f38fe7cfb1 ui: increase toggle confirmation font size (#26413)
* ui: make toggle confirmation text larger

* center title

* reduce line breaks

* slightly reduce font size
2022-11-09 14:53:41 -08:00
Cameron Clough
e78280da12 ui: set dialog confirm button text (#26365)
* ui: set dialog confirm button text

* short

* blue confirm
2022-11-04 17:27:58 -07:00
Cameron Clough
91a1f1a91e ui: toggle confirmation and dialog redesign (#26331)
* 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
2022-11-04 15:37:41 -07:00
Adeeb Shihadeh
c171fe9f9a UI: draw onroad objects on right frame (#26306)
* update before draw

* fix a lot of janky

* fix more flicker

* cleanup

* fix flicker when opening settings

* simplify
2022-10-31 23:01:22 -07:00
Dean Lee
602b90f518 UI: reduce frame drops. (#26266)
* 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
2022-10-28 19:05:11 -07:00
HaraldSchafer
dbc30c053c UI: fade into wide camera (#26203)
* UI: fade into wide camera

* handle routes with no wide calib

* more cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-10-27 17:27:31 -07:00
Dean Lee
6b6162d2c8 UI: support switching streams in CameraView (#26248) 2022-10-26 19:47:32 -07:00
Adeeb Shihadeh
4639862bae UI: show git commit date (#26240)
* show version description while offroad

* ui fixups

* parse date

* cleanup
2022-10-25 15:21:43 -07:00
HaraldSchafer
baca1cae1f UI Onroad widget renames (#26124)
Consistent widget naming
2022-10-17 18:18:01 -07:00
Adeeb Shihadeh
06e283a750 UI: only show cell settings on non-prime connection (#25067)
* 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>
2022-10-05 16:10:14 -07:00
royjr
e4612ac4c4 ui: fix toggle spacing issue (#25831) 2022-09-17 15:55:12 -07:00
Dean Lee
aa0d128422 ui: always show SetupWidget (#25742)
* always show SetupWidget

update translations

* delete hide
2022-09-16 22:17:30 -07:00
Adeeb Shihadeh
c4e63d14ab good updater experience (#25724)
* 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
2022-09-15 15:12:36 -07:00
Dean Lee
1b0f202d7b ui: prev_frame_id should be uint32_t (#25781)
uint32_t
2022-09-14 01:58:10 -07:00
Dean Lee
722e4641fc prime.cc: call update() after QR code changed (#25740) 2022-09-12 10:30:58 -07:00