Commit Graph

41 Commits

Author SHA1 Message Date
Dean Lee 431797307d ui/sidebar: break long line for readability (#29379)
old-commit-hash: 878d3f4cfc1aa6d35d7775567bb40476d68cc4cb
2023-08-13 18:03:38 -07:00
Dean Lee ccba136b64 ui: remove function configFont. use struct InterFont (#28773)
old-commit-hash: 219590885fb7463f39bacbbf1d5274b7251d9e7f
2023-07-06 12:17:56 +02:00
Dean Lee 7ac669d510 ui/sidebar: Fix the inconsistent padding in different languages. (#28746)
cleanup
old-commit-hash: 7ac22a0d7abb51e604e23a3b8d9500328bafac18
2023-06-30 13:40:28 -07:00
Dean Lee 42277d6cbe sidebar: call update in offroadTransition (#25856)
old-commit-hash: 90f0f04d2699b3ad85fc980c35719cd95433ee82
2022-09-20 20:12:22 -07:00
Cameron Clough c1541a9634 sidebar: add button pressed states (#25848)
* add flag img

* add image assets

* try darker button pressed

* remove pressed image, set opacity instead

* settings can be pressed too!

* cleanup

* make settings button white

* bookmark
old-commit-hash: 1379989e0de7f2d5d163879befd32638dc1ebe1b
2022-09-20 10:45:13 -07:00
Cameron Clough 07084dcbaf user event flagging (#25517)
* setup home_btn in sidebar

* create UserFlag msg

* replay: show and skip to user flags

* update translations

* bump to cereal master

* remove comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b3cfe962cf346e70cce1389fe3c9bf23344a5512
2022-08-22 21:47:09 -07:00
Shane Smiskol 2c5e890a23 UI: wrap all text for translation (#24961)
* 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

* clean up

* clean up 2 and missing tr

* wrap more strings

* missing updater

* fixes

* add basic test to ensure all strings wrapped

* try in CI

* clean up

* test name

* fix test

* always install qt dev tools

* fix deps

* fast test

* add section so it prints multiple errors

* debug

* debug

get rid of those

* make any difference?

* comment

* oh...

* run with offscreen platform

* try out section

* clean up

* fix missing wrappings (it works!)

* move down

* space

* clear relevant params, set TICI=1
old-commit-hash: 879a7c3201a037c27c92ad6b92143114f52f29d3
2022-06-29 14:47:46 -07:00
Willem Melching e9677da2d4 ui: change sidebar font to Inter (#24931)
* change sidebar to inter

* clean up metric color rect radius

* fix text placement

* simplify rect placement
old-commit-hash: 963de402115a4eb8eb7944c5f5233e47dea31543
2022-06-22 11:46:00 +02:00
Adeeb Shihadeh 402a0800dd athena: remove redirect detection for old prime (#24662)
This worked on old magenta, but doesn't work on new magenta
or blue prime.
old-commit-hash: e38b93fc31f3ff89a3806675bc090c2149434cf7
2022-05-26 16:09:22 -07:00
George Hotz 05be126142 sidebar: the word SEARCHING didn't fit
old-commit-hash: f3d390bdfa03098efe9465796db10e32ec3b1452
2022-03-31 18:57:00 -07:00
Dean Lee f0eb7a5402 qt/util: new function scaledPixmap (#23103)
* new function scaledPixmap

* rename to loadpixmap
old-commit-hash: 75687169eb978a7a49f15fb086df87cc959a871a
2021-12-14 22:58:47 -08:00
Dean Lee 1fc1819c2b ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
old-commit-hash: 2483fc5d5dd7ad586a92b62b2ef5bc8f9094f262
2021-12-14 22:28:12 -08:00
Dean Lee ec71ceead3 sidebar: dont update states when hidden (#22948)
old-commit-hash: ddc35826f74ead9f6529910880f9d4f2c16fe727
2021-11-17 14:12:57 +01:00
Achilles308 6770024b14 UI: re-order sidebar temp wording (#22323)
old-commit-hash: d888ef8f893dbbe417e0772e5586d66f18d78506
2021-09-23 15:14:00 -07:00
Adeeb Shihadeh e4bd887f5c UI: show thermal status instead of ambient temp (#22041)
* no number

* space evenly
old-commit-hash: 084b932eebe41d94ab21055b79429c9aab05e551
2021-08-25 11:01:04 -07:00
Dean Lee dfac8f778f sidebar: simplify updateState with QPair (#21927)
* ItemStatus

* add whitespace

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 67f55229140e2a0cc6071952dbc4a17a1edfc99b
2021-08-16 14:21:47 -07:00
Dean Lee 1d29118e0a Sidebar: set Qt::WA_OpaquePaintEvent attribute (#21782)
old-commit-hash: 8f7fc61e48276c647d3c0e148022b31006735b51
2021-08-02 21:26:09 -07:00
Adeeb Shihadeh d959a8baa2 open sidebar on mouse release
old-commit-hash: 915da738e8fb98f7194fa9846d082f16ae88e6fe
2021-07-28 13:22:56 -07:00
Adeeb Shihadeh e8161a42ee athena: detect no prime (#21718)
* detect no prime

* show in sidebar

* revert timeout

* clear ping param

* fix typo

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7b94cf0ca79e570dd217f164b0a0ca163566eea9
2021-07-26 13:50:58 -07:00
Adeeb Shihadeh d9bb0b8001 sidebar: only show gps indicator while onroad
old-commit-hash: 7211a4f6cca4373e59d1234ca4aa68a255596617
2021-07-12 01:34:30 -07:00
Adeeb Shihadeh e24ff01513 sidebar: indicator for GPS fix (#21556)
* sidebar: indicator for GPS fix

* fix cutoff
old-commit-hash: a2f9259ebf2fb3c98dc560221e0f33f20955d825
2021-07-11 15:26:28 -07:00
Adeeb Shihadeh 468032d27e remove gps accuracy from sidebar
old-commit-hash: 8b6cf406abcb45496ca4f5d57291bde6e44c4910
2021-07-10 14:40:11 -07:00
Dean Lee d8ac1df789 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
old-commit-hash: 2c6d27f4828bc57e69f86aed0d1f48364233dffb
2021-06-16 00:08:02 -07:00
Dean Lee 1b51d71ef4 sidebar: display full signal when network strength is GREAT (#21259)
* full signal when network strength is GREAT

* apply review

* space
old-commit-hash: 648b60a381e08597f2a7c2b05142070b947fa128
2021-06-14 14:54:38 -07:00
Dean Lee 60c7e01d2d remove double semicolons (#21215)
old-commit-hash: d82fa763d86750b31fe3edbb278d71565f6e3580
2021-06-10 00:03:34 -07:00
Dean Lee 7e5def641e sidebar: draw network strength without images (#21185)
* draw network strength without images

* Trigger Build
old-commit-hash: 48696105ae5901ccfc5b5f41792dca48f09ed651
2021-06-08 14:17:02 -07:00
Comma Device fc77b88fa9 fix sidebar network type and signal
old-commit-hash: 1fd7f66a14ee2718cebaad01148f9541b2d221bc
2021-05-22 18:42:42 -07:00
Dean Lee 90d952b218 Sidebar: repaint only when properties updated (#20929)
* use qt_property

s

* cleanup

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 179ff6e7ae0d3d1648860b3b2b1e7b4b96fb4756
2021-05-22 14:37:12 -07:00
Willem Melching f923f47b98 athenad: reconnect after not receiving ping (#20974)
* athenad: reconnect after not receiving ping

* make sidebar timeout longer than timeout in athena

* whitespace
old-commit-hash: f9f84fe8a2540dd87b05d93cb8234707d8bbe21b
2021-05-20 13:57:46 +02:00
George Hotz 6922150ede Move MCLK from 24 -> 19.2 mhz + Add accuracy in sidebar (#20960)
* wip

* one day i'll flip that right

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f43671c9878e2babc7c524a6f1476c571e8b900a
2021-05-18 22:37:33 -07:00
Dean Lee ebe3a39909 UI: remove duplicate capnp readers (#20855)
* refactor submaster

* rebase master

* CAPNP best pratice

* zero initialize

* vwp_w has not been initialized before UIState()

* no static

* rebase master

* Minimize refactoring

* cleanup

* remove gpsOk

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 533bc30c2e4ecac5e022f2ba4f3919842dfa0a1a
2021-05-14 22:47:06 -07:00
Adeeb Shihadeh eb79a7214e match nvg onroad alerts (#20854)
old-commit-hash: e06f9828eaf93fcbd9b0cdfbebc54b4197565fc5
2021-05-10 22:09:36 -07:00
Dean Lee e333e4f189 Cleanup selfdrive/ includes (#20822)
* cleanup include path

* continue

* format includes

* fix testraw.cc

* remove include path from SConstruct

* regroup

* rebase master

* almost done

* apply review

* rename FileReader.xx to filereader.xx

* rename Unlogger.x->unlogger.x

* rename FrameReader.xx -> framereader.xx

* apply reviews

* ui.h

* continue

* fix framebuffer.cc build error:mv util.h up

* full path to msm_media_info

* fix qcom2 camerad

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh 7b8f164793 match nvg sidebar (#20847)
old-commit-hash: e1a58e62688190ab7a6db0b518a5ba77cbd0902c
2021-05-07 15:12:29 -07:00
Willem Melching 78bf4f5867 Replace ifdef with hw abstraction layer (#20843)
* Replace ifdefs with hardware abstraction layer (#20801)

* add type to class hadwareXXX

* replace ifdefs with hardware layer

* continue

* continue

* new function get_driver_view_transform

* full path to hw.h

* fix build error setup.cc

* apply review

* fix typo

* fix deprecated error:replace deprecated fromPath with new

* fix build error

* Fixes after ifdef clenaup (#20842)

* inheritance doesnt work with static

* fix debayer

* small cleanup

* Update selfdrive/camerad/cameras/camera_common.cc

* Update selfdrive/ui/qt/offroad/settings.cc

* Update selfdrive/common/modeldata.h

* flip conditions

* fix comment

Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: ab319d4f54a53e1a0aa1c2c0d94d56a9acef8362
2021-05-06 14:39:05 +02:00
Willem Melching 39c18d4c5a Revert "Replace ifdefs with hardware abstraction layer (#20801)"
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.

old-commit-hash: 3a95d3ccaae7168073410cd7d392a9564d9d45ba
2021-05-06 12:29:30 +02:00
Dean Lee e0282ced49 Replace ifdefs with hardware abstraction layer (#20801)
* add type to class hadwareXXX

* replace ifdefs with hardware layer

* continue

* continue

* new function get_driver_view_transform

* full path to hw.h

* fix build error setup.cc

* apply review

* fix typo

* fix deprecated error:replace deprecated fromPath with new

* fix build error
old-commit-hash: 757d2923d2bfcda620b252e21a348ac3f87f3a63
2021-05-06 11:41:46 +02:00
Dean Lee 175bdf8773 Sidebar: update text and color in one place (#20777)
* do not set text&color in ctor

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c4054428207c60fe2e96103554692ac7f7dcf968
2021-05-04 11:30:50 -07:00
Dean Lee 9a827fea20 c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
old-commit-hash: 81491dc57f5080c602a0be58dd5f9feba2fa31b9
2021-05-03 11:53:11 +02:00
Adeeb Shihadeh 8b38c339f6 trigger sidebar status widget repaints on color change
old-commit-hash: 1c89825d8607e912e974dd4609957f32674c8806
2021-04-30 14:01:49 -07:00
Adeeb Shihadeh f5e6a0c9a0 Qt Sidebar (#20775)
* revive #19877

* looks like a sidebar

* more like a sidebar

* cleanup

* fix qcom2

* style

* that's the sidebar

* more space

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: db9319405b5a650627a45de78a81afaed4ae2128
2021-04-29 15:05:04 -07:00