diff --git a/selfdrive/assets/fonts/inter.ttf b/selfdrive/assets/fonts/inter.ttf deleted file mode 100644 index 1b5daf86d5..0000000000 --- a/selfdrive/assets/fonts/inter.ttf +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2bc548145fb72b0ed4a918a222978e279bee02fb9a1f7dee50de242e9b6e2497 -size 748068 diff --git a/selfdrive/ui/qt/home.cc b/selfdrive/ui/qt/home.cc index d1b916d0c3..fa89fb6d0a 100644 --- a/selfdrive/ui/qt/home.cc +++ b/selfdrive/ui/qt/home.cc @@ -122,7 +122,7 @@ void OffroadHome::refresh() { border: 1px solid; border-radius: 5px; font-size: 40px; - font-weight: bold; + font-weight: 500; background-color: #E22C2C; )"); if (alerts_widget->updateAvailable) { @@ -276,7 +276,7 @@ void GLWindow::paintGL() { double cur_draw_t = millis_since_boot(); double dt = cur_draw_t - prev_draw_t; - if (dt > 66){ + if (dt > 66 && onroad){ // warn on sub 15fps LOGW("slow frame(%llu) time: %.2f", ui_state.sm->frame, dt); } diff --git a/selfdrive/ui/qt/offroad/onboarding.cc b/selfdrive/ui/qt/offroad/onboarding.cc index 2e90a3f0b4..6b70188030 100644 --- a/selfdrive/ui/qt/offroad/onboarding.cc +++ b/selfdrive/ui/qt/offroad/onboarding.cc @@ -12,7 +12,10 @@ QLabel * title_label(QString text) { QLabel *l = new QLabel(text); - l->setStyleSheet(R"(font-size: 100px; font-weight: bold;)"); + l->setStyleSheet(R"( + font-size: 100px; + font-weight: 400; + )"); return l; } diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index da4d7132ed..1731fad79b 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -271,12 +271,12 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) { QPushButton *btn = new QPushButton(panel.first); btn->setCheckable(true); btn->setStyleSheet(R"( - QPushButton { + * { color: grey; border: none; background: none; font-size: 65px; - font-weight: bold; + font-weight: 600; padding-top: 35px; padding-bottom: 35px; } diff --git a/selfdrive/ui/qt/qt_window.cc b/selfdrive/ui/qt/qt_window.cc index 858448793e..b394b44c04 100644 --- a/selfdrive/ui/qt/qt_window.cc +++ b/selfdrive/ui/qt/qt_window.cc @@ -16,9 +16,6 @@ void setMainWindow(QWidget *w) { w->setFixedSize(vwp_w*scale, vwp_h*scale); w->show(); - QFontDatabase::addApplicationFont("../assets/fonts/inter.ttf"); - QApplication::setFont(QFont("Inter")); - #ifdef QCOM2 QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface(); wl_surface *s = reinterpret_cast(native->nativeResourceForWindow("surface", w->windowHandle())); diff --git a/selfdrive/ui/qt/widgets/offroad_alerts.cc b/selfdrive/ui/qt/widgets/offroad_alerts.cc index 5b01485305..cab47d4633 100644 --- a/selfdrive/ui/qt/widgets/offroad_alerts.cc +++ b/selfdrive/ui/qt/widgets/offroad_alerts.cc @@ -55,7 +55,7 @@ OffroadAlert::OffroadAlert(QWidget* parent) : QFrame(parent) { QPushButton { color: black; font-size: 50px; - font-weight: 600; + font-weight: 500; border-radius: 30px; background-color: white; }