mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
fix font weights in qt ui
This commit is contained in:
Binary file not shown.
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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()));
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user