Commit Graph

139 Commits

Author SHA1 Message Date
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: abffc8b2ad
2021-09-19 15:14:54 -07:00
Adeeb Shihadeh b3a1f2c67d UI: fix getting stuck after vipc recv timeout
old-commit-hash: 86beb9a81a
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: a034926264
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: d5475ba946
2021-09-07 17:39:24 -07:00
Dean Lee 6e5f390994 c3 keyboard: fix button status not updated (#22127)
old-commit-hash: e284f515b9
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: 5fea367fc9
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: 1786416e3c
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: 86a73497de
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: 543e019f71
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: a96f358966
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: 073b96e5d1
2021-08-02 11:21:51 +02:00
Adeeb Shihadeh c5959d74a8 UI: update toggles on show (#21812)
old-commit-hash: 0ffe920a86
2021-07-30 16:21:42 -07:00
sshane 707b67ba48 toggles: released -> clicked (#21786)
old-commit-hash: 519e7cbe89
2021-07-29 22:37:06 -07:00
sshane 7461f1ff5a keyboard multitouch improvements (#21788)
old-commit-hash: 028c81d39f
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: 4ed4956240
2021-07-29 14:44:21 -07:00
sshane c10ed33d98 ui: fix prime widget w/ no internet (#21767)
old-commit-hash: 54f1afe403
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: 6fc999fc53
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: 28ab1bcaca
2021-07-28 16:28:10 -07:00
Adeeb Shihadeh d39c6f0f1e better password character
old-commit-hash: d0a650a8ba
2021-07-28 13:43:05 -07:00
Dean Lee bbac6a89d8 multitouch keyboard (#21757)
old-commit-hash: 39c945316d
2021-07-28 13:07:15 -07:00
sshane 32ca1abf40 ui: password mask delay (#21737)
old-commit-hash: dd8eb23ea9
2021-07-26 22:55:12 -07:00
Adeeb Shihadeh e513b1eb43 my.comma.ai -> connect.comma.ai (#21702)
old-commit-hash: deb170e0b2
2021-07-26 13:53:49 -07:00
Dean Lee 9d12eb4d3a HttpRequest: don't send request in ctor (#21665)
old-commit-hash: c24227c3ab
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: b3ee4d4a29
2021-07-23 23:07:23 -07:00
Adeeb Shihadeh 17faf6e48f UI: button released -> clicked (#21606)
old-commit-hash: 9215748080
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: 0f93cb12ac
2021-07-16 17:27:43 -07:00
Adeeb Shihadeh 256dda3c5b nice popup (#21630)
* nicer popup

* cleanup
old-commit-hash: c5bd6735d6
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: 62e63f0573
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: 3e19c73730
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: 6039f1e7ac
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: 0076dd3588
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: 6a62cf7d5d
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: 0df9287b7f
2021-07-14 21:21:22 -07:00
Adeeb Shihadeh 569f54aefa keyboard improvements (#21502)
* design

* period

* one more

* blue

* cleanup
old-commit-hash: 89c42041ec
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: e836ed7f6e
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: aee2b893a7
2021-07-10 01:43:47 -07:00
Dean Lee cc75e9ba9f UI: remove zoom from struct UIState (#21520)
old-commit-hash: 13b2ce9391
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: 5be75f5354
2021-07-07 21:06:50 -07:00
Adeeb Shihadeh b4e26fa46b fix offroad alert precedence (#21517)
old-commit-hash: 5a20cc6cae
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: 146973da7f
2021-07-01 19:59:02 -07:00
sshane e2eddf74ee keyboard: backspace key repeat (#21395)
old-commit-hash: 6402edb898
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: c9d4dfe99f
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: dd959412e3
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: 9ebfc2ba8d
2021-06-18 23:47:23 -07:00
Dean Lee 775ed1428f CommaApi: class to namespace (#21329)
old-commit-hash: 85f134da6a
2021-06-18 15:01:56 -07:00
Dean Lee 95a9e22120 UI: refactor ButtonControl (#21315)
old-commit-hash: 8675c970d4
2021-06-17 23:17:52 -07:00
Willem Melching fd6dddfc33 only clean up openGL buffers if context is still valid
old-commit-hash: 1ce3184c16
2021-06-16 14:06:26 +02:00
Dean Lee d8ac1df789 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
old-commit-hash: 2c6d27f482
2021-06-16 00:08:02 -07:00
Willem Melching 196f96f057 UI: check if dongle id is valid before calling API (#21275)
old-commit-hash: e85fa7f1c9
2021-06-15 14:10:44 +02:00
Dean Lee 17c7f9c806 DriveStats: switch between MILES and KM in real time,based on setting. (#21234)
* update distance unit

* remove main_layout_ from header

* cleanup

* add title in add_stats_layouts
old-commit-hash: f55bb5d98f
2021-06-15 13:44:02 +02:00