UI style improvements with improved keyboard (#2710)

* fix spaces and make spacebar dynamically sized

* some spaces and a comment

* more spaces

* const

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3e466aa528
This commit is contained in:
grekiki
2020-12-08 12:00:51 +01:00
committed by GitHub
parent 0b60b8eb1b
commit 2e07e45bed
13 changed files with 125 additions and 122 deletions
+8 -8
View File
@@ -25,20 +25,20 @@ int fresh_clone() {
// Cleanup
err = std::system("rm -rf /tmp/openpilot");
if(err) return 1;
if (err) return 1;
err = std::system("rm -rf /data/openpilot");
if(err) return 1;
if (err) return 1;
// Clone
err = std::system("git clone " GIT_URL " -b " BRANCH " --depth=1 /tmp/openpilot");
if(err) return 1;
if (err) return 1;
err = std::system("cd /tmp/openpilot && git submodule update --init");
if(err) return 1;
if (err) return 1;
err = std::system("cd /tmp/openpilot && git remote set-url origin --push " GIT_SSH_URL);
if(err) return 1;
if (err) return 1;
err = std::system("mv /tmp/openpilot /data");
if(err) return 1;
if (err) return 1;
return 0;
}
@@ -56,11 +56,11 @@ int install() {
std::cout << "Doing fresh clone\n";
err = fresh_clone();
if(err) return 1;
if (err) return 1;
// Write continue.sh
err = std::system("cp /data/openpilot/installer/continue_openpilot.sh " CONTINUE_PATH);
if(err == -1) return 1;
if (err == -1) return 1;
return 0;
}
+2 -2
View File
@@ -76,10 +76,10 @@ QWidget * Setup::network_setup() {
WifiUI *wifi = new WifiUI(this, 6);
main_layout->addWidget(wifi);
QObject::connect(wifi, &WifiUI::openKeyboard, this, [=](){
QObject::connect(wifi, &WifiUI::openKeyboard, this, [=]() {
this->continue_btn->setVisible(false);
});
QObject::connect(wifi, &WifiUI::closeKeyboard, this, [=](){
QObject::connect(wifi, &WifiUI::closeKeyboard, this, [=]() {
this->continue_btn->setVisible(true);
});