Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: connect to wifi prompt #28273

Merged
merged 19 commits into from Jun 3, 2023
Merged

UI: connect to wifi prompt #28273

merged 19 commits into from Jun 3, 2023

Conversation

incognitojam
Copy link
Contributor

@incognitojam incognitojam commented May 23, 2023

wifi widget

  • move PrimeAd to left column, replacing DriveStats when user is not subscribed to prime (expected to be replaced by the MapPanel in UI: easier nav destination entry #27629)
  • shrink comma prime widget
  • add "Setup Wi-Fi" widget
  • switch between setup/uploading using network state
New Old
Unpaired
No prime (Wi-Fi)
No prime (No Wi-Fi)
Prime
Prime (No Wi-Fi)

@sshane
Copy link
Contributor

sshane commented May 25, 2023

Did you try making the button expand to fill the width like the pair button? Also looks like some stuff is left aligned vs. centered

@incognitojam
Copy link
Contributor Author

incognitojam commented May 25, 2023

Like this?
Setup Wi-Fi

@incognitojam incognitojam force-pushed the wifi-prompt branch 3 times, most recently from 0c00932 to c1c7d5a Compare May 31, 2023 00:26
@incognitojam incognitojam marked this pull request as ready for review May 31, 2023 00:28
@incognitojam incognitojam force-pushed the wifi-prompt branch 3 times, most recently from 8cab22a to c53d7e2 Compare May 31, 2023 02:34
@incognitojam incognitojam requested a review from sshane June 1, 2023 03:16
@incognitojam incognitojam marked this pull request as draft June 1, 2023 20:42
@incognitojam incognitojam marked this pull request as ready for review June 2, 2023 22:59
selfdrive/ui/qt/home.cc Outdated Show resolved Hide resolved
title_layout->addStretch();

QLabel *icon = new QLabel;
QPixmap *pixmap = new QPixmap("../assets/offroad/icon_wifi_uploading.svg");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should add to assets.qrc and use ASSETS_PATH. this doesn't work if you're not in selfdrive/ui, right?

selfdrive/ui/qt/widgets/wifi.cc Outdated Show resolved Hide resolved
@incognitojam incognitojam merged commit 4f815db into master Jun 3, 2023
36 of 37 checks passed
@incognitojam incognitojam deleted the wifi-prompt branch June 3, 2023 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants