Skip to content

Commit

Permalink
fixup! fixup! Replace the gradient background with blurred dots
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed Jan 10, 2024
1 parent 44fe524 commit 7c310a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/components/scenes/TransactionListScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ function TransactionListComponent(props: Props) {
const [searchText, setSearchText] = React.useState('')
const [assetStatuses, setAssetStatuses] = React.useState<AssetStatus[]>([])
const [iconColor, setIconColor] = React.useState<string>()
const backgroundGradientColor = iconColor == null ? theme.background.color : `${iconColor}44`
const transparentBackground = `${theme.background.color}00`
const backgroundGradientColor = iconColor == null ? transparentBackground : `${iconColor}44`

// Selectors:
const exchangeDenom = useSelector(state => getExchangeDenomination(state, pluginId, currencyCode))
Expand Down Expand Up @@ -251,7 +252,12 @@ function TransactionListComponent(props: Props) {
<SceneWrapper accentColor={iconColor} hasNotifications hasTabs>
{({ insetStyles }) => (
<>
<LinearGradient colors={[backgroundGradientColor, '#00000000']} start={{ x: 0, y: 0 }} end={{ x: 0, y: 1 }} style={StyleSheet.absoluteFill} />
<LinearGradient
colors={[backgroundGradientColor, transparentBackground]}
start={{ x: 0, y: 0 }}
end={{ x: 0, y: 1 }}
style={StyleSheet.absoluteFill}
/>
{SHOW_FLIP_INPUT_TESTER ? (
<ExchangedFlipInputTester />
) : (
Expand Down
2 changes: 1 addition & 1 deletion src/theme/variables/edgeLight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const edgeLight: Theme = {
dotOpacity: 0.3,
dots: [
{ color: palette.backgroundGreen, cx: '75%', cy: '25%', r: scale(175) },
{ color: palette.backgroundPurple, cx: '25%', cy: '75%', r: scale(150) }
{ color: palette.backgroundPurple, cx: '25%', cy: '75%', r: scale(150), accent: 'keep' }
]
},

Expand Down
2 changes: 1 addition & 1 deletion src/types/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface Theme {
// Background
background: {
blurRadius: number
color: string
color: string // Never include an alpha here
dotOpacity: number
dots: ThemeDot[]
}
Expand Down

0 comments on commit 7c310a8

Please sign in to comment.