Skip to content

Commit

Permalink
Merge pull request #367 from Emurgo/vsubhuman/ch121/replace-ledger-logo
Browse files Browse the repository at this point in the history
Replace Ledger logo
  • Loading branch information
SebastienGllmt authored Mar 27, 2019
2 parents 1bff3a8 + 62c5529 commit 00937bd
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 73 deletions.
62 changes: 0 additions & 62 deletions app/assets/images/top-bar/with-ledger-nano-s-logo-white.inline.svg

This file was deleted.

11 changes: 11 additions & 0 deletions app/assets/images/top-bar/with-ledger-nano-s-logo.inline.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: 2 additions & 2 deletions app/components/topbar/TopBarCategory.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export default class TopBarCategory extends Component<Props> {
className
]);

const isWithHW = (className === 'with-trezor-t' || className === 'with-ledger-nano-s');
const iconStyles = classNames([
className === 'wallets' ? styles.walletsIcon : null,
isWithHW ? styles.withHardwareWalletIcon : null,
className === 'with-ledger-nano-s' ? styles.withLedgerNanoSIcon : null,
className === 'with-trezor-t' ? styles.withTrezorTIcon : null,
styles.icon
]);

Expand Down
49 changes: 41 additions & 8 deletions app/components/topbar/TopBarCategory.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,47 @@
}

.active {
.icon:not(.withHardwareWalletIcon) path {
.icon:not(.withLedgerNanoSIcon):not(.withTrezorTIcon) path {
stroke: var(--theme-button-primary-background-color);
fill: var(--theme-button-primary-background-color);
}

.icon:not(.walletsIcon):not(.withHardwareWalletIcon) path {
.icon:not(.walletsIcon):not(.withLedgerNanoSIcon):not(.withTrezorTIcon) path {
fill: var(--theme-button-primary-background-color);
}

.icon:not(.walletsIcon):not(.withHardwareWalletIcon) polygon {
.icon:not(.walletsIcon):not(.withLedgerNanoSIcon):not(.withTrezorTIcon) polygon {
fill: var(--theme-button-primary-background-color);
}

.withHardwareWalletIcon {
.withLedgerNanoSIcon {
& > svg {
// plus-logo
& > g > g:nth-child(1) {
stroke: none;
fill: var(--theme-button-primary-background-color);
}
// hardware wallet (trezor/ledger)
// Ledger Nano S icon
& > g > g:nth-child(2) path {
stroke: none;
fill: var(--theme-button-primary-background-color);
}
}
}

.withTrezorTIcon {
& > svg {
// plus-logo
& > g > g:nth-child(1) {
stroke: none;
fill: var(--theme-button-primary-background-color);
}
// Trezor Model T icon
& > g > g:nth-child(2) {
stroke: var(--theme-button-primary-background-color);
}
}
}
}

&:hover {
cursor: default;
Expand Down Expand Up @@ -68,7 +83,25 @@
}
}

.withHardwareWalletIcon {
.withLedgerNanoSIcon {
flex-shrink: 0;
& > svg {
width: 64px;
height: 42.5px;
// plus-logo
& > g > g:nth-child(1) {
stroke: none;
fill: var(--theme-icon-topbar-color);
}
// Ledger Nano S icon
& > g > g:nth-child(2) {
stroke: none;
fill: var(--theme-icon-topbar-color);
}
}
}

.withTrezorTIcon {
flex-shrink: 0;
& > svg {
width: 64px;
Expand All @@ -78,7 +111,7 @@
stroke: none;
fill: var(--theme-icon-topbar-color);
}
// hardware wallet (trezor/ledger)
// Ledger Nano S icon
& > g > g:nth-child(2) {
stroke: var(--theme-icon-topbar-color);
}
Expand Down
2 changes: 1 addition & 1 deletion app/config/topbarConfig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import { ROUTES } from '../routes-config';
import walletsIcon from '../assets/images/yoroi-logo-shape-white.inline.svg';
import withLedgerNanoSIcon from '../assets/images/top-bar/with-ledger-nano-s-logo-white.inline.svg';
import withLedgerNanoSIcon from '../assets/images/top-bar/with-ledger-nano-s-logo.inline.svg';
import withTrezorTIcon from '../assets/images/top-bar/with-trezor-t-logo-white.inline.svg';
import settingsIcon from '../assets/images/top-bar/setting-active.inline.svg';
import daedalusTransferIcon from '../assets/images/top-bar/daedalus-migration-active.inline.svg';
Expand Down

0 comments on commit 00937bd

Please sign in to comment.