This commit is contained in:
Your Name
2024-05-02 22:47:28 -05:00
parent e2cde8e886
commit 7ca074cd79
3 changed files with 40 additions and 34 deletions

View File

@@ -18,7 +18,7 @@
#include "selfdrive/ui/qt/network/wifi_manager.h"
#include "system/hardware/hw.h"
const int UI_BORDER_SIZE = 20; // clearpilot
const int UI_BORDER_SIZE = 16; // clearpilot
const int UI_HEADER_HEIGHT = 420;
const int UI_FREQ = 20; // Hz
@@ -130,12 +130,11 @@ typedef enum UIStatus {
// Clearpilot custom colors
const QColor bg_colors [] = {
[STATUS_DISENGAGED] = QColor(0x17, 0x33, 0x49, 0xc8),
[STATUS_OVERRIDE] = QColor(217, 214, 137, 0xd1), // When you nudge the steering wheel while engaged
// [STATUS_ENGAGED] = QColor(218, 112, 36, 0xd1), // Orange
[STATUS_ENGAGED] = QColor(217, 214, 137, 0xd1), // Orange
[STATUS_ALWAYS_ON_LATERAL_ACTIVE] = QColor(158, 126, 111, 0xd1), // Gray
[STATUS_OVERRIDE] = QColor(64, 85, 245, 0xd1), // When you nudge the steering wheel while engaged
[STATUS_ENGAGED] = QColor(64, 85, 245, 0xd1), // Orange
[STATUS_ALWAYS_ON_LATERAL_ACTIVE] = QColor(162, 221, 235, 0xd1), // Gray
[STATUS_TRAFFIC_MODE_ACTIVE] = QColor(0xc9, 0x22, 0x31, 0xd1), // ? unused?
[STATUS_EXPERIMENTAL_ACTIVE] = QColor(126, 32, 128, 0xd1), // Magenta
[STATUS_EXPERIMENTAL_ACTIVE] = QColor(201, 41, 204, 0xd1), // Magenta
};
static std::map<cereal::ControlsState::AlertStatus, QColor> alert_colors = {