From f7efad93e43c4d2d5445c89391668be313c25c5a Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Thu, 24 Aug 2023 14:32:01 +0800 Subject: [PATCH] ui/map_instructions: restore padding (#29548) * restore padding * fixes * fix left and right margins --------- Co-authored-by: Shane Smiskol old-commit-hash: 4ea78330605cc3e46005e3d0f8915ef8a60c952a --- selfdrive/ui/qt/maps/map_instructions.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/maps/map_instructions.cc b/selfdrive/ui/qt/maps/map_instructions.cc index 277e8915cd..ba8cb356bd 100644 --- a/selfdrive/ui/qt/maps/map_instructions.cc +++ b/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;)");