fix font weights in qt ui

This commit is contained in:
Adeeb Shihadeh
2021-02-05 17:50:19 -08:00
parent 54b59783cb
commit d75ff15048
6 changed files with 9 additions and 9 deletions
Binary file not shown.
+2 -2
View File
@@ -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);
}
+4 -1
View File
@@ -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;
}
+2 -2
View File
@@ -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;
}
-3
View File
@@ -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<wl_surface*>(native->nativeResourceForWindow("surface", w->windowHandle()));
+1 -1
View File
@@ -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;
}