Skip to content

Commit

Permalink
Merge pull request #11753 from JohnathanWhite/feat/update-ltc-logo
Browse files Browse the repository at this point in the history
[FEAT] update LTC branding
  • Loading branch information
cmgustavo authored Jul 26, 2021
2 parents f59d2a0 + 6c6e84a commit 631b15f
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/app/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ ion-spinner * {
}

.ltc-background {
background-color: #2962ff;
background-color: #a6a9aa;
}

button.item {
Expand Down
5 changes: 4 additions & 1 deletion src/assets/img/currencies/ltc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/img/currencies/testnet/ltc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/assets/img/icon-ltc-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 3 additions & 18 deletions src/components/coin-icon/coin-icon.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
<ion-icon *ngIf="coin && coin !== 'default'" class="item-img rectangle" [ngClass]="{
'background_btc': coin == 'btc',
'background_bch': coin == 'bch',
'background_eth': coin == 'eth',
'background_xrp': coin == 'xrp',
'background_usdc': coin == 'usdc',
'background_pax': coin == 'pax',
'background_gusd': coin == 'gusd',
'background_busd': coin == 'busd',
'background_dai': coin == 'dai',
'background_wbtc': coin == 'wbtc',
'background_doge': coin == 'doge',
'background_ltc': coin == 'ltc',
'testnet': network === 'testnet'
}" item-start>
<img src="assets/img/currencies/{{coin}}.svg" />
<ion-icon *ngIf="coin && coin !== 'default'" class="item-img rectangle background_{{coin}}" [ngClass]="{'testnet': network === 'testnet'}" item-start>
<img [src]="assetUrl" />
</ion-icon>

<ion-icon *ngIf="coin ==='default'" name="logo-usd" color="success" class="item-img rectangle background_default" item-start></ion-icon>
<ion-icon *ngIf="coin ==='default'" name="logo-usd" color="success" class="item-img rectangle background_default" item-start></ion-icon>
2 changes: 1 addition & 1 deletion src/components/coin-icon/coin-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ coin-icon {
background-color: #d8c172;
}
&_ltc {
background-color: #2962ff;
background-color: #a6a9aa;
}
&_default {
background-color: #e6f8e9;
Expand Down
14 changes: 11 additions & 3 deletions src/components/coin-icon/coin-icon.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
import { Component, Input } from '@angular/core';
import { Component, Input, OnInit } from '@angular/core';

@Component({
selector: 'coin-icon',
templateUrl: 'coin-icon.html'
})
export class CoinIconComponent {
export class CoinIconComponent implements OnInit {
@Input()
coin: string;
@Input()
network: string;

constructor() {}
public assetUrl = 'assets/img/currencies/';

ngOnInit() {
if (this.network === 'testnet' && ['ltc'].includes(this.coin)) {
this.assetUrl += 'testnet/';
}

this.assetUrl += `${this.coin}.svg`;
}
}
2 changes: 1 addition & 1 deletion src/theme/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
background-color: #d8c172;
}
&_ltc {
background-color: #2962ff;
background-color: #a6a9aa;
}
}
}
Expand Down

0 comments on commit 631b15f

Please sign in to comment.