mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-22 22:42:05 +08:00
make onboarding a bit nicer
This commit is contained in:
@@ -17,7 +17,7 @@ QLabel * title_label(QString text) {
|
||||
QWidget * OnboardingWindow::terms_screen() {
|
||||
|
||||
QGridLayout *main_layout = new QGridLayout();
|
||||
main_layout->setMargin(30);
|
||||
main_layout->setMargin(100);
|
||||
main_layout->setSpacing(30);
|
||||
|
||||
main_layout->addWidget(title_label("Review Terms"), 0, 0, 1, -1);
|
||||
@@ -58,7 +58,7 @@ QWidget * OnboardingWindow::terms_screen() {
|
||||
QWidget * OnboardingWindow::training_screen() {
|
||||
|
||||
QVBoxLayout *main_layout = new QVBoxLayout();
|
||||
main_layout->setMargin(30);
|
||||
main_layout->setMargin(100);
|
||||
main_layout->setSpacing(30);
|
||||
|
||||
main_layout->addWidget(title_label("Training Guide"));
|
||||
@@ -108,5 +108,8 @@ OnboardingWindow::OnboardingWindow(QWidget *parent) {
|
||||
}
|
||||
)");
|
||||
|
||||
// TODO: remove this after training guide is done
|
||||
Params().write_db_value("CompletedTrainingVersion", LATEST_TRAINING_VERSION);
|
||||
|
||||
updateActiveScreen();
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ WifiUI::WifiUI(QWidget *parent, int page_length) : QWidget(parent), networks_per
|
||||
ipv4 = new QLabel("");
|
||||
tethering_field->addWidget(ipv4);
|
||||
tethering_field->addWidget(new QLabel("Enable Tethering"));
|
||||
|
||||
|
||||
Toggle* toggle_switch = new Toggle(this);
|
||||
toggle_switch->setFixedSize(150, 100);
|
||||
tethering_field->addWidget(toggle_switch);
|
||||
@@ -99,7 +99,7 @@ void WifiUI::refresh() {
|
||||
if (!this->isVisible()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
wifi->request_scan();
|
||||
wifi->refreshNetworks();
|
||||
ipv4->setText(wifi->ipv4_address);
|
||||
|
||||
Reference in New Issue
Block a user