wip
This commit is contained in:
@@ -825,10 +825,10 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
|
||||
|
||||
// CLEARPILOT: color channel code rewriten to allow custom colors
|
||||
// Define base RGB color and alpha
|
||||
int base_red = 200; // Dark red component
|
||||
int base_green = 0; // Minimal green component
|
||||
int base_blue = 0; // Minimal blue component
|
||||
float base_alpha = 0.75; // 60% opacity
|
||||
int base_red = 150; // Dark red component
|
||||
int base_green = 150; // Minimal green component
|
||||
int base_blue = 150; // Minimal blue component
|
||||
float base_alpha = 0.4; // 60% opacity
|
||||
|
||||
QColor baseColor(base_red, base_green, base_blue);
|
||||
|
||||
|
||||
@@ -358,8 +358,9 @@ void ui_update_frogpilot_params(UIState *s) {
|
||||
scene.model_ui = params.getBool("ModelUI");
|
||||
scene.dynamic_path_width = scene.model_ui && params.getBool("DynamicPathWidth");
|
||||
scene.hide_lead_marker = scene.model_ui && params.getBool("HideLeadMarker");
|
||||
scene.lane_line_width = params.getInt("LaneLinesWidth") * (scene.is_metric ? 1.0f : INCH_TO_CM) / 200.0f;
|
||||
scene.path_edge_width = params.getInt("PathEdgeWidth");
|
||||
// CLEARPILOT
|
||||
scene.lane_line_width = /* params.getInt("LaneLinesWidth") */ 2 * (scene.is_metric ? 1.0f : INCH_TO_CM) / 200.0f;
|
||||
scene.path_edge_width = /* params.getInt("PathEdgeWidth"); */ 15;
|
||||
scene.path_width = params.getInt("PathWidth") / 10.0f * (scene.is_metric ? 1.0f : FOOT_TO_METER) / 2.0f;
|
||||
scene.road_edge_width = params.getInt("RoadEdgesWidth") * (scene.is_metric ? 1.0f : INCH_TO_CM) / 200.0f;
|
||||
scene.unlimited_road_ui_length = scene.model_ui && params.getBool("UnlimitedLength");
|
||||
|
||||
@@ -130,8 +130,9 @@ typedef enum UIStatus {
|
||||
// Clearpilot custom colors
|
||||
const QColor bg_colors [] = {
|
||||
[STATUS_DISENGAGED] = QColor(0x17, 0x33, 0x49, 0xc8),
|
||||
[STATUS_OVERRIDE] = QColor(218, 112, 36, 0xd1), // When you nudge the steering wheel while engaged
|
||||
[STATUS_ENGAGED] = QColor(218, 112, 36, 0xd1), // Orange
|
||||
[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_TRAFFIC_MODE_ACTIVE] = QColor(0xc9, 0x22, 0x31, 0xd1), // ? unused?
|
||||
[STATUS_EXPERIMENTAL_ACTIVE] = QColor(126, 32, 128, 0xd1), // Magenta
|
||||
|
||||
Reference in New Issue
Block a user