Skip to content

Commit

Permalink
update dark themes & set back settings
Browse files Browse the repository at this point in the history
  • Loading branch information
eallend committed Nov 8, 2024
1 parent 1244a0d commit 6854499
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion theme/foundations/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const colors = {
'80': '#7C63F2',
'60': '#A392F5',
'40': '#C9BFF9',
'30': '#DBD3FB',
'20': '#ECE9FD',
},
green: {
Expand All @@ -29,7 +30,6 @@ const colors = {
'800': '#372c7a',
'900': '#2a215d',
},

red: {
'100': '#d19f9f',
'500': '#b63b3b',
Expand Down
5 changes: 3 additions & 2 deletions theme/foundations/semanticTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ const semanticTokens = {
},
link: {
'default': 'purple.90',
_dark: 'blue.300',
_dark: 'purple.30',
},
link_hovered: {
'default': 'purple.80',
'default': 'purple.300',
_dark: 'purple.60',
},
icon_link_external: {
'default': 'gray.300',
Expand Down
6 changes: 3 additions & 3 deletions ui/snippets/navigation/useColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useColorModeValue } from '@chakra-ui/react';
export default function useColors() {
return {
text: {
'default': useColorModeValue('gray.600', 'gray.400'),
active: useColorModeValue('purple.100', 'gray.50'),
'default': useColorModeValue('gray.600', 'gray.300'),
active: useColorModeValue('purple.100', 'purple.40'),
hover: 'link_hovered',
},
bg: {
Expand All @@ -13,7 +13,7 @@ export default function useColors() {
},
border: {
'default': 'divider',
active: useColorModeValue('blue.50', 'gray.800'),
active: useColorModeValue('blue.50', 'purple.40'),
},
};
}
1 change: 0 additions & 1 deletion ui/snippets/navigation/vertical/NavigationDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const NavigationDesktop = () => {
alignItems="center"
flexDirection="row"
w="100%"
pl={{ lg: isExpanded ? 3 : '15px', xl: isCollapsed ? '15px' : 3 }}
pr={{ lg: isExpanded ? 0 : '15px', xl: isCollapsed ? '15px' : 0 }}
h={ 10 }
transitionProperty="padding"
Expand Down
7 changes: 5 additions & 2 deletions ui/snippets/topBar/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { CONTENT_MAX_WIDTH } from 'ui/shared/layout/utils';

import DeFiDropdown from './DeFiDropdown';
import NetworkMenu from './NetworkMenu';
import Settings from './settings/Settings';
import TopBarStats from './TopBarStats';

const TopBar = () => {
Expand All @@ -15,12 +16,14 @@ const TopBar = () => {
<Box bgColor={ bgColor }>
<Flex
py={ 2 }
px={{ base: 3, lg: 6 }}
px={ 12 }
maxW={ `${ CONTENT_MAX_WIDTH }px` }
m="0 auto"
mb={ 2 }
justifyContent="space-between"
alignItems="center"
>
<TopBarStats/>
<Flex alignItems="center" px={ 12 }>
{ config.features.deFiDropdown.isEnabled && (
<>
Expand All @@ -35,7 +38,7 @@ const TopBar = () => {
</Box>
) }
</Flex>
<TopBarStats/>
<Settings/>
</Flex>
</Box>
);
Expand Down
2 changes: 1 addition & 1 deletion ui/snippets/topBar/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Settings = () => {
<PopoverTrigger>
<IconButton
variant="simple"
colorScheme="blue"
colorScheme="white"
aria-label="User settings"
icon={ <IconSvg name="gear_slim" boxSize={ 5 }/> }
p="1px"
Expand Down
1 change: 0 additions & 1 deletion ui/txs/TxsTableItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
<TxEntity
hash={ tx.hash }
isLoading={ isLoading }
fontWeight={ 700 }
noIcon
maxW="100%"
truncation="constant_long"
Expand Down

0 comments on commit 6854499

Please sign in to comment.