2019-01-25 05:46:03 +01:00
|
|
|
import { LegacyWallet } from './legacy-wallet';
|
|
|
|
import { HDSegwitP2SHWallet } from './hd-segwit-p2sh-wallet';
|
|
|
|
import { LightningCustodianWallet } from './lightning-custodian-wallet';
|
|
|
|
import { HDLegacyBreadwalletWallet } from './hd-legacy-breadwallet-wallet';
|
|
|
|
import { HDLegacyP2PKHWallet } from './hd-legacy-p2pkh-wallet';
|
|
|
|
import { WatchOnlyWallet } from './watch-only-wallet';
|
2019-06-01 22:44:39 +02:00
|
|
|
import { HDSegwitBech32Wallet } from './hd-segwit-bech32-wallet';
|
2019-12-27 03:21:07 +01:00
|
|
|
import { PlaceholderWallet } from './placeholder-wallet';
|
2020-04-22 17:13:18 +02:00
|
|
|
import { SegwitBech32Wallet } from './segwit-bech32-wallet';
|
2019-01-25 05:46:03 +01:00
|
|
|
|
|
|
|
export default class WalletGradient {
|
2019-03-05 02:04:40 +01:00
|
|
|
static hdSegwitP2SHWallet = ['#65ceef', '#68bbe1'];
|
2019-06-01 22:44:39 +02:00
|
|
|
static hdSegwitBech32Wallet = ['#68bbe1', '#3b73d4'];
|
2020-03-31 18:49:30 +02:00
|
|
|
static segwitBech32Wallet = ['#f8bbe1', '#945a90'];
|
2019-01-25 05:46:03 +01:00
|
|
|
static watchOnlyWallet = ['#7d7d7d', '#4a4a4a'];
|
|
|
|
static legacyWallet = ['#40fad1', '#15be98'];
|
|
|
|
static hdLegacyP2PKHWallet = ['#e36dfa', '#bd10e0'];
|
|
|
|
static hdLegacyBreadWallet = ['#fe6381', '#f99c42'];
|
2019-03-05 02:04:40 +01:00
|
|
|
static defaultGradients = ['#c65afb', '#9053fe'];
|
2019-01-25 05:46:03 +01:00
|
|
|
static lightningCustodianWallet = ['#f1be07', '#f79056'];
|
|
|
|
static createWallet = ['#eef0f4', '#eef0f4'];
|
|
|
|
|
|
|
|
static gradientsFor(type) {
|
|
|
|
let gradient;
|
|
|
|
switch (type) {
|
|
|
|
case WatchOnlyWallet.type:
|
|
|
|
gradient = WalletGradient.watchOnlyWallet;
|
|
|
|
break;
|
|
|
|
case LegacyWallet.type:
|
|
|
|
gradient = WalletGradient.legacyWallet;
|
|
|
|
break;
|
|
|
|
case HDLegacyP2PKHWallet.type:
|
|
|
|
gradient = WalletGradient.hdLegacyP2PKHWallet;
|
|
|
|
break;
|
|
|
|
case HDLegacyBreadwalletWallet.type:
|
|
|
|
gradient = WalletGradient.hdLegacyBreadWallet;
|
|
|
|
break;
|
|
|
|
case HDSegwitP2SHWallet.type:
|
|
|
|
gradient = WalletGradient.hdSegwitP2SHWallet;
|
|
|
|
break;
|
2019-06-01 22:44:39 +02:00
|
|
|
case HDSegwitBech32Wallet.type:
|
|
|
|
gradient = WalletGradient.hdSegwitBech32Wallet;
|
|
|
|
break;
|
2019-01-25 05:46:03 +01:00
|
|
|
case LightningCustodianWallet.type:
|
|
|
|
gradient = WalletGradient.lightningCustodianWallet;
|
|
|
|
break;
|
2019-12-27 03:21:07 +01:00
|
|
|
case PlaceholderWallet.type:
|
|
|
|
gradient = WalletGradient.watchOnlyWallet;
|
|
|
|
break;
|
2020-03-31 18:49:30 +02:00
|
|
|
case SegwitBech32Wallet.type:
|
|
|
|
gradient = WalletGradient.segwitBech32Wallet;
|
|
|
|
break;
|
2019-01-25 05:46:03 +01:00
|
|
|
case 'CreateWallet':
|
|
|
|
gradient = WalletGradient.createWallet;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gradient = WalletGradient.defaultGradients;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
static headerColorFor(type) {
|
|
|
|
let gradient;
|
|
|
|
switch (type) {
|
|
|
|
case WatchOnlyWallet.type:
|
|
|
|
gradient = WalletGradient.watchOnlyWallet;
|
|
|
|
break;
|
|
|
|
case LegacyWallet.type:
|
|
|
|
gradient = WalletGradient.legacyWallet;
|
|
|
|
break;
|
|
|
|
case HDLegacyP2PKHWallet.type:
|
|
|
|
gradient = WalletGradient.hdLegacyP2PKHWallet;
|
|
|
|
break;
|
|
|
|
case HDLegacyBreadwalletWallet.type:
|
|
|
|
gradient = WalletGradient.hdLegacyBreadWallet;
|
|
|
|
break;
|
|
|
|
case HDSegwitP2SHWallet.type:
|
|
|
|
gradient = WalletGradient.hdSegwitP2SHWallet;
|
|
|
|
break;
|
2019-06-01 22:44:39 +02:00
|
|
|
case HDSegwitBech32Wallet.type:
|
|
|
|
gradient = WalletGradient.hdSegwitBech32Wallet;
|
|
|
|
break;
|
2020-03-31 18:49:30 +02:00
|
|
|
case SegwitBech32Wallet.type:
|
|
|
|
gradient = WalletGradient.segwitBech32Wallet;
|
|
|
|
break;
|
2019-01-25 05:46:03 +01:00
|
|
|
case LightningCustodianWallet.type:
|
|
|
|
gradient = WalletGradient.lightningCustodianWallet;
|
|
|
|
break;
|
|
|
|
case 'CreateWallet':
|
|
|
|
gradient = WalletGradient.createWallet;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gradient = WalletGradient.defaultGradients;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return gradient[0];
|
|
|
|
}
|
|
|
|
}
|