mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 06:52:07 +08:00
nav: draw inactive lanes with 50% opacity (#25157)
* nav: draw inactive lanes with 50% opacity * update ts
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
@@ -526,6 +526,10 @@ void MapInstructions::updateInstructions(cereal::NavInstruction::Reader instruct
|
||||
fn += "turn_straight";
|
||||
}
|
||||
|
||||
if (!active) {
|
||||
fn += "_inactive";
|
||||
}
|
||||
|
||||
auto icon = new QLabel;
|
||||
int wh = active ? 125 : 75;
|
||||
icon->setPixmap(loadPixmap(fn + ICON_SUFFIX, {wh, wh}, Qt::IgnoreAspectRatio));
|
||||
|
||||
@@ -338,27 +338,27 @@
|
||||
<context>
|
||||
<name>MapETA</name>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="618"/>
|
||||
<location filename="../qt/maps/map.cc" line="622"/>
|
||||
<source>eta</source>
|
||||
<translation>도착</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="628"/>
|
||||
<location filename="../qt/maps/map.cc" line="632"/>
|
||||
<source>min</source>
|
||||
<translation>분</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="632"/>
|
||||
<location filename="../qt/maps/map.cc" line="636"/>
|
||||
<source>hr</source>
|
||||
<translation>시간</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="652"/>
|
||||
<location filename="../qt/maps/map.cc" line="656"/>
|
||||
<source>km</source>
|
||||
<translation>km</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="655"/>
|
||||
<location filename="../qt/maps/map.cc" line="659"/>
|
||||
<source>mi</source>
|
||||
<translation>mi</translation>
|
||||
</message>
|
||||
|
||||
@@ -338,27 +338,27 @@
|
||||
<context>
|
||||
<name>MapETA</name>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="618"/>
|
||||
<location filename="../qt/maps/map.cc" line="622"/>
|
||||
<source>eta</source>
|
||||
<translation>埃塔</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="628"/>
|
||||
<location filename="../qt/maps/map.cc" line="632"/>
|
||||
<source>min</source>
|
||||
<translation>分钟</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="632"/>
|
||||
<location filename="../qt/maps/map.cc" line="636"/>
|
||||
<source>hr</source>
|
||||
<translation>小时</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="652"/>
|
||||
<location filename="../qt/maps/map.cc" line="656"/>
|
||||
<source>km</source>
|
||||
<translation>km</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="655"/>
|
||||
<location filename="../qt/maps/map.cc" line="659"/>
|
||||
<source>mi</source>
|
||||
<translation>mi</translation>
|
||||
</message>
|
||||
|
||||
@@ -338,27 +338,27 @@
|
||||
<context>
|
||||
<name>MapETA</name>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="618"/>
|
||||
<location filename="../qt/maps/map.cc" line="622"/>
|
||||
<source>eta</source>
|
||||
<translation>埃塔</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="628"/>
|
||||
<location filename="../qt/maps/map.cc" line="632"/>
|
||||
<source>min</source>
|
||||
<translation>分鐘</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="632"/>
|
||||
<location filename="../qt/maps/map.cc" line="636"/>
|
||||
<source>hr</source>
|
||||
<translation>小時</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="652"/>
|
||||
<location filename="../qt/maps/map.cc" line="656"/>
|
||||
<source>km</source>
|
||||
<translation>km</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qt/maps/map.cc" line="655"/>
|
||||
<location filename="../qt/maps/map.cc" line="659"/>
|
||||
<source>mi</source>
|
||||
<translation>mi</translation>
|
||||
</message>
|
||||
|
||||
Reference in New Issue
Block a user