Skip to content

Commit

Permalink
Add new icon "parking_light"; "dipped_beam" symbol rotated slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCAFEDECAF committed May 16, 2023
1 parent 2b2639c commit 21282ee
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion VanLiveConnect/MFD.html.ino
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,13 @@ char mfd_html[] PROGMEM = R"=====(
<div class="centerAligned fas fa-volume-down"></div>
</div>
<div id="parking_light" class="iconSmall led ledOff" style="left:300px; top:400px; color:rgb(119, 217, 64);">
<div class="centerAligned fas fa-volume-down" style="transform:scaleX(-1); font-size:30px; top:5px;"></div>
<div class="centerAligned fas fa-volume-down" style="font-size:30px; top:20px;"></div>
</div>
<div id="dipped_beam" class="iconSmall led ledOff" style="left:300px; top:400px;">
<div class="centerAligned fas fa-volume-down"></div>
<div class="centerAligned fas fa-volume-down" style="transform:rotate(15deg); transform-origin:105px;"></div>
</div>
<div id="high_beam" class="iconSmall led ledOff" style="left:380px; top:400px;">
Expand Down
8 changes: 4 additions & 4 deletions VanLiveConnect/MFD.js.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1732,9 +1732,9 @@ var headlightStatus = "";
function setDippedBeamIcon()
{
let dippedBeam = headlightStatus.match(/DIPPED_BEAM/) !== null;
$("#dipped_beam").toggleClass("ledOnGreen", dippedBeam);
$("#dipped_beam").css("color", ! dippedBeam && dashlightDimmed ? "rgb(119,217,64)" : "");
$("#dipped_beam").toggleClass("ledOff", ! dippedBeam && ! dashlightDimmed);
$("#dipped_beam").toggle(dippedBeam || ! dashlightDimmed);
$("#dipped_beam").toggleClass("ledOnGreen", dippedBeam).toggleClass("ledOff", ! dippedBeam);
$("#parking_light").toggle(! dippedBeam && dashlightDimmed);
}
function setColorTheme(theme)
Expand Down Expand Up @@ -3223,7 +3223,7 @@ function satnavNoAudioIcon()
{
clearTimeout(handleItemChange.audioSourceTimer);
handleItemChange.audioSourceTimer = undefined;
if (handleItemChange.headUnitLastSwitchedTo === "NAVIGATION")
if (handleItemChange.headUnitLastSwitchedTo === "NAVIGATION")
{
$("#satnav_no_audio_icon").toggle($("#volume").text() === "0");
} // if
Expand Down
Binary file modified VanLiveConnect/data/CarInfo.css.gz
Binary file not shown.
Binary file modified VanLiveConnect/data/MFD.html.gz
Binary file not shown.
Binary file modified VanLiveConnect/data/MFD.js.gz
Binary file not shown.

0 comments on commit 21282ee

Please sign in to comment.