Skip to content

Commit

Permalink
Themes: add color for action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Nov 13, 2023
1 parent 2006564 commit 14ef455
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
15 changes: 12 additions & 3 deletions components/LayerBalances/LightningSwipeableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,30 @@ export default class LightningSwipeableRow extends Component<
>
{text === localeString('general.routing') && (
<Routing
fill={themeColor('highlight')}
fill={
themeColor('action') ||
themeColor('highlight')
}
width={30}
height={30}
/>
)}
{text === localeString('general.receive') && (
<Receive
fill={themeColor('highlight')}
fill={
themeColor('action') ||
themeColor('highlight')
}
width={30}
height={30}
/>
)}
{text === localeString('general.send') && (
<Send
fill={themeColor('highlight')}
fill={
themeColor('action') ||
themeColor('highlight')
}
width={30}
height={30}
/>
Expand Down
15 changes: 12 additions & 3 deletions components/LayerBalances/OnchainSwipeableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,30 @@ export default class OnchainSwipeableRow extends Component<
>
{text === localeString('general.coins') && (
<Coins
fill={themeColor('highlight')}
fill={
themeColor('action') ||
themeColor('highlight')
}
width={30}
height={30}
/>
)}
{text === localeString('general.receive') && (
<Receive
fill={themeColor('highlight')}
fill={
themeColor('action') ||
themeColor('highlight')
}
width={30}
height={30}
/>
)}
{text === localeString('general.send') && (
<Send
fill={themeColor('highlight')}
fill={
themeColor('action') ||
themeColor('highlight')
}
width={30}
height={30}
/>
Expand Down
3 changes: 2 additions & 1 deletion utils/ThemeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export function themeColor(themeString: string): any {
buttonBackground: '#FFA900',
buttonGradient: ['#FF9000', '#FFA900'],
buttonText: '#000000',
qr: '#FFA900'
qr: '#FFA900',
action: '#FFF'
};

const Light: { [key: string]: any } = {
Expand Down

0 comments on commit 14ef455

Please sign in to comment.