1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Dark Mode: Fix some colors (#14228)

* fix some colors

* fix test and address requested changes

* address requested changes
This commit is contained in:
Guillaume Roux 2022-03-28 19:23:27 +02:00 committed by GitHub
parent d14c588404
commit a3ab204d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 17 deletions

View File

@ -389,7 +389,7 @@ const MODALS = {
}; };
const BACKDROPSTYLE = { const BACKDROPSTYLE = {
backgroundColor: 'rgba(0, 0, 0, 0.5)', backgroundColor: 'var(--color-overlay-default)',
}; };
function mapStateToProps(state) { function mapStateToProps(state) {

View File

@ -51,7 +51,7 @@
height: 75px; height: 75px;
width: 75px; width: 75px;
border-radius: 50%; border-radius: 50%;
border: 1px solid white; border: 1px solid var(--color-background-default);
position: absolute; position: absolute;
box-shadow: 0 2px 2px 0.5px rgba(0, 0, 0, 0.19); box-shadow: 0 2px 2px 0.5px rgba(0, 0, 0, 0.19);
} }
@ -61,7 +61,7 @@
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 60px; font-size: 60px;
color: white; color: var(--color-background-default);
z-index: 1; z-index: 1;
text-shadow: 0 4px 6px rgba(0, 0, 0, 0.422); text-shadow: 0 4px 6px rgba(0, 0, 0, 0.422);
} }

View File

@ -53,7 +53,7 @@
.eth-tx-params { .eth-tx-params {
padding: 8px; padding: 8px;
width: 343px; width: 343px;
background: white; background: var(--color-background-default);
text-align: left; text-align: left;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -80,8 +80,8 @@
width: fit-content; width: fit-content;
padding: 4px; padding: 4px;
text-transform: uppercase; text-transform: uppercase;
border: 1px solid rgb(149, 149, 149); border: 1px solid var(--color-border-default);
color: rgb(149, 149, 149); color: var(--color-background-alternative);
border-radius: 4px; border-radius: 4px;
} }

View File

@ -175,18 +175,12 @@
display: flex; display: flex;
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
} border-bottom: 1px solid var(--color-border-muted);
&__item:nth-of-type(even) {
background-color: var(--color-background-default); background-color: var(--color-background-default);
} }
&__item:nth-of-type(odd) {
background: var(--color-background-alternative);
}
&__item:hover { &__item:hover {
background-color: rgba(0, 0, 0, 0.06); background-color: var(--color-background-alternative);
} }
&__item__index { &__item__index {

View File

@ -36,7 +36,7 @@ exports[`ExchangeRateDisplay renders the component with initial props 1`] = `
> >
<path <path
d="M4.15294 4.38514H9.99223L8.50853 5.86884C8.30421 6.07297 8.30421 6.40418 8.50853 6.60869C8.61069 6.71085 8.74443 6.76203 8.87836 6.76203C9.01229 6.76203 9.14603 6.71085 9.24819 6.60869L11.6249 4.23219C11.649 4.20803 11.6707 4.1814 11.6899 4.15305C11.6947 4.14563 11.6981 4.13726 11.7025 4.12965C11.7154 4.10815 11.7282 4.08646 11.7381 4.06325C11.7426 4.05222 11.7447 4.04043 11.7487 4.0292C11.7558 4.00827 11.7636 3.98754 11.7681 3.96547C11.775 3.93161 11.7786 3.89717 11.7786 3.86198C11.7786 3.82678 11.775 3.79235 11.7681 3.75849C11.7638 3.73642 11.756 3.71568 11.7487 3.69476C11.7447 3.68353 11.7428 3.67174 11.7381 3.6607C11.7282 3.63749 11.7156 3.616 11.7025 3.59431C11.6981 3.5867 11.6947 3.57833 11.6899 3.57091C11.6707 3.54256 11.649 3.51593 11.6249 3.49177L9.24876 1.11564C9.04444 0.911322 8.71342 0.911322 8.50891 1.11564C8.30459 1.31977 8.30459 1.65098 8.50891 1.85549L9.99223 3.339H4.15294C2.22978 3.339 0.665039 4.90374 0.665039 6.8269C0.665039 7.11588 0.899227 7.35007 1.1882 7.35007C1.47718 7.35007 1.71137 7.11588 1.71137 6.8269C1.71137 5.48037 2.80659 4.38514 4.15294 4.38514ZM12.2066 6.57445C11.9177 6.57445 11.6835 6.80864 11.6835 7.09762C11.6835 8.44396 10.5883 9.53919 9.24191 9.53919H3.40262L4.88632 8.05549C5.09064 7.85136 5.09064 7.52014 4.88632 7.31563C4.682 7.11112 4.35098 7.11131 4.14647 7.31563L1.76977 9.69233C1.74561 9.71649 1.72393 9.74312 1.70471 9.77147C1.70015 9.7787 1.69691 9.78669 1.69273 9.79392C1.6796 9.81561 1.66647 9.83748 1.65677 9.86126C1.6524 9.87211 1.6503 9.88371 1.64631 9.89475C1.63927 9.91586 1.63128 9.93679 1.62671 9.95905C1.61986 9.99291 1.61625 10.0273 1.61625 10.0625C1.61625 10.0977 1.61986 10.1322 1.62671 10.166C1.63109 10.1883 1.63908 10.2092 1.64631 10.2303C1.6503 10.2414 1.65221 10.253 1.65677 10.2638C1.66666 10.2874 1.6796 10.3093 1.69273 10.3312C1.69691 10.3384 1.70015 10.3464 1.70471 10.3536C1.72393 10.382 1.74561 10.4086 1.76977 10.4328L4.14609 12.8091C4.24825 12.9112 4.38199 12.9624 4.51592 12.9624C4.64985 12.9624 4.78359 12.9112 4.88575 12.8091C5.09007 12.6049 5.09007 12.2737 4.88575 12.0692L3.40243 10.5857H9.24172C11.1649 10.5857 12.7296 9.02097 12.7296 7.09781C12.7298 6.80864 12.4956 6.57445 12.2066 6.57445Z" d="M4.15294 4.38514H9.99223L8.50853 5.86884C8.30421 6.07297 8.30421 6.40418 8.50853 6.60869C8.61069 6.71085 8.74443 6.76203 8.87836 6.76203C9.01229 6.76203 9.14603 6.71085 9.24819 6.60869L11.6249 4.23219C11.649 4.20803 11.6707 4.1814 11.6899 4.15305C11.6947 4.14563 11.6981 4.13726 11.7025 4.12965C11.7154 4.10815 11.7282 4.08646 11.7381 4.06325C11.7426 4.05222 11.7447 4.04043 11.7487 4.0292C11.7558 4.00827 11.7636 3.98754 11.7681 3.96547C11.775 3.93161 11.7786 3.89717 11.7786 3.86198C11.7786 3.82678 11.775 3.79235 11.7681 3.75849C11.7638 3.73642 11.756 3.71568 11.7487 3.69476C11.7447 3.68353 11.7428 3.67174 11.7381 3.6607C11.7282 3.63749 11.7156 3.616 11.7025 3.59431C11.6981 3.5867 11.6947 3.57833 11.6899 3.57091C11.6707 3.54256 11.649 3.51593 11.6249 3.49177L9.24876 1.11564C9.04444 0.911322 8.71342 0.911322 8.50891 1.11564C8.30459 1.31977 8.30459 1.65098 8.50891 1.85549L9.99223 3.339H4.15294C2.22978 3.339 0.665039 4.90374 0.665039 6.8269C0.665039 7.11588 0.899227 7.35007 1.1882 7.35007C1.47718 7.35007 1.71137 7.11588 1.71137 6.8269C1.71137 5.48037 2.80659 4.38514 4.15294 4.38514ZM12.2066 6.57445C11.9177 6.57445 11.6835 6.80864 11.6835 7.09762C11.6835 8.44396 10.5883 9.53919 9.24191 9.53919H3.40262L4.88632 8.05549C5.09064 7.85136 5.09064 7.52014 4.88632 7.31563C4.682 7.11112 4.35098 7.11131 4.14647 7.31563L1.76977 9.69233C1.74561 9.71649 1.72393 9.74312 1.70471 9.77147C1.70015 9.7787 1.69691 9.78669 1.69273 9.79392C1.6796 9.81561 1.66647 9.83748 1.65677 9.86126C1.6524 9.87211 1.6503 9.88371 1.64631 9.89475C1.63927 9.91586 1.63128 9.93679 1.62671 9.95905C1.61986 9.99291 1.61625 10.0273 1.61625 10.0625C1.61625 10.0977 1.61986 10.1322 1.62671 10.166C1.63109 10.1883 1.63908 10.2092 1.64631 10.2303C1.6503 10.2414 1.65221 10.253 1.65677 10.2638C1.66666 10.2874 1.6796 10.3093 1.69273 10.3312C1.69691 10.3384 1.70015 10.3464 1.70471 10.3536C1.72393 10.382 1.74561 10.4086 1.76977 10.4328L4.14609 12.8091C4.24825 12.9112 4.38199 12.9624 4.51592 12.9624C4.64985 12.9624 4.78359 12.9112 4.88575 12.8091C5.09007 12.6049 5.09007 12.2737 4.88575 12.0692L3.40243 10.5857H9.24172C11.1649 10.5857 12.7296 9.02097 12.7296 7.09781C12.7298 6.80864 12.4956 6.57445 12.2066 6.57445Z"
fill="black" fill="var(--color-icon-default)"
/> />
</svg> </svg>
</div> </div>

View File

@ -12,7 +12,7 @@ export default function ExchangeRateDisplay({
secondaryTokenValue, secondaryTokenValue,
secondaryTokenDecimals = 18, secondaryTokenDecimals = 18,
secondaryTokenSymbol, secondaryTokenSymbol,
arrowColor = 'black', arrowColor = 'var(--color-icon-default)',
boldSymbols = true, boldSymbols = true,
className, className,
}) { }) {

View File

@ -129,7 +129,7 @@ export default class UnlockPage extends Component {
renderSubmitButton() { renderSubmitButton() {
const style = { const style = {
backgroundColor: 'var(--color-primary-default)', backgroundColor: 'var(--color-primary-default)',
color: 'white', color: 'var(--color-primary-inverse)',
marginTop: '20px', marginTop: '20px',
height: '60px', height: '60px',
fontWeight: '400', fontWeight: '400',