Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
f194845b
Unverified
Commit
f194845b
authored
Aug 31, 2022
by
Vignesh Mohankumar
Committed by
GitHub
Aug 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove theme.blue200 (#4533)
* chore: remove theme.blue200 * favorite button changes
parent
98d4e108
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
FavoriteButton.tsx
src/components/Tokens/TokenTable/FavoriteButton.tsx
+7
-3
NetworkFilter.tsx
src/components/Tokens/TokenTable/NetworkFilter.tsx
+2
-2
TimeSelector.tsx
src/components/Tokens/TokenTable/TimeSelector.tsx
+2
-2
index.tsx
src/theme/index.tsx
+0
-1
styled.d.ts
src/theme/styled.d.ts
+0
-1
No files found.
src/components/Tokens/TokenTable/FavoriteButton.tsx
View file @
f194845b
...
@@ -15,9 +15,9 @@ const FavoriteButtonContent = styled.div`
...
@@ -15,9 +15,9 @@ const FavoriteButtonContent = styled.div`
const
StyledFavoriteButton
=
styled
.
button
<
{
active
:
boolean
}
>
`
const
StyledFavoriteButton
=
styled
.
button
<
{
active
:
boolean
}
>
`
padding: 0px 16px;
padding: 0px 16px;
border-radius: 12px;
border-radius: 12px;
background-color:
${({
theme
,
active
})
=>
(
active
?
theme
.
accentActi
on
:
theme
.
backgroundInteractive
)}
;
background-color:
${({
theme
,
active
})
=>
(
active
?
theme
.
accentActi
veSoft
:
theme
.
backgroundInteractive
)}
;
border: none;
border: none;
color:
${({
theme
,
active
})
=>
(
active
?
theme
.
whit
e
:
theme
.
textPrimary
)}
;
color:
${({
theme
,
active
})
=>
(
active
?
theme
.
accentActiv
e
:
theme
.
textPrimary
)}
;
font-size: 16px;
font-size: 16px;
font-weight: 600;
font-weight: 600;
cursor: pointer;
cursor: pointer;
...
@@ -38,7 +38,11 @@ export default function FavoriteButton() {
...
@@ -38,7 +38,11 @@ export default function FavoriteButton() {
return
(
return
(
<
StyledFavoriteButton
onClick=
{
()
=>
setShowFavorites
(
!
showFavorites
)
}
active=
{
showFavorites
}
>
<
StyledFavoriteButton
onClick=
{
()
=>
setShowFavorites
(
!
showFavorites
)
}
active=
{
showFavorites
}
>
<
FavoriteButtonContent
>
<
FavoriteButtonContent
>
<
Heart
size=
{
17
}
color=
{
showFavorites
?
theme
.
white
:
theme
.
textPrimary
}
fill=
"transparent"
/>
<
Heart
size=
{
17
}
color=
{
showFavorites
?
theme
.
accentActive
:
theme
.
textPrimary
}
fill=
{
showFavorites
?
theme
.
accentActive
:
'
transparent
'
}
/>
<
FavoriteText
>
<
FavoriteText
>
<
Trans
>
Favorites
</
Trans
>
<
Trans
>
Favorites
</
Trans
>
</
FavoriteText
>
</
FavoriteText
>
...
...
src/components/Tokens/TokenTable/NetworkFilter.tsx
View file @
f194845b
...
@@ -63,7 +63,7 @@ const MenuTimeFlyout = styled.span`
...
@@ -63,7 +63,7 @@ const MenuTimeFlyout = styled.span`
const
StyledMenuButton
=
styled
.
button
<
{
open
:
boolean
}
>
`
const
StyledMenuButton
=
styled
.
button
<
{
open
:
boolean
}
>
`
width: 100%;
width: 100%;
height: 100%;
height: 100%;
color:
${({
theme
,
open
})
=>
(
open
?
theme
.
blue200
:
theme
.
textPrimary
)}
;
color:
${({
theme
,
open
})
=>
(
open
?
theme
.
accentActive
:
theme
.
textPrimary
)}
;
border: none;
border: none;
background-color:
${({
theme
,
open
})
=>
(
open
?
theme
.
accentActiveSoft
:
theme
.
backgroundInteractive
)}
;
background-color:
${({
theme
,
open
})
=>
(
open
?
theme
.
accentActiveSoft
:
theme
.
backgroundInteractive
)}
;
margin: 0;
margin: 0;
...
@@ -115,7 +115,7 @@ const StyledMenuContent = styled.div`
...
@@ -115,7 +115,7 @@ const StyledMenuContent = styled.div`
const
Chevron
=
styled
.
span
<
{
open
:
boolean
}
>
`
const
Chevron
=
styled
.
span
<
{
open
:
boolean
}
>
`
padding-top: 1px;
padding-top: 1px;
color:
${({
open
,
theme
})
=>
(
open
?
theme
.
blue200
:
theme
.
textSecondary
)}
;
color:
${({
open
,
theme
})
=>
(
open
?
theme
.
accentActive
:
theme
.
textSecondary
)}
;
`
`
const
NetworkLabel
=
styled
.
div
`
const
NetworkLabel
=
styled
.
div
`
display: flex;
display: flex;
...
...
src/components/Tokens/TokenTable/TimeSelector.tsx
View file @
f194845b
...
@@ -81,7 +81,7 @@ const StyledMenuButton = styled.button<{ open: boolean }>`
...
@@ -81,7 +81,7 @@ const StyledMenuButton = styled.button<{ open: boolean }>`
width: 100%;
width: 100%;
height: 100%;
height: 100%;
border: none;
border: none;
color:
${({
theme
,
open
})
=>
(
open
?
theme
.
blue200
:
theme
.
textPrimary
)}
;
color:
${({
theme
,
open
})
=>
(
open
?
theme
.
accentActive
:
theme
.
textPrimary
)}
;
margin: 0;
margin: 0;
background-color:
${({
theme
,
open
})
=>
(
open
?
theme
.
accentActiveSoft
:
theme
.
backgroundInteractive
)}
;
background-color:
${({
theme
,
open
})
=>
(
open
?
theme
.
accentActiveSoft
:
theme
.
backgroundInteractive
)}
;
padding: 6px 12px 6px 12px;
padding: 6px 12px 6px 12px;
...
@@ -131,7 +131,7 @@ const StyledMenuContent = styled.div`
...
@@ -131,7 +131,7 @@ const StyledMenuContent = styled.div`
const
Chevron
=
styled
.
span
<
{
open
:
boolean
}
>
`
const
Chevron
=
styled
.
span
<
{
open
:
boolean
}
>
`
padding-top: 1px;
padding-top: 1px;
color:
${({
open
,
theme
})
=>
(
open
?
theme
.
blue200
:
theme
.
textSecondary
)}
;
color:
${({
open
,
theme
})
=>
(
open
?
theme
.
accentActive
:
theme
.
textSecondary
)}
;
`
`
// TODO: change this to reflect data pipeline
// TODO: change this to reflect data pipeline
...
...
src/theme/index.tsx
View file @
f194845b
...
@@ -131,7 +131,6 @@ function uniswapThemeColors(darkMode: boolean): ThemeColors {
...
@@ -131,7 +131,6 @@ function uniswapThemeColors(darkMode: boolean): ThemeColors {
chain_421611
:
colorsDark
.
chain_421611
,
chain_421611
:
colorsDark
.
chain_421611
,
chain_80001
:
colorsDark
.
chain_80001
,
chain_80001
:
colorsDark
.
chain_80001
,
blue200
:
ColorsPalette
.
blue200
,
shallowShadow
:
darkMode
?
colorsDark
.
shallowShadow
:
colorsLight
.
shallowShadow
,
shallowShadow
:
darkMode
?
colorsDark
.
shallowShadow
:
colorsLight
.
shallowShadow
,
deepShadow
:
darkMode
?
colorsDark
.
deepShadow
:
colorsLight
.
deepShadow
,
deepShadow
:
darkMode
?
colorsDark
.
deepShadow
:
colorsLight
.
deepShadow
,
hoverState
:
opacify
(
24
,
ColorsPalette
.
blue200
),
hoverState
:
opacify
(
24
,
ColorsPalette
.
blue200
),
...
...
src/theme/styled.d.ts
View file @
f194845b
...
@@ -53,7 +53,6 @@ export interface ThemeColors {
...
@@ -53,7 +53,6 @@ export interface ThemeColors {
chain_421611
:
Color
chain_421611
:
Color
chain_80001
:
Color
chain_80001
:
Color
blue200
:
Color
shallowShadow
:
Color
shallowShadow
:
Color
deepShadow
:
Color
deepShadow
:
Color
hoverState
:
Color
hoverState
:
Color
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment