Skip to content

Commit

Permalink
Update connector icons to support dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
webprofusion-chrisc committed Jul 30, 2024
1 parent 2549241 commit e6ac06a
Show file tree
Hide file tree
Showing 7 changed files with 204 additions and 160 deletions.
10 changes: 10 additions & 0 deletions src/app/components/equipment-details/equipment-details.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.connector-icon {
mask-size: 100%;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
mask-position: center;
width: 64px;
height: 64px;
background-color: currentColor;
mask-image: none;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ion-row>
<ion-col size="3">

<img [src]="getConnectorTypeIcon(i.ConnectionTypeID)" style="max-width: 64px;background-color:#ffffffad">
<div class="connector-icon" [style.mask-image]="'url(' + getConnectorTypeIcon(i.ConnectionTypeID) +')'"></div>
<ion-badge color="primary" *ngIf="i.Quantity">{{i.Quantity}} x</ion-badge>
<div class="info">{{i.StatusType?.Title}}</div>
</ion-col>
Expand Down
87 changes: 48 additions & 39 deletions src/assets/images/icons/connectors/Type1_CCS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e6ac06a

Please sign in to comment.