ui/map_instructions: restore padding (#29548)

* restore padding

* fixes

* fix left and right margins

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 4ea7833060
vw-mqb-aeb
Dean Lee 2 years ago committed by GitHub
parent 56b582a059
commit f7efad93e4
  1. 3
      selfdrive/ui/qt/maps/map_instructions.cc

@ -11,12 +11,13 @@ const QString ICON_SUFFIX = ".png";
MapInstructions::MapInstructions(QWidget *parent) : QWidget(parent) {
is_rhd = Params().getBool("IsRhdDetected");
QVBoxLayout *main_layout = new QVBoxLayout(this);
main_layout->setContentsMargins(11, UI_BORDER_SIZE, 11, 11);
main_layout->setContentsMargins(11, UI_BORDER_SIZE, 11, 20);
QHBoxLayout *top_layout = new QHBoxLayout;
top_layout->addWidget(icon_01 = new QLabel, 0, Qt::AlignTop);
QVBoxLayout *right_layout = new QVBoxLayout;
right_layout->setContentsMargins(9, 9, 9, 0);
right_layout->addWidget(distance = new QLabel);
distance->setStyleSheet(R"(font-size: 90px;)");

Loading…
Cancel
Save