Skip to content

Commit

Permalink
reskin of wallet color thematic
Browse files Browse the repository at this point in the history
back button onhover styling
  • Loading branch information
Denis2626 committed Sep 5, 2023
1 parent 90f2768 commit b906bf6
Show file tree
Hide file tree
Showing 21 changed files with 71 additions and 59 deletions.
13 changes: 8 additions & 5 deletions ui/components/AccountItem/AccountItemOptionsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function AccountItemOptionsMenu({
</SharedSlideUpMenu>
<SharedSlideUpMenu
size="custom"
customSize="336px"
customSize="130px"
isOpen={showExportPrivateKey}
close={(e) => {
e?.stopPropagation()
Expand All @@ -95,9 +95,9 @@ export default function AccountItemOptionsMenu({
}}
>
<li className="account_container">
<div className="item-summary standard_width">
<div className="item-summary ">
<div title="Private Key" className="address_name">Private Key</div>
{key}
<text>{key}</text>
</div>
</li>
<button
Expand Down Expand Up @@ -185,20 +185,23 @@ export default function AccountItemOptionsMenu({
background-color: var(--green-40);
}
.address_name {
color: #fff;
color: var(--trophy-gold);
font-size: 18px;
font-weight: 600;
overflow: auto;
text-overflow: ellipsis;
}
.item-summary {
overflow-wrap: break-word;
word-break: break-all;
display: flex;
justify-content: flex-start;
flex-direction: column;
align-items: flex-start;
margin: 0 auto;
min-width: 0; // Allow collapsing if account name is too long.
overflow: auto;
padding: 2px;
}
li {
display: flex;
Expand All @@ -207,7 +210,7 @@ export default function AccountItemOptionsMenu({
flex-direction: column;
margin: 0 auto;
width: 336px;
height: 52px;
height: 75px;
}
.account_container {
margin-top: -10px;
Expand Down
2 changes: 1 addition & 1 deletion ui/components/Shared/SharedAccountItemSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default function SharedAccountItemSummary(props: Props): ReactElement {
overflow: hidden;
}
.address_name {
color: #fff;
color: var(--trophy-gold);
font-size: 18px;
font-weight: 600;
overflow: hidden;
Expand Down
1 change: 1 addition & 0 deletions ui/components/Shared/SharedAssetIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export default function SharedAssetIcon(props: Props): ReactElement {
width: 40px;
height: 40px;
border-radius: 80px;
border: 1px solid var(--disabled);
overflow: hidden;
background-color: var(--castle-black);
flex-shrink: 0;
Expand Down
4 changes: 2 additions & 2 deletions ui/components/Shared/SharedAssetInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function SelectedAssetButton(props: SelectedAssetButtonProps): ReactElement {
button {
display: flex;
align-items: center;
color: #fff;
color: var(--green-40);
font-size: 16px;
font-weight: 500;
line-height: 24px;
Expand Down Expand Up @@ -764,7 +764,7 @@ export default function SharedAssetInput<T extends AnyAsset>(
.input_amount {
max-width: 125px;
height: 32px;
color: #ffffff;
color: var(--green-40);
font-size: 22px;
font-weight: 500;
line-height: 32px;
Expand Down
4 changes: 2 additions & 2 deletions ui/components/Shared/SharedBackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function SharedBackButton({
}
button:hover {
color: #fff;
color: var(--green-20);
}
button.round {
Expand All @@ -84,7 +84,7 @@ export default function SharedBackButton({
}
button:hover .icon {
background-color: #fff;
background-color: var(--green-20);
}
`}</style>
</button>
Expand Down
6 changes: 3 additions & 3 deletions ui/components/Shared/SharedButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ export default function SharedButton(
background-color: var(--trophy-gold);
}
.disabled {
background-color: var(--green-60);
background-color: var(--disabled);
border-color: var(--green-60);
color: var(--green-80);
color: var(--gold-5);
pointer-events: none;
}
.disabled .icon_button {
background-color: var(--green-80);
background-color: var(--gold-5);
}
.disabled:hover {
background-color: var(--green-60);
Expand Down
8 changes: 4 additions & 4 deletions ui/components/Shared/SharedIconRouterLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ export default function SharedIconRouterLink(props: Props): ReactElement {
}
.disabled_asset_icon {
mask-size: cover;
background-color: var(--green-60);
background-color: var(--disabled);
width: 12px;
height: 12px;
}
.router_link_container:hover {
background-color: var(--hunter-green);
color: var(--trophy-gold);
background-color: var(--green-120);
color: #FFFFFF;
}
.router_link_container:hover .asset_icon {
background-color: var(--trophy-gold);
background-color: #FFFFFF;
}
`}</style>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion ui/components/Shared/SharedSlideUpMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function SharedSlideUpMenu(props: Props): ReactElement {
overflow-x: hidden;
overflow-y: ${isScrollable ? "auto" : "hidden"};
border-radius: ${isFullScreen ? "0" : "16px 16px 0 0"};
background-color: var(--green-95);
background-color: #FFFFFF;
position: fixed;
left: 0px;
right: 0px;
Expand Down
8 changes: 6 additions & 2 deletions ui/components/Shared/SharedSquareButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function SharedSquareButton(props: Props): ReactElement {
return (
<button
type="button"
className={!disabled ? "hoverable" : undefined}
className={!disabled ? "hoverable" : 'disabled'}
aria-label={ariaLabel}
onClick={onClick}
>
Expand All @@ -63,6 +63,10 @@ export default function SharedSquareButton(props: Props): ReactElement {
.hoverable:hover {
color: ${textColor.hoverColor};
}
.disabled{
color: var(--disabled);
cursor: default;
}
.content_wrap {
display: flex;
flex-direction: column;
Expand All @@ -73,7 +77,7 @@ export default function SharedSquareButton(props: Props): ReactElement {
border-radius: 12px;
width: ${size}px;
height: ${size}px;
background-color: ${iconColor.color};
background-color: ${disabled ? 'var(--disabled)' : 'var(--trophy-gold)'};
transition: background-color 0.2s;
}
.hoverable:hover .icon_wrap {
Expand Down
4 changes: 2 additions & 2 deletions ui/components/Shared/SharedToggleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ export default function SharedToggleButton({
width: 16px;
height: 16px;
border-radius: 20px;
background-color: ${offColor ?? "var(--green-40)"};
background-color: ${offColor ?? "var(--hunter-green)"};
transition: 0.2s ease-in-out;
box-shadow: 0px 1px 1px rgba(0, 20, 19, 0.3);
}
.is_active .bulb {
transform: translateX(16px);
background-color: ${onColor ?? "var(--trophy-gold)"};
background-color: ${onColor ?? "var(--gold-60)"};
}
`}
</style>
Expand Down
6 changes: 3 additions & 3 deletions ui/components/TabBar/TabBarIconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function TabBarIconButton(
width: 24px;
height: 24px;
cursor: pointer;
background-color: ${disabled ? "#3A4565" : "var(--green-40)"};
background-color: ${disabled ? "var(--disabled)" : "var(--green-40)"};
transition: transform 0.1s ease;
}
span {
Expand All @@ -69,14 +69,14 @@ export default function TabBarIconButton(
}
.tab_bar_icon_wrap:hover:not(.active) span,
.active span {
color: var(--green-20);
color: ${disabled ? "var(--disabled)" : "var(--green-40)"};
}
.tab_bar_icon_wrap:hover,
.active {
transform: translateY(-8px) translateZ(0);
}
.tab_bar_icon_wrap:hover:not(.active) .icon {
background-color: ${disabled ? "#3A4565" : "var(--green-20)"};
background-color: ${disabled ? "var(--disabled)" : "var(--green-40)"};
}
.active span {
color: var(--trophy-gold);
Expand Down
7 changes: 2 additions & 5 deletions ui/components/TopMenu/TopMenuProtocolSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function TopMenuProtocolSwitcher({
max-width: 60%;
}
button:hover {
color: #fff;
color: var(--green-20);
}
.icon_chevron_down {
flex-shrink: 0;
Expand All @@ -52,7 +52,7 @@ export default function TopMenuProtocolSwitcher({
background-color: var(--green-40);
}
button:hover .icon_chevron_down {
background-color: #fff;
background-color: var(--green-20);
}
.icon_wrap {
width: 24px;
Expand All @@ -64,9 +64,6 @@ export default function TopMenuProtocolSwitcher({
justify-content: center;
margin-right: 5px;
}
button:hover .icon_wrap {
background-color: var(--green-80) !important;
}
`}
</style>
</button>
Expand Down
10 changes: 8 additions & 2 deletions ui/components/Wallet/AssetListItem/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default `
}
.asset_amount {
height: 17px;
color: #fefefc;
color: var(--green-20);
font-size: 14px;
font-weight: 400;
letter-spacing: 0.42px;
Expand All @@ -42,15 +42,21 @@ export default `
overflow-wrap: anywhere;
word-break: break-all;
}
.asset_list_item:hover .asset_amount{
color: #FFFFFF
}
.bold_amount_count {
width: 70px;
height: 24px;
color: #fefefc;
color: var(--green-20);
font-size: 18px;
font-weight: 600;
line-height: 24px;
margin-right: 4px;
}
.asset_list_item:hover .bold_amount_count{
color: #FFFFFF;
}
.verify_asset {
display: flex;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion ui/components/Wallet/WalletAccountBalanceControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default function WalletAccountBalanceControl(
height: 48px;
}
.balance {
color: #ffffff;
color: var(--green-20);
font-size: 36px;
font-weight: 500;
line-height: 48px;
Expand Down
4 changes: 2 additions & 2 deletions ui/components/Wallet/WalletActivityListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default function WalletActivityListItem(props: Props): ReactElement {
transform: scale(0.8);
}
.amount {
color: #fefefc;
color: var(--green-40);
font-size: 14px;
font-weight: 400;
letter-spacing: 0.42px;
Expand All @@ -211,7 +211,7 @@ export default function WalletActivityListItem(props: Props): ReactElement {
}
.bold_amount_count {
height: 24px;
color: #fefefc;
color: var(--trophy-gold);
font-size: 18px;
font-weight: 600;
line-height: 24px;
Expand Down
2 changes: 1 addition & 1 deletion ui/components/Wallet/WalletAssetListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function WalletAssetListItem(props: Props): ReactElement {
height: 12px;
}
.asset_list_item:hover .asset_icon:not(:hover) {
background-color: var(--green-40);
background-color: #FFFFFF;
}
.asset_icon:hover {
background-color: var(--trophy-gold);
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/Receive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function Receive(): ReactElement {
}
h1 {
height: 32px;
color: #ffffff;
color: var(--trophy-gold);
font-size: 22px;
font-weight: 500;
line-height: 32px;
Expand Down
4 changes: 2 additions & 2 deletions ui/pages/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export default function Send(): ReactElement {
.title {
flex-grow: 1;
height: 32px;
color: #ffffff;
color: var(--trophy-gold);
font-size: 22px;
font-weight: 500;
line-height: 32px;
Expand Down Expand Up @@ -451,7 +451,7 @@ export default function Send(): ReactElement {
font-size: 22px;
font-weight: 500;
line-height: 72px;
color: #fff;
color: var(--green-40);
border-radius: 4px;
background-color: var(--green-95);
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ export default function Settings(): ReactElement {
flex-direction: column;
}
h1 {
color: #fff;
color: var(--green-20);
font-size: 22px;
font-weight: 500;
line-height: 32px;
Expand Down
4 changes: 2 additions & 2 deletions ui/pages/SingleAsset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export default function SingleAsset(): ReactElement {
gap: 16px;
}
.asset_name {
color: #fff;
color: var(--green-20);
font-size: 22px;
font-weight: 500;
line-height: 32px;
Expand All @@ -303,7 +303,7 @@ export default function SingleAsset(): ReactElement {
align-items: center;
}
.balance {
color: #fff;
color: var(--green-20);
font-size: 36px;
font-weight: 500;
line-height: 48px;
Expand Down
Loading

0 comments on commit b906bf6

Please sign in to comment.