Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(theme): make compatible with multi-language
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyMow authored and mrfelton committed Sep 19, 2018
1 parent f6fd4f9 commit f7964c8
Show file tree
Hide file tree
Showing 60 changed files with 639 additions and 371 deletions.
6 changes: 4 additions & 2 deletions app/components/Activity/Activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ class Activity extends Component {
updateSearchActive,
updateSearchText,
walletProps,
intl
intl,

settings
} = this.props

if (balance.channelBalance === null || balance.walletBalance === null) {
return <LoadingBolt />
return <LoadingBolt theme={settings.theme} />
}

const refreshClicked = () => {
Expand Down
42 changes: 21 additions & 21 deletions app/components/Activity/Activity.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
}

.activities {
background: $white;
background: var(--darkestBackground);

.header {
background: $spaceblue;
color: $white;
background: var(--darkestBackground);
color: var(--primaryText);
margin: 0 auto;
padding: 0 40px;
border-bottom: 1px solid $spaceborder;
Expand All @@ -47,7 +47,7 @@
transition: all 0.25s;

&.search {
background: linear-gradient(270deg, #868b9f 0%, #333c5e 100%);
background: var(--gradient);

section {
&:nth-child(1) {
Expand All @@ -62,13 +62,14 @@
font-size: 20px;
line-height: 24px;
letter-spacing: 1px;
color: $white;
color: var(--primaryColor);
width: 100%;
}

.xIcon svg {
width: 25px;
height: 25px;
stroke: var(--white);
}
}

Expand Down Expand Up @@ -96,13 +97,12 @@
display: block;
position: relative;
margin: 0 15px;
padding: 20px 0;
}

svg {
width: 14px;
height: 14px;
color: $white;
color: var(--primaryColor);
opacity: 0.5;
cursor: pointer;
transition: all 0.25s;
Expand All @@ -118,7 +118,7 @@
right: 15px;
width: auto;
height: 1px;
background: white;
background: var(--primaryText);
position: absolute;
bottom: -1px;
}
Expand All @@ -127,7 +127,7 @@
}

.activityContainer {
background: $spaceblue;
background: var(--primaryBackground);
transition: opacity 0.25s;
height: calc(100vh - 304px);
overflow-y: auto;
Expand All @@ -142,20 +142,20 @@

.toggleExpired {
margin: 0 auto;
font-size: 16px;
font-size: 14px;
font-weight: bold;
color: $white;
background: #31343f;
padding: 10px;
color: var(--primaryText);
background: var(--lightBackground);
padding: 10px 7.5px;
width: 200px;
text-align: center;
border-radius: 5px;
cursor: pointer;
opacity: 0.5;
opacity: 1;
transition: all 0.25s;

&:hover {
opacity: 1;
opacity: 0.5;
}
}

Expand All @@ -165,7 +165,7 @@
margin-bottom: 30px;

h2 {
color: $white;
color: var(--primaryText);
font-size: 10px;
font-weight: bold;
border-bottom: 0.2px solid #a0a0a0;
Expand Down Expand Up @@ -207,7 +207,7 @@
font-size: 14px;
transition: background-color 0.1s linear;
transition-delay: 0.1s;
color: $white;
color: var(--primaryText);
position: relative;

&.unpaid {
Expand Down Expand Up @@ -300,7 +300,7 @@
margin-right: 5px;

svg {
color: $white;
color: var(--primaryText);
font-size: 10px;
vertical-align: middle;
display: flex;
Expand Down Expand Up @@ -330,7 +330,7 @@
flex-direction: column;
text-align: right;
font-size: 12px;
color: $white;
color: var(--primaryText);

span {
&:nth-child(1) {
Expand All @@ -348,11 +348,11 @@
}

.plus {
color: $green;
color: var(--superGreen);
}

.minus {
color: $red;
color: var(--superRed);
}
}
}
2 changes: 1 addition & 1 deletion app/components/Activity/ActivityModal/ActivityModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.container {
position: relative;
height: 100vh;
background: $bluegrey;
background: var(--lightBackground);
}

.closeContainer {
Expand Down
19 changes: 10 additions & 9 deletions app/components/Activity/InvoiceModal/InvoiceModal.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
@import 'styles/variables.scss';

.container {
color: $white;
color: var(--primaryText);
}

.content {
display: flex;
flex-direction: row;
align-items: center;
background: $spaceblue;
background: var(--darkestBackground);
width: 85%;
margin: 50px auto;
padding: 30px 0;
Expand Down Expand Up @@ -82,13 +82,13 @@

li {
padding: 8px 15px;
background: #191919;
background: var(--lightBackground);
cursor: pointer;
transition: 0.25s hover;
border-bottom: 1px solid #0f0f0f;
border-bottom: 1px solid var(--lightestBackground);

&:hover {
background: #0f0f0f;
background: var(--lightestBackground);
}
}
}
Expand All @@ -99,12 +99,12 @@
text-align: right;

.notPaid {
color: $orange;
color: var(--lightningOrange);
margin-top: 5px;
}

.paid {
color: $green;
color: var(--superGreen);
margin-top: 5px;
}
}
Expand Down Expand Up @@ -149,12 +149,13 @@
margin: 35px 10px;
width: 235px;
padding: 20px 10px;
background: #31343f;
background: var(--lightestBackground);
cursor: pointer;
transition: 0.25s all;
opacity: 0.75;

&:hover {
background: darken(#31343f, 5%);
opacity: 1;
}
}
}
16 changes: 8 additions & 8 deletions app/components/Activity/PaymentModal/PaymentModal.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@import 'styles/variables.scss';

.container {
color: $white;
color: var(--primaryText);
font-size: 12px;
width: 75%;
margin: 0 auto;
background: $spaceblue;
background: var(--darkestBackground);
}

.header {
Expand All @@ -17,13 +17,13 @@
section {
&:nth-child(1) {
font-size: 16px;
color: $green;
color: var(--primaryText);

svg {
width: 16px;
height: 16px;
vertical-align: top;
fill: $green;
fill: var(--primaryText);
}

span:nth-child(2) {
Expand Down Expand Up @@ -94,13 +94,13 @@

li {
padding: 8px 15px;
background: #191919;
background: var(--lightBackground);
cursor: pointer;
transition: 0.25s hover;
border-bottom: 1px solid #0f0f0f;
border-bottom: 1px solid var(--lightestBackground);

&:hover {
background: #0f0f0f;
background: var(--lightestBackground);
}
}
}
Expand All @@ -113,7 +113,7 @@
}

.footer {
background: #31343f;
background: var(--lightestBackground);
margin: 20px 0 50px 0;
padding: 20px;
text-align: center;
Expand Down
26 changes: 14 additions & 12 deletions app/components/Activity/TransactionModal/TransactionModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,20 @@ const TransactionModal = ({
<FormattedMessage {...messages.on_chain} />
</span>
</div>
<div>
<Value
value={transaction.total_fees}
currency={ticker.currency}
currentTicker={currentTicker}
fiatTicker={ticker.fiatTicker}
/>
<span>
{' '}
{currencyName} <FormattedMessage {...messages.fee} />
</span>
</div>
{!transaction.received && (
<div>
<Value
value={transaction.total_fees}
currency={ticker.currency}
currentTicker={currentTicker}
fiatTicker={ticker.fiatTicker}
/>
<span>
{' '}
{currencyName} <FormattedMessage {...messages.fee} />
</span>
</div>
)}
</section>
</header>

Expand Down
19 changes: 11 additions & 8 deletions app/components/Activity/TransactionModal/TransactionModal.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@import 'styles/variables.scss';

.container {
color: $white;
color: var(--primaryText);
font-size: 12px;
width: 75%;
margin: 0 auto;
background: $spaceblue;
background: var(--darkestBackground);
}

.header {
Expand All @@ -17,13 +17,16 @@
section {
&:nth-child(1) {
font-size: 16px;
color: $green;
color: var(--primaryText);

svg {
width: 16px;
height: 16px;
vertical-align: top;
fill: $green;

g {
stroke: var(--primaryText);
}
}

span:nth-child(2) {
Expand Down Expand Up @@ -99,13 +102,13 @@

li {
padding: 8px 15px;
background: #191919;
background: var(--lightBackground);
cursor: pointer;
transition: 0.25s hover;
border-bottom: 1px solid #0f0f0f;
border-bottom: 1px solid var(--lightestBackground);

&:hover {
background: #0f0f0f;
background: var(--lightestBackground);
}
}
}
Expand All @@ -119,7 +122,7 @@
}

.footer {
background: #31343f;
background: var(--lightestBackground);
padding: 20px;
text-align: center;

Expand Down
Loading

0 comments on commit f7964c8

Please sign in to comment.