Dean Lee
b462e5584f
move LayoutWidget,ClickableWidget to controls ( #23207 )
...
old-commit-hash: d4b8cba0f6
3 years ago
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
3 years ago
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
4 years ago
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
4 years ago
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
4 years ago
sshane
5d94b9978f
settings: button press states ( #21771 )
...
* settings button press states
* tune color
* states for panel labels and close btn
old-commit-hash: 4ed4956240
4 years ago
Adeeb Shihadeh
17faf6e48f
UI: button released -> clicked ( #21606 )
...
old-commit-hash: 9215748080
4 years ago
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
4 years ago
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
4 years ago
Dean Lee
95a9e22120
UI: refactor ButtonControl ( #21315 )
...
old-commit-hash: 8675c970d4
4 years ago
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
4 years ago
Dean Lee
147b355dde
add space after function name and if statement ( #21225 )
...
old-commit-hash: e4e669bb0f
4 years ago
Dean Lee
3a698faadc
Use full include path ( #21194 )
...
old-commit-hash: b06b3ecb60
4 years ago
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
4 years ago
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
4 years ago
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
4 years ago
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
4 years ago
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
4 years ago
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
4 years ago
Comma Device
c3c741af70
fix margin on c2
...
old-commit-hash: eda9538cc3
4 years ago
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
4 years ago