Commit Graph

35 Commits

Author SHA1 Message Date
Dean Lee 2a948de1f6 ui/ParamControl: do not create ConfirmationDialog on every click (#30496)
old-commit-hash: 011b1a6e6a1db1047b2c72bc7e9e273a358ab18d
2023-12-08 13:48:31 -08:00
Dean Lee fe554ceee3 ui/controls.cc: fix QLabel leak (#30382)
fix QLabel leak
old-commit-hash: 17cab9bb508c74471d0ec66c4a3358122afe52aa
2023-11-18 22:14:05 -08:00
Dean Lee 11b5cfa422 ui/settings: Don't apply styles to more elements than needed. (#29463)
old-commit-hash: 5765c1d978c5890513e55398490447590d3b1d3e
2023-08-22 14:00:01 -07:00
Dean Lee c25ca091ff ui: cleanup controls (#28809)
* cleanup controls

* restore LayoutWidget
old-commit-hash: 2d37c219e794cc4d8ed0de031b38b183af281db3
2023-07-05 10:50:14 -07:00
Cameron Clough b6e6f008f1 UI: improved nav destination entry (#28476)
old-commit-hash: bc5a8990241311e347455ea8d69a064bd0693266
2023-06-22 19:57:29 +01:00
Shane Smiskol cd33325949 ui: toggle control supports active icons (#26514)
* support active icons

* function

* fix crash if not setting icon but active icon

* revert

* clean up
old-commit-hash: 62024176c6e0386401374873e73512ab76f4204a
2022-11-15 20:52:31 -08:00
Shane Smiskol 0953a5d2ab ui: stretch abstract control title (#26499)
stretch toggle title so it's easier to expand
old-commit-hash: 7fcafa402239c30d8344c46608ade6a8fd4831f4
2022-11-14 23:28:43 -08:00
Adeeb Shihadeh 2bb68d4c29 UI: show git commit date (#26240)
* show version description while offroad

* ui fixups

* parse date

* cleanup
old-commit-hash: 4639862baecfc8ed708827580f441a34731ba137
2022-10-25 15:21:43 -07:00
royjr 4fbe04cf0a ui: fix toggle spacing issue (#25831)
old-commit-hash: e4612ac4c48597864dabef6f25b4db0d846426e0
2022-09-17 15:55:12 -07:00
Adeeb Shihadeh 46cfb5c45b good updater experience (#25724)
* good updater experience

* set params on startup

* no fetch on first loop

* little type hinting

* little more

* update translations

* always set params with valid overlay

* wrap check

* use the param

* more wrapping

* vanish

* cleanup

* remove that
old-commit-hash: c4e63d14ab158118efc6eadd0e20d8d533f9e046
2022-09-15 15:12:36 -07:00
Adeeb Shihadeh 7e10f872cf UI: fix reset calibration description
old-commit-hash: ff3f6de149475ce995c21f8308da0bbc08922c54
2022-07-07 16:53:34 -07:00
Dean Lee 92da40952f UI: fix unable to scroll on 'Regulatory' page (#25014)
* fix unable to scroll on 'Regulatory' page

deleteLater after hide

* remove alert

* override exec

* set MousePressEventDelay to 0

* set to 0.01

* cleanup

* check event->pos()
old-commit-hash: dc3d94d662654a6bb2bf40560c2a17ed2303fa80
2022-07-07 15:01:02 -07:00
Dean Lee fab73e6e9f remove trailing whitespaces (#23716)
old-commit-hash: 786152f0f125f9c78dc129cab8f24a98d93f36a1
2022-02-06 10:42:41 -08:00
Adeeb Shihadeh 85ff2fe9cb Revert "Qt/SetingWindow: faster initialization and painting (#21764)"
This reverts commit 720e3a73e7befe597bb94f93e41f8f294431ba65.

old-commit-hash: 472177e2a8a1d002e56f9096326fd2dff62e54f9
2021-12-15 09:58:25 -08:00
Dean Lee b462e5584f move LayoutWidget,ClickableWidget to controls (#23207)
old-commit-hash: d4b8cba0f6614138a7a836559712baeb894f7163
2021-12-14 11:00:01 +01:00
Dean Lee b7e08ff8fd Qt/SetingWindow: faster initialization and painting (#21764)
* reduce init time from ~520ms to ~350ms

* faster init toggle

setfixedheight in ctor

delay init TogglesPanel,reduce init time to ~180ms

cleanup

* precise style, reduce to ~100ms

* revert 'faster toggle

* fix horizontal_line

* fix background

* cleanup
old-commit-hash: f482354e4e2ce5d96f5b0c96f7ba923611dc199d
2021-12-13 15:57:04 +01:00
Mayfield 43e1903073 enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5246f0231e6bfa572c0dd89c60e538910817faa2
2021-11-02 17:08:53 +01: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 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
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
Adeeb Shihadeh 17faf6e48f UI: button released -> clicked (#21606)
old-commit-hash: 92157480800d604b9a53873a66ecb7fcdd622535
2021-07-17 13:58:09 -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 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
Dean Lee 95a9e22120 UI: refactor ButtonControl (#21315)
old-commit-hash: 8675c970d49499d541c38172b1c5516dec7df480
2021-06-17 23:17:52 -07:00
Dean Lee 63ff493fe8 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>
old-commit-hash: 8f5c7e7bb5e4796708a8be672529bf65e89edaca
2021-06-12 21:28:17 -07:00
Dean Lee 147b355dde add space after function name and if statement (#21225)
old-commit-hash: e4e669bb0fc1a919dfb38800099f8e3ad52346f1
2021-06-11 10:17:52 +02:00
Dean Lee 3a698faadc Use full include path (#21194)
old-commit-hash: b06b3ecb60c651dacf079513635f7d9d99228783
2021-06-08 12:09:30 -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
iejMac 5dddcac027 UI: Reset settings state when hiding panels (#20670)
* git stat

* first panel and button reset

* progress

* toggles parent + list

* check if label nullptr

* style

* fixes

* fixes

* remove line

* white space

* tabs and spaces
old-commit-hash: 928fbecec0d88fff684f3eecf1306393ef21be05
2021-04-13 13:42:13 -07:00
Dean Lee d33538e5f3 Qt: show current calibration values (#20455)
* show current calibration

* read calibration from capnp

* use CalStatus

* cleanup calibrationd.py

* remove import capnp

* keep json writing,remove comment

* fix test error

* cleanup

* remove test_read_saved_params

* cleanup

* write out capnp

* restore test

* clean up

* get calibration from CalibrationParams

* cleanup

* update calibration when the description is visible

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 57fe8488ac8bf02ea7f2eb61be2e256ece773cd6
2021-04-06 15:02:40 -07:00
Adeeb Shihadeh 846a43b3e4 scrolling improvements (#20524)
* fix scrolling problem

* continue

* set panel margin in one place&add stretch to prevent title flicker

* adjust padding

* remove stretch

* no border

* fix padding

* better padding

* cleanup

* continue

* add stretch to prevent flicker

* reduce padding

* typo

* revert taht

* no background

* pretty good

* remove

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c73781f840fd82d8969a9d66c57f5726a8a11966
2021-03-29 14:29:23 -07:00
Adeeb Shihadeh 30f036680b Qt touchups (#20465)
* reduce minimum size

* clean that up

* consistent

* feels pretty good

* cleanup

* less laggy toggle

* openpilot

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7f56991b41c40a765125635919a91bca55815bd6
2021-03-24 21:18:12 -07:00
Adeeb Shihadeh da90758a55 add descriptions in settings (#20453)
* add descriptions

* scroll scroll

* clean up

* try this

* scrolling on touch

* better scrolling

* we can afford 30fps

* remove that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c89e17e0d53bd643fb236cd637a0041292fb9c14
2021-03-24 00:22:33 -07:00
Comma Device c3c741af70 fix margin on c2
old-commit-hash: eda9538cc3e04d0fd8b45d6c73dfb1bb5f72397e
2021-03-22 00:02:49 -07:00
Dean Lee d7cf75fc64 Qt: use the AbstractControl for multiple types of controls (#20417)
* class ClickableLabel

* scrollable widget

* rename to controls.cc

* rename to AbstractControl

* cleanup

* remove useless stylesheets

* change button stylesheet

* cleanup

* better margin

* cleanup

cleanup

* remove bottom line from AbstractControl

* no scrolling for now

* add those back

* style

* clean up

* don't need a function for that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8be2e07f4f56bf784bd091d81df442b2718cff84
2021-03-21 23:53:56 -07:00