Skip to content

Commit

Permalink
💄 #78 update map skin
Browse files Browse the repository at this point in the history
Signed-off-by: JAGFx <[email protected]>
  • Loading branch information
JAGFx committed Mar 5, 2022
1 parent 6287b67 commit e9e4f11
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion lib/config/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"general_refresh_rate" : 100,
"general_skin_on_load" : "Map",
"general_skin_on_load" : "Scania",
"general_h-shift-layout" : "h-shifter",
"general_skin_locale" : "en-EN",
"general_job_remaining" : "due_date",
Expand Down
12 changes: 6 additions & 6 deletions src/assets/scss/dashboard/shared/_map.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

min-width: auto !important;

.round > i { padding-top: .3rem; display: block; }
.round > i { display: block; }

&.active{
background: $cBlack;
Expand Down Expand Up @@ -114,7 +114,7 @@
justify-content: center;
align-items: flex-end;
text-align: center;
height: 2rem;
height: 2.2rem;

button, .button{
background: $cBlackTransparentHigh;
Expand All @@ -128,7 +128,7 @@

min-width: auto !important;

.round > i { padding-top: .3rem; display: block; }
.round > i { display: block; }
&:last-child { margin-right: 0; }

&.active{
Expand All @@ -150,7 +150,7 @@
height: auto;
width: auto;
z-index: 2;
margin-bottom: 2rem;
margin-bottom: 2.2rem;

#ol-zoom-wrapper {
width: 100%;
Expand All @@ -174,7 +174,7 @@

min-width: auto !important;

.round > i { padding-top: .3rem; display: block; }
.round > i { display: block; }
}
}
}
Expand All @@ -187,7 +187,7 @@
left: 0;
width: auto;
bottom: 0;
margin-bottom: 2rem;
margin-bottom: 2.2rem;

.button{
border-left: 2px solid $cRed;
Expand Down
14 changes: 7 additions & 7 deletions src/components/dashboards/shared/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}"
@click="displayNavigationInfo = !displayNavigationInfo"
>
<div class="round px-2 py-0">
<div class="round p-2">
<i class="icon-route" />
</div>
</div>
Expand All @@ -54,7 +54,7 @@
disabled: !telemetry2.truck.cruiseControlIsEnabled
}"
>
<div class="round px-2 py-0">
<div class="round p-2">
<i class="icon-cruise_control" />
</div>
<span v-if="!telemetry2.truck.cruiseControlIsEnabled" class="pl-2">{{
Expand Down Expand Up @@ -90,7 +90,7 @@
orange: telemetry2.symbols.fuelLevelIsLow
}"
>
<div class="round px-2 py-0">
<div class="round p-2">
<i class="icon-fuel" />
</div>
<span class="pr-2">
Expand All @@ -104,7 +104,7 @@
:class="{ disabled: !displayControls, active: displayControls }"
@click="displayControls = !displayControls"
>
<div class="round px-2 py-0">
<div class="round p-2">
<i class="icon-menu" />
</div>
</div>
Expand Down Expand Up @@ -136,7 +136,7 @@
:class="{ disabled: !displayMapInfo, active: displayMapInfo }"
@click="onClickMapInfo"
>
<div class="round px-2 py-0">
<div class="round p-2">
<i class="fa fa-info" />
</div>
</div>
Expand All @@ -146,12 +146,12 @@
:class="{ disabled: !rotateWithPlayer, active: rotateWithPlayer }"
@click="onClickRotate"
>
<div class="round px-2 py-0">
<div class="round p-2">
<i class="icon-location_arrow" />
</div>
</div>
<div id="center-button" class="button w-100" @click="onClickCenter">
<span class="round px-2 py-0">
<span class="round p-2">
<i class="icon-target" />
</span>
</div>
Expand Down
6 changes: 2 additions & 4 deletions src/utils/_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,14 @@ const initMap = () => {
// Creating the map.
let zoomInWrapper = document.createElement('div');
zoomInWrapper.classList.add('round');
zoomInWrapper.classList.add('px-2');
zoomInWrapper.classList.add('py-0');
zoomInWrapper.classList.add('p-2');
let zoomInLabel = document.createElement('i');
zoomInLabel.classList.add('icon-zoom_in');
zoomInWrapper.append(zoomInLabel);

let zoomOutWrapper = document.createElement('div');
zoomOutWrapper.classList.add('round');
zoomOutWrapper.classList.add('px-2');
zoomOutWrapper.classList.add('py-0');
zoomOutWrapper.classList.add('p-2');
let zoomOutLabel = document.createElement('i');
zoomOutLabel.classList.add('icon-zoom_out');
zoomOutWrapper.append(zoomOutLabel);
Expand Down

0 comments on commit e9e4f11

Please sign in to comment.