1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 03:12:42 +02:00

Modify network icons to reflect current design. (#355)

* Modify network icons to reflect current design.

* Switch icons around.
This commit is contained in:
Kevin Serrano 2016-06-28 16:15:26 -07:00 committed by Dan Finlay
parent c6187b080a
commit e4956c3123
4 changed files with 14 additions and 16 deletions

View File

@ -10,6 +10,7 @@
- Fix formatting on terms & conditions page.
- Now enforce 30 character limit on wallet names.
- Fix out-of-place positioning of pending transaction badges on wallet list.
- Change network status icons to reflect current design.
## 2.4.4 2016-06-23

View File

@ -212,14 +212,14 @@ App.prototype.renderNetworkDropdown = function () {
label: 'Main Ethereum Network',
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
action: () => props.dispatch(actions.setProviderType('mainnet')),
icon: h('.menu-icon.ether-icon'),
icon: h('.menu-icon.diamond'),
}),
h(DropMenuItem, {
label: 'Morden Test Network',
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
action: () => props.dispatch(actions.setProviderType('testnet')),
icon: h('.menu-icon.morden-icon'),
icon: h('.menu-icon.red-dot'),
}),
h(DropMenuItem, {

View File

@ -47,9 +47,9 @@ Network.prototype.render = function () {
(function () {
switch (iconName) {
case 'ethereum-network':
return h('.menu-icon.ether-icon')
return h('.menu-icon.diamond')
case 'morden-test-network':
return h('.menu-icon.morden-icon')
return h('.menu-icon.red-dot')
default:
return h('i.fa.fa-question-circle.fa-lg', {
ariaHidden: true,

View File

@ -168,17 +168,14 @@ hr.horizontal-line {
}
.red-dot {
position: inherit;
background: red;
background: #E91550;
color: white;
border-radius: 10px;
height: 12px;
min-width: 12px;
margin-left: 6px;
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
}
.diamond {
transform: rotate(45deg);
background: #038789;
}
.pending-dot {
@ -203,8 +200,8 @@ hr.horizontal-line {
.menu-icon {
display: inline-block;
width: 14px;
height: 14px;
height: 9px;
min-width: 9px;
margin: 13px;
}
.ether-icon {
@ -222,4 +219,4 @@ hr.horizontal-line {
.invisible {
visibility: hidden;
}
}