Skip to content

Commit

Permalink
Merge pull request #907 from sebastianbarry/color-changes-master
Browse files Browse the repository at this point in the history
Iconized the start/stop in label screen
  • Loading branch information
shankari authored Nov 2, 2022
2 parents f86d578 + b57d25c commit a7faa7d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 12 deletions.
19 changes: 17 additions & 2 deletions www/css/main.diary.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,26 @@ a.item-content {
}
.leaflet-div-icon-start {
background-color: #80D0FF;
border-radius: 6px;
border-radius: 100%;
}
.leaflet-div-icon-stop {
background-color: #0088ce;
border-radius: 6px;
border-radius: 100%;
}
.leaflet-div-ionicon {
background: transparent;
color: white;
font-size: 100%;
justify-content: center;
display: flex;
}
.leaflet-div-ionicon-start {
color: white;
}
.leaflet-div-ionicon-stop {
color: white;
margin-top: 1px;
margin-left: 3px;
}
.inner-icon {
background-color: white;
Expand Down
4 changes: 2 additions & 2 deletions www/js/diary/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ angular.module('emission.main.diary.services', ['emission.plugin.logger',
}
};
var pointIcon = L.divIcon({className: 'leaflet-div-icon', iconSize: [0, 0]});
var startIcon = L.divIcon({className: 'leaflet-div-icon-start', iconSize: [12, 12], html: '<div class="inner-icon">'});
var stopIcon = L.divIcon({className: 'leaflet-div-icon-stop', iconSize: [12, 12], html: '<div class="inner-icon">'});
var startIcon = L.divIcon({className: 'leaflet-div-icon-start', iconSize: [18, 18], html: '<div class="leaflet-div-ionicon leaflet-div-ionicon-start"><i class="ion-location"></i></div>'});
var stopIcon = L.divIcon({className: 'leaflet-div-icon-stop', iconSize: [18, 18], html: '<div class="leaflet-div-ionicon leaflet-div-ionicon-stop"><i class="ion-flag"></i></div>'});

var style_stop = function(feature) {
return {fillColor: 'yellow', fillOpacity: 0.8};
Expand Down
4 changes: 2 additions & 2 deletions www/templates/diary/diary_list_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
<div class="col-90 start-end-addresses-container">
<!-- Fixed font size issue here by adding the style to the second ng-class. -->
<div ng-class="listLocationClass" id="no-border" href="#" style="background-color: transparent; font-size: 0.8em; padding-top: 5px; padding-bottom: 5px; padding-left: 30px; margin-top: 0; margin-bottom: 0;">
<i class="icon ion-ios-location" style="font-size: 16px; left: 0; color: #80D0FF;"></i>
<i class="icon ion-location" style="font-size: 16px; left: 0; color: #80D0FF;"></i>
{{tripgj.start_place.properties.display_name.split(',')[0]}}

</div>
<div ng-class="listLocationClass" id="no-border" href="#" style="background-color: transparent; font-size: 0.8em; padding-top: 5px; padding-bottom: 5px; padding-left: 30px; margin-top: 0; margin-bottom: 0;">
<i class="icon ion-ios-location" style="font-size: 16px; left: 0; color: #0088ce;"></i>
<i class="icon ion-flag" style="font-size: 16px; left: 0; color: #0088ce;"></i>
{{tripgj.end_place.properties.display_name.split(',')[0]}}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions www/templates/diary/infinite_scroll_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<div class="col-70">

<div class="item item-icon-left" id="no-border" href="#" style="font-size: 1em; padding-top: 5px; padding-bottom: 5px;padding-left: 25px; margin-top: 0; margin-bottom: '0'}};">
<i class="icon ion-ios-location" style="font-size: 16px; left: 0; color: #80D0FF;"></i>
<i class="icon ion-location" style="font-size: 16px; left: 0; color: #80D0FF;"></i>
{{tripgj.start_display_name}}

</div>
<div class="item item-icon-left" id="no-border" href="#" style="font-size: 1em; padding-top: 5px; padding-bottom: 5px;padding-left: 25px; margin-top: 0; margin-bottom: 0;">
<i class="icon ion-ios-location" style="font-size: 16px; left: 0; color: #0088ce;"></i>
<i class="icon ion-flag" style="font-size: 16px; left: 0; color: #0088ce;"></i>
{{tripgj.end_display_name}}
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions www/templates/diary/trip_list_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@
<div class="row" style="padding: 4px">
<div class="col-100">
<!-- Origin for Trip -->
<div class="diary-street" ng-click="showDetail($event, trip)">
<i class="icon ion-ios-location" style="font-size: 16px; left: 0; color: #80D0FF;"></i>
<div class="diary-street two-lines" ng-click="showDetail($event, trip)">
<i class="icon ion-location" style="font-size: 16px; left: 0; color: #80D0FF;"></i>
{{trip.start_display_name}}
</div>

<!-- Destination for Trip -->
<div class="diary-street" ng-click="showDetail($event, trip)">
<i class="icon ion-ios-location" style="font-size: 16px; left: 0; color: #0088ce;"></i>
<div class="diary-street two-lines" ng-click="showDetail($event, trip)">
<i class="icon ion-flag" style="font-size: 16px; left: 0; color: #0088ce;"></i>
{{trip.end_display_name}}
</div>
</div>
Expand Down

0 comments on commit a7faa7d

Please sign in to comment.