Commit Graph

145 Commits

Author SHA1 Message Date
Adeeb Shihadeh 4e005ead0a UI: don't block UI on vipc recv (#22644)
* UI: don't block UI on vipc recv

* use a timer

* move that
old-commit-hash: c4de1fef4f925e9ba5292f501c2acd70dd0f1505
2021-10-22 14:16:14 -07:00
Dean Lee 457266ce89 CameraView: fix possible crash on 'fit in widget' mode (#22594)
old-commit-hash: 5735d69d47a1de021e2949b192ffdda7a9144aab
2021-10-18 11:02:08 +02:00
ZwX1616 d4cbef299b wider FOV DM on comma three (#22286)
* c3 is straightforward

* c2 transform

* c3 preview

* alpha model

* Revert "alpha model": wrong quantization data

This reverts commit b50e5739735b30d960aca22bcf3cbe23b0121e13.

* yuv looks good

* a55b

* const int

* block top deadzone

* new box alpha curve

* update k

* fix debug

* rhd use same offset

* box shift for rhd

* 7e3e

* set new thresh

* update ref

* explain

* remove e2e

* same metric thresh

* process isocc

* model

* cancel extra policy

* update numbers

* new model

* update cereal

* up cereal

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8574e79fecff6dba6c68486b627c73499d4b3d03
2021-10-13 17:00:46 -07:00
Dean Lee 96a8d9dd3e UI: fix stuck in visionIPC receive timeout (#22450)
old-commit-hash: afaf235acd533e9c105925caab1e872ee3d3457b
2021-10-09 14:43:27 -07:00
Willem Melching 10d0b511b5 ui: make OpenGL context current before connecting to VisionIPC
old-commit-hash: 9c771b45fcb56197f5f0680690c372199736fb87
2021-10-04 10:37:31 +02:00
Adeeb Shihadeh 26e39eb441 UI: big pairing QR code (#22384)
old-commit-hash: 45409cb4fe485dc12168dc9740eb561ffedebe4c
2021-09-30 14:00:52 -07:00
Dean Lee 2fefa32476 UI: new class ListWidget (#21273)
* ListWidget

* continue

* remove function horizontal_line

* cleanup

* default spacing 25

* fix networkpanel margin on EON

* solid expanding

* 0 width

* cleanup

* apply reviews

* remove function addLayout,make it looks like QLIstWidget

* rename addWidget to addItem

* rebase master

* rebase master

* merge master

* cleanup

* fixed title bar position

* no flash while folding

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: abffc8b2ade75eb9365552cb25a1885442d7e011
2021-09-19 15:14:54 -07:00
Adeeb Shihadeh b3a1f2c67d UI: fix getting stuck after vipc recv timeout
old-commit-hash: 86beb9a81afcc940f780f56dab3c238f024dfaef
2021-09-15 20:31:24 -07:00
Dean Lee f4d8621be1 Qt/onroad: use CameraViewWidget (#21821)
* use CameraViewWidget

* no timer, updateFrame after frameSwapped

* use QOpenGLShaderProgram

* merge master

* remove that

* new function setStreamType

* continue

* remove showEvent

* cleanup

* cleanup

* little more

* fix black screen on startup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a034926264cd1025c69d6ceb3fe444965f960b75
2021-09-08 13:13:27 -07:00
Adeeb Shihadeh 706542a7b2 nav: add button to clear current route (#22167)
* nav: add button to clear current route

* fix scroll

* retab

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d5475ba9462ad9c6a18db05e96a4fa9d3bf9772a
2021-09-07 17:39:24 -07:00
Dean Lee 6e5f390994 c3 keyboard: fix button status not updated (#22127)
old-commit-hash: e284f515b9842a761f2b15b8d2b466d59c722e24
2021-09-06 12:24:31 -07:00
Dean Lee 36839399f2 C3: Fix keyboard buttons on the right getting stuck in pressed state (#22050)
* fix keyboard state stuck

* remove popup flag

* update in time
old-commit-hash: 5fea367fc98dd427497a93a9d1e73b2c2d4a2271
2021-09-03 22:24:37 -07:00
Dean Lee bdc758e769 ui: clickable ElidedLabel (#21773)
* ElidedButton

* rename to ClickableLabel

* move to ElidedLabel
old-commit-hash: 1786416e3cefcd6562f18954aa81b759d0fcf2f4
2021-08-30 22:16:48 -07:00
Adeeb Shihadeh 8cbf48b550 add fit to widget option to camera view (#22056)
* add fit to widget option to camera view

* add clicked signal

* cleanup

* use release for driverview

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 86a73497de4618c7a83bfa5038fa2d27e0aadec2
2021-08-28 13:08:48 -07:00
Dean Lee ceb40d8384 api: use API_HOST env variable everywhere (#21814)
* api base url to global constant

* update api/__init__.py
old-commit-hash: 543e019f715a7e485c7402d1e145dc8e81d43611
2021-08-03 13:49:49 +02:00
Adeeb Shihadeh 71678b9d17 Add C3 FCC regulatory info page (#21833)
* move uninstall to software

* fcc page

* only tici

* cleanup

* more cleanup
old-commit-hash: a96f35896681cbbf9752b2ba4176b4d7b43d6d1b
2021-08-02 20:02:07 -07:00
Dean Lee c40edd4b56 qt/util: new function getDongleId (#21810)
* new function getDongleId

* return std::optional
old-commit-hash: 073b96e5d16c4780ed4adfb50b506fa1afd40d68
2021-08-02 11:21:51 +02:00
Adeeb Shihadeh c5959d74a8 UI: update toggles on show (#21812)
old-commit-hash: 0ffe920a863e5034f305812f14bf232ef087186c
2021-07-30 16:21:42 -07:00
sshane 707b67ba48 toggles: released -> clicked (#21786)
old-commit-hash: 519e7cbe891db8e341899519e755f2b2a52823ea
2021-07-29 22:37:06 -07:00
sshane 7461f1ff5a keyboard multitouch improvements (#21788)
old-commit-hash: 028c81d39f306212101cc33e6f42503cc7e510d3
2021-07-29 19:29:49 -07:00
sshane 5d94b9978f settings: button press states (#21771)
* settings button press states

* tune color

* states for panel labels and close btn
old-commit-hash: 4ed49562406cc0621c8590c3dd9806fc949abb08
2021-07-29 14:44:21 -07:00
sshane c10ed33d98 ui: fix prime widget w/ no internet (#21767)
old-commit-hash: 54f1afe4031f6891d1156730bf13ad175522b510
2021-07-28 18:45:49 -07:00
sshane bbd63268df ui: prime widget design (#21755)
* new setup widget

* set fixed width and align right

more closely match

* text wrapping fixes

* prime widget draft

* rename

* remove username

* fix weights

* ad

* qr

* pressed color

* cleanup

* simplify

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6fc999fc533af85fefac5a96bc277afc1c65e260
2021-07-28 17:31:49 -07:00
sshane 6fac6698d5 ui: new drive stats design (#21765)
* new drive stats design

* match design better

* clean up
old-commit-hash: 28ab1bcaca06904808c61a1764285abf5231084a
2021-07-28 16:28:10 -07:00
Adeeb Shihadeh d39c6f0f1e better password character
old-commit-hash: d0a650a8ba829cb923f761e02232199eeddaf74b
2021-07-28 13:43:05 -07:00
Dean Lee bbac6a89d8 multitouch keyboard (#21757)
old-commit-hash: 39c945316d9eaba8d6fbac564a732360b77fa474
2021-07-28 13:07:15 -07:00
sshane 32ca1abf40 ui: password mask delay (#21737)
old-commit-hash: dd8eb23ea972739ee620b34650471893bda0f8b0
2021-07-26 22:55:12 -07:00
Adeeb Shihadeh e513b1eb43 my.comma.ai -> connect.comma.ai (#21702)
old-commit-hash: deb170e0b2801867ff726e5703f0adea8242b22c
2021-07-26 13:53:49 -07:00
Dean Lee 9d12eb4d3a HttpRequest: don't send request in ctor (#21665)
old-commit-hash: c24227c3abb9bfd371c89845c75b7104d0862fb2
2021-07-25 15:36:04 -07:00
Dean Lee 6bd1f09cae DriveStats: using dynamic properties to style QLabel (#21644)
* better stylesheet

* whitespace

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b3ee4d4a29dd0d978d7662c1a102b82015239695
2021-07-23 23:07:23 -07:00
Adeeb Shihadeh 17faf6e48f UI: button released -> clicked (#21606)
old-commit-hash: 92157480800d604b9a53873a66ecb7fcdd622535
2021-07-17 13:58:09 -07:00
sshane b1d4b80f01 keyboard: separate signals (#21629)
* separate signals

* clean up

clean up

clean up

* clean up

* Revert "clean up"

This reverts commit 38c1f18a56a946e97ee05f8e18b1797f060d011b.

* Revert "clean up"

This reverts commit 06430e29bfeaa3dd3a8d7f8911e0f0ba17d35d7b.

* Revert "separate signals"

This reverts commit 77ca8e3d17b34e84d8d1331b565b0b2ef6bc55d0.

* separate signals

* clean up

* caps fix
old-commit-hash: 0f93cb12ac222b8e08a43e12b9bbcc8e5571566d
2021-07-16 17:27:43 -07:00
Adeeb Shihadeh 256dda3c5b nice popup (#21630)
* nicer popup

* cleanup
old-commit-hash: c5bd6735d6ea47e38b594ec7ed10dfede6f75729
2021-07-16 16:23:30 -07:00
Adeeb Shihadeh 5bdb0f7b18 more setup (#21628)
* fix up kb

* blue continue

* dashcam

* clean up
old-commit-hash: 62e63f0573a1d6d719fe3c4715d00b3893306c73
2021-07-16 15:06:10 -07:00
Adeeb Shihadeh b73185b3f1 remove keyboard deadzone (#21627)
* remove keyboard deadzone

* add to height

* float
old-commit-hash: 3e19c737300310b8493e12448050cd41b14e9dde
2021-07-16 13:54:30 -07:00
Adeeb Shihadeh 75886ce093 setup qt resources (#21617)
* setup qt resources

* networking

* input

* fix that

* nicer scrolling

* big eye

* fix flashing

* why is it linking against map stuff

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6039f1e7acb286e9b6705f96084ca90d733df34b
2021-07-15 21:30:23 -07:00
sshane a089058fd4 Update wifi setup design (#21604)
* wifi design draft

* ui draft 2

* draft

* updates

* fix spacing

* strength indicator

* font weight

* fix lock icon aspect ratio

* fix font weights

* new checkmark

* fix spacing

* was being applied to everything

* network handles its own padding

* fix spacing

* cleanup

* looks pretty good

* little more

* revert that

* scroll bar

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0076dd3588921e9dd88c6a871988dded626c38a1
2021-07-15 17:41:01 -07:00
Adeeb Shihadeh 1e39e578c6 input dialog design (#21607)
* style

* eye

* fix spacing

* use two lines
old-commit-hash: 6a62cf7d5da527b7e69a8ccb691aefd8ad4fdacb
2021-07-15 02:56:21 -07:00
sshane 6817770887 keyboard: fix backspace (#21602)
* fix styling and backspace

* global for InputDialog

* revert
old-commit-hash: 0df9287b7f28ea08a3d3c592acb4ae3a63c4f45a
2021-07-14 21:21:22 -07:00
Adeeb Shihadeh 569f54aefa keyboard improvements (#21502)
* design

* period

* one more

* blue

* cleanup
old-commit-hash: 89c42041ece9bd7e70368ab50a1150eba1cfaaa4
2021-07-11 22:30:33 -07:00
Dean Lee f587147efe OffroadHome: separate the update and alert buttons (#21326)
* refactor

* better loop

* remove stretch

* only refreshed by timer

* fix wrong bg color

* descending sort alert labels  by severity

* remove duplicate stylesheet

* Update selfdrive/ui/qt/widgets/offroad_alerts.cc

* rebase master

* qt best pratice

* split offroadAlerts

* only show first time

* short variable name

* space

* don't do refresh in every showEvent

* Revert "don't do refresh in every showEvent"

This reverts commit 2b0032fb0af7138e9d9df1ad052c589fd96d2e05.

* cleanup

rename name to key

cleanup

* add stretch back

* hide alert widgets when not alerts

* rebase master

* fix flash on startup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e836ed7f6e9fd53f386b8dd07bcb0aa39b8f571f
2021-07-10 14:09:05 -07:00
Dean Lee 24563f4b11 Qt: new class ElidedLabel (#21277)
* shorten ssid

* truncate with ellipsis

* rename to trancate

* truncate 22 characters

* elidedLabel

* trimmed

* remove function elidedString

* cache elidedTest

* rebase master

* minimizeSizeHint

* add sizeHint

* cleanup

* revert

* inherit from QLabel

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: aee2b893a7467a05b6d49c16c5b6e0b6cf2f9275
2021-07-10 01:43:47 -07:00
Dean Lee cc75e9ba9f UI: remove zoom from struct UIState (#21520)
old-commit-hash: 13b2ce9391ca132a1d4fbeb7e40c32cc1f3264e0
2021-07-08 10:42:34 +02:00
Dean Lee 0c59f626c7 input.cc: close dialog when parent is hidden (#21318)
* close dialog when parent is hidden

* Q_OBJECT

* apply reviews

* rebase master

* rebase master

* fix wroing minLength

* merge master
old-commit-hash: 5be75f53541c83f0681e55959023bc03758ac62a
2021-07-07 21:06:50 -07:00
Adeeb Shihadeh b4e26fa46b fix offroad alert precedence (#21517)
old-commit-hash: 5a20cc6cae95f0f3eb7518acbce8fa380fb9ad80
2021-07-07 20:07:27 -07:00
sshane 6755365476 Networking: populate tethering password (#21455)
* populate password from hotspot connection

move to setup()

populate tethering password

fix password editing

setup tethering when editing password or enabling

fix

* fixes

* last fix, don't activate when adding

* check before

* if not
old-commit-hash: 146973da7faace08cc49f4edde4b01377cf4f6bb
2021-07-01 19:59:02 -07:00
sshane e2eddf74ee keyboard: backspace key repeat (#21395)
old-commit-hash: 6402edb8985f8188ff89e6944af2bc308fb18a96
2021-06-24 21:40:51 -07:00
Dean Lee f883cfec39 DevicePanel: set specific stylesheet for reboot & poweroff buttons (#21364)
* set specific stylesheet for reboot&poweroff buttons

* remove hack

* fix css in network panel
old-commit-hash: c9d4dfe99fbc49e5db16292200e7daef3295dfb3
2021-06-22 13:24:55 -07:00
Joost Wooning 3590f9b56f Change QR code to url for pairing with both explorer and connect (#21314)
old-commit-hash: dd959412e3dd19a0523ab564fb298e05cc704b89
2021-06-21 13:57:13 +02:00
Dean Lee 701ee27c91 HttpRequest: move http cache to RequestRepeater (#21228)
* move cache from HttpRequest to RequestRepeater

* apply review
old-commit-hash: 9ebfc2ba8df7dcde5c6ea6be3b61d8577d89d652
2021-06-18 23:47:23 -07:00