torque bar color

This commit is contained in:
firestar5683
2026-03-27 10:48:56 -05:00
parent 60a3a81d7c
commit ca92674263
34 changed files with 5 additions and 2 deletions
@@ -126,10 +126,13 @@ void FrogPilotOnroadWindow::paintSteeringTorqueBorder(QPainter &p) {
p.save();
QLinearGradient gradient(rect.topLeft(), rect.bottomLeft());
QColor bottomGreen = bg_colors[STATUS_ENGAGED].lighter(120);
bottomGreen.setAlpha(bg_colors[STATUS_ENGAGED].alpha());
gradient.setColorAt(0.0, bg_colors[STATUS_TRAFFIC_MODE_ENABLED]);
gradient.setColorAt(0.25, bg_colors[STATUS_EXPERIMENTAL_MODE_ENABLED]);
gradient.setColorAt(0.5, bg_colors[STATUS_CEM_DISABLED]);
gradient.setColorAt(0.75, bg_colors[STATUS_ENGAGED]);
gradient.setColorAt(1.0, bottomGreen);
int visibleHeight = rect.height() * smoothedSteer;
int xPos = (torque < 0) ? rect.x() : (rect.x() + rect.width() - UI_BORDER_SIZE);
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -1,2 +1,2 @@
extern const uint8_t gitversion[19];
const uint8_t gitversion[19] = "DEV-be385576-DEBUG";
const uint8_t gitversion[19] = "DEV-60a3a81d-DEBUG";
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
DEV-be385576-DEBUG
DEV-60a3a81d-DEBUG
BIN
View File
Binary file not shown.