Commit Graph

40 Commits

Author SHA1 Message Date
Dean Lee
219590885f ui: remove function configFont. use struct InterFont (#28773) 2023-07-06 12:17:56 +02:00
Dean Lee
7ac22a0d7a ui/sidebar: Fix the inconsistent padding in different languages. (#28746)
cleanup
2023-06-30 13:40:28 -07:00
Dean Lee
90f0f04d26 sidebar: call update in offroadTransition (#25856) 2022-09-20 20:12:22 -07:00
Cameron Clough
1379989e0d 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
2022-09-20 10:45:13 -07:00
Cameron Clough
b3cfe962cf 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>
2022-08-22 21:47:09 -07:00
Shane Smiskol
879a7c3201 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
2022-06-29 14:47:46 -07:00
Willem Melching
963de40211 ui: change sidebar font to Inter (#24931)
* change sidebar to inter

* clean up metric color rect radius

* fix text placement

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

* rename to loadpixmap
2021-12-14 22:58:47 -08:00
Dean Lee
2483fc5d5d ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
2021-12-14 22:28:12 -08:00
Dean Lee
ddc35826f7 sidebar: dont update states when hidden (#22948) 2021-11-17 14:12:57 +01:00
Achilles308
d888ef8f89 UI: re-order sidebar temp wording (#22323) 2021-09-23 15:14:00 -07:00
Adeeb Shihadeh
084b932eeb UI: show thermal status instead of ambient temp (#22041)
* no number

* space evenly
2021-08-25 11:01:04 -07:00
Dean Lee
67f5522914 sidebar: simplify updateState with QPair (#21927)
* ItemStatus

* add whitespace

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-16 14:21:47 -07:00
Dean Lee
8f7fc61e48 Sidebar: set Qt::WA_OpaquePaintEvent attribute (#21782) 2021-08-02 21:26:09 -07:00
Adeeb Shihadeh
915da738e8 open sidebar on mouse release 2021-07-28 13:22:56 -07:00
Adeeb Shihadeh
7b94cf0ca7 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>
2021-07-26 13:50:58 -07:00
Adeeb Shihadeh
7211a4f6cc sidebar: only show gps indicator while onroad 2021-07-12 01:34:30 -07:00
Adeeb Shihadeh
a2f9259ebf sidebar: indicator for GPS fix (#21556)
* sidebar: indicator for GPS fix

* fix cutoff
2021-07-11 15:26:28 -07:00
Adeeb Shihadeh
8b6cf406ab remove gps accuracy from sidebar 2021-07-10 14:40:11 -07:00
Dean Lee
2c6d27f482 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
2021-06-16 00:08:02 -07:00
Dean Lee
648b60a381 sidebar: display full signal when network strength is GREAT (#21259)
* full signal when network strength is GREAT

* apply review

* space
2021-06-14 14:54:38 -07:00
Dean Lee
d82fa763d8 remove double semicolons (#21215) 2021-06-10 00:03:34 -07:00
Dean Lee
48696105ae sidebar: draw network strength without images (#21185)
* draw network strength without images

* Trigger Build
2021-06-08 14:17:02 -07:00
Comma Device
1fd7f66a14 fix sidebar network type and signal 2021-05-22 18:42:42 -07:00
Dean Lee
179ff6e7ae Sidebar: repaint only when properties updated (#20929)
* use qt_property

s

* cleanup

* little more

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

* make sidebar timeout longer than timeout in athena

* whitespace
2021-05-20 13:57:46 +02:00
George Hotz
f43671c987 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>
2021-05-18 22:37:33 -07:00
Dean Lee
533bc30c2e 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>
2021-05-14 22:47:06 -07:00
Adeeb Shihadeh
e06f9828ea match nvg onroad alerts (#20854) 2021-05-10 22:09:36 -07:00
Dean Lee
7222d0f20d 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>
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh
e1a58e6268 match nvg sidebar (#20847) 2021-05-07 15:12:29 -07:00
Willem Melching
ab319d4f54 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>
2021-05-06 14:39:05 +02:00
Willem Melching
3a95d3ccaa Revert "Replace ifdefs with hardware abstraction layer (#20801)"
This reverts commit 757d2923d2.
2021-05-06 12:29:30 +02:00
Dean Lee
757d2923d2 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
2021-05-06 11:41:46 +02:00
Dean Lee
c405442820 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>
2021-05-04 11:30:50 -07:00
Dean Lee
81491dc57f c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
2021-05-03 11:53:11 +02:00
Adeeb Shihadeh
1c89825d86 trigger sidebar status widget repaints on color change 2021-04-30 14:01:49 -07:00
Adeeb Shihadeh
db9319405b 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>
2021-04-29 15:05:04 -07:00