Skip to content

Commit

Permalink
TOP icon
Browse files Browse the repository at this point in the history
  • Loading branch information
CT921 committed Aug 22, 2023
1 parent 5f9ab23 commit a2549bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified selfdrive/assets/images/button_home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions selfdrive/ui/qt/onroad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ ExperimentalButton::ExperimentalButton(QWidget *parent) : experimental_mode(fals
setFixedSize(btn_size, btn_size);

params = Params();
engage_img = loadPixmap("../assets/img_chffr_wheel.png", {img_size, img_size});
engage_img = loadPixmap("../assets/images/button_home.png", {img_size, img_size});
experimental_img = loadPixmap("../assets/img_experimental.svg", {img_size, img_size});
QObject::connect(this, &QPushButton::clicked, this, &ExperimentalButton::changeMode);
}
Expand Down Expand Up @@ -256,7 +256,7 @@ void ExperimentalButton::paintEvent(QPaintEvent *event) {

p.setOpacity(1.0);
p.setPen(Qt::NoPen);
p.setBrush(QColor(0, 0, 0, 166));
p.setBrush(QColor(0, 0, 0, 0));
p.drawEllipse(center, btn_size / 2, btn_size / 2);
p.setOpacity((isDown() || !engageable) ? 0.6 : 1.0);
p.drawPixmap((btn_size - img_size) / 2, (btn_size - img_size) / 2, img);
Expand Down

0 comments on commit a2549bf

Please sign in to comment.