Commit Graph

33 Commits

Author SHA1 Message Date
Dean Lee
11b5cfa422 ui/settings: Don't apply styles to more elements than needed. (#29463)
old-commit-hash: 5765c1d978
2023-08-22 14:00:01 -07:00
Dean Lee
c25ca091ff ui: cleanup controls (#28809)
* cleanup controls

* restore LayoutWidget
old-commit-hash: 2d37c219e7
2023-07-05 10:50:14 -07:00
Cameron Clough
b6e6f008f1 UI: improved nav destination entry (#28476)
old-commit-hash: bc5a899024
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: 62024176c6
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: 7fcafa4022
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: 4639862bae
2022-10-25 15:21:43 -07:00
royjr
4fbe04cf0a ui: fix toggle spacing issue (#25831)
old-commit-hash: e4612ac4c4
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: c4e63d14ab
2022-09-15 15:12:36 -07:00
Adeeb Shihadeh
7e10f872cf UI: fix reset calibration description
old-commit-hash: ff3f6de149
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: dc3d94d662
2022-07-07 15:01:02 -07:00
Dean Lee
fab73e6e9f remove trailing whitespaces (#23716)
old-commit-hash: 786152f0f1
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: 472177e2a8
2021-12-15 09:58:25 -08:00
Dean Lee
b462e5584f move LayoutWidget,ClickableWidget to controls (#23207)
old-commit-hash: d4b8cba0f6
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: f482354e4e
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: 5246f0231e
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: abffc8b2ad
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: d5475ba946
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: 4ed4956240
2021-07-29 14:44:21 -07:00
Adeeb Shihadeh
17faf6e48f UI: button released -> clicked (#21606)
old-commit-hash: 9215748080
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: aee2b893a7
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: c9d4dfe99f
2021-06-22 13:24:55 -07:00
Dean Lee
95a9e22120 UI: refactor ButtonControl (#21315)
old-commit-hash: 8675c970d4
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: 8f5c7e7bb5
2021-06-12 21:28:17 -07:00
Dean Lee
147b355dde add space after function name and if statement (#21225)
old-commit-hash: e4e669bb0f
2021-06-11 10:17:52 +02:00
Dean Lee
3a698faadc Use full include path (#21194)
old-commit-hash: b06b3ecb60
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: 81491dc57f
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: 928fbecec0
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: 57fe8488ac
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: c73781f840
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: 7f56991b41
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: c89e17e0d5
2021-03-24 00:22:33 -07:00
Comma Device
c3c741af70 fix margin on c2
old-commit-hash: eda9538cc3
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: 8be2e07f4f
2021-03-21 23:53:56 -07:00