Commit Graph

130 Commits

Author SHA1 Message Date
Adeeb Shihadeh a96f358966 Add C3 FCC regulatory info page (#21833)
* move uninstall to software

* fcc page

* only tici

* cleanup

* more cleanup
2021-08-02 20:02:07 -07:00
Dean Lee 073b96e5d1 qt/util: new function getDongleId (#21810)
* new function getDongleId

* return std::optional
2021-08-02 11:21:51 +02:00
Adeeb Shihadeh 0ffe920a86 UI: update toggles on show (#21812) 2021-07-30 16:21:42 -07:00
sshane 519e7cbe89 toggles: released -> clicked (#21786) 2021-07-29 22:37:06 -07:00
sshane 028c81d39f keyboard multitouch improvements (#21788) 2021-07-29 19:29:49 -07:00
sshane 4ed4956240 settings: button press states (#21771)
* settings button press states

* tune color

* states for panel labels and close btn
2021-07-29 14:44:21 -07:00
sshane 54f1afe403 ui: fix prime widget w/ no internet (#21767) 2021-07-28 18:45:49 -07:00
sshane 6fc999fc53 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>
2021-07-28 17:31:49 -07:00
sshane 28ab1bcaca ui: new drive stats design (#21765)
* new drive stats design

* match design better

* clean up
2021-07-28 16:28:10 -07:00
Adeeb Shihadeh d0a650a8ba better password character 2021-07-28 13:43:05 -07:00
Dean Lee 39c945316d multitouch keyboard (#21757) 2021-07-28 13:07:15 -07:00
sshane dd8eb23ea9 ui: password mask delay (#21737) 2021-07-26 22:55:12 -07:00
Adeeb Shihadeh deb170e0b2 my.comma.ai -> connect.comma.ai (#21702) 2021-07-26 13:53:49 -07:00
Dean Lee c24227c3ab HttpRequest: don't send request in ctor (#21665) 2021-07-25 15:36:04 -07:00
Dean Lee b3ee4d4a29 DriveStats: using dynamic properties to style QLabel (#21644)
* better stylesheet

* whitespace

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-23 23:07:23 -07:00
Adeeb Shihadeh 9215748080 UI: button released -> clicked (#21606) 2021-07-17 13:58:09 -07:00
sshane 0f93cb12ac 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
2021-07-16 17:27:43 -07:00
Adeeb Shihadeh c5bd6735d6 nice popup (#21630)
* nicer popup

* cleanup
2021-07-16 16:23:30 -07:00
Adeeb Shihadeh 62e63f0573 more setup (#21628)
* fix up kb

* blue continue

* dashcam

* clean up
2021-07-16 15:06:10 -07:00
Adeeb Shihadeh 3e19c73730 remove keyboard deadzone (#21627)
* remove keyboard deadzone

* add to height

* float
2021-07-16 13:54:30 -07:00
Adeeb Shihadeh 6039f1e7ac 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>
2021-07-15 21:30:23 -07:00
sshane 0076dd3588 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>
2021-07-15 17:41:01 -07:00
Adeeb Shihadeh 6a62cf7d5d input dialog design (#21607)
* style

* eye

* fix spacing

* use two lines
2021-07-15 02:56:21 -07:00
sshane 0df9287b7f keyboard: fix backspace (#21602)
* fix styling and backspace

* global for InputDialog

* revert
2021-07-14 21:21:22 -07:00
Adeeb Shihadeh 89c42041ec keyboard improvements (#21502)
* design

* period

* one more

* blue

* cleanup
2021-07-11 22:30:33 -07:00
Dean Lee e836ed7f6e 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>
2021-07-10 14:09:05 -07:00
Dean Lee aee2b893a7 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>
2021-07-10 01:43:47 -07:00
Dean Lee 13b2ce9391 UI: remove zoom from struct UIState (#21520) 2021-07-08 10:42:34 +02:00
Dean Lee 5be75f5354 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
2021-07-07 21:06:50 -07:00
Adeeb Shihadeh 5a20cc6cae fix offroad alert precedence (#21517) 2021-07-07 20:07:27 -07:00
sshane 146973da7f 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
2021-07-01 19:59:02 -07:00
sshane 6402edb898 keyboard: backspace key repeat (#21395) 2021-06-24 21:40:51 -07:00
Dean Lee c9d4dfe99f DevicePanel: set specific stylesheet for reboot & poweroff buttons (#21364)
* set specific stylesheet for reboot&poweroff buttons

* remove hack

* fix css in network panel
2021-06-22 13:24:55 -07:00
Joost Wooning dd959412e3 Change QR code to url for pairing with both explorer and connect (#21314) 2021-06-21 13:57:13 +02:00
Dean Lee 9ebfc2ba8d HttpRequest: move http cache to RequestRepeater (#21228)
* move cache from HttpRequest to RequestRepeater

* apply review
2021-06-18 23:47:23 -07:00
Dean Lee 85f134da6a CommaApi: class to namespace (#21329) 2021-06-18 15:01:56 -07:00
Dean Lee 8675c970d4 UI: refactor ButtonControl (#21315) 2021-06-17 23:17:52 -07:00
Willem Melching 1ce3184c16 only clean up openGL buffers if context is still valid 2021-06-16 14:06:26 +02:00
Dean Lee 2c6d27f482 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
2021-06-16 00:08:02 -07:00
Willem Melching e85fa7f1c9 UI: check if dongle id is valid before calling API (#21275) 2021-06-15 14:10:44 +02:00
Dean Lee f55bb5d98f 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
2021-06-15 13:44:02 +02:00
Dean Lee 7009ba0344 UI: refactor SoftwarePanel (#21244)
* refactor

cleanup

* one params

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-12 21:36:35 -07:00
Dean Lee 8f5c7e7bb5 UI widgets: remove unnecessary setLayout (#21232)
* remove setlayout

* remove setLayout

* space

* Update selfdrive/ui/qt/maps/map.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-12 21:28:17 -07:00
Dean Lee e4e669bb0f add space after function name and if statement (#21225) 2021-06-11 10:17:52 +02:00
Dean Lee ee46672d3c Passing arguments by reference (#21205) 2021-06-09 14:09:02 +02:00
Dean Lee b06b3ecb60 Use full include path (#21194) 2021-06-08 12:09:30 -07:00
Dean Lee e772bbf723 ssh_keys.cc: remove shadowed params (#21184) 2021-06-08 01:57:46 -07:00
Adeeb Shihadeh 9876723169 Qt driverview (#21063)
* CameraViewWidget

* continue

* cleanup

* mv DriverViewWindow to ui/qt/offroad

* write IsDriverViewEnabled in showEvent/hideEvnet

* sm.update(0) in onTimeout()

* CameraViewWidget

* use unique_ptr for vipc_client

* virtual draw

* fix viewport

* connected()->frameReceived()

* bg_colors use QColor

* fix draw

* rebase master

* whitespace

* apply reviews

* indent

* like onroad

continue

* white space

* continue

* show == false

* remove border

* use widget's size

* fix shadowed rect

* cleanup driverview

* fix transform

* remove video_rect

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2021-06-01 20:59:41 -07:00
Maxime Desroches 3c058e0b64 UI: add missing override identifiers (#21081) 2021-05-30 10:12:11 +02:00
Adeeb Shihadeh ace5ee9d46 prime ad: comma connect -> explorer 2021-05-11 14:50:48 -07:00