1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Update colour naming

Fixed #73
Fixed #58
Fixed #47
This commit is contained in:
Zhiyuan Zheng
2021-03-21 14:14:10 +01:00
parent dd345871f8
commit d15e8cb652
48 changed files with 162 additions and 152 deletions

View File

@ -17,7 +17,7 @@ const HeaderCenter = React.memo(
<Text
style={[
styles.text,
{ color: inverted ? theme.primaryOverlay : theme.primary }
{ color: inverted ? theme.primaryOverlay : theme.primaryDefault }
]}
children={content}
/>

View File

@ -25,7 +25,7 @@ const HeaderLeft: React.FC<Props> = ({
case 'icon':
return (
<Icon
color={theme.primary}
color={theme.primaryDefault}
name={content || 'ChevronLeft'}
size={StyleConstants.Spacing.M * 1.25}
/>
@ -33,7 +33,7 @@ const HeaderLeft: React.FC<Props> = ({
case 'text':
return (
<Text
style={[styles.text, { color: theme.primary }]}
style={[styles.text, { color: theme.primaryDefault }]}
children={content}
/>
)
@ -47,7 +47,7 @@ const HeaderLeft: React.FC<Props> = ({
style={[
styles.base,
{
backgroundColor: theme.backgroundGradientStart,
backgroundColor: theme.backgroundOverlayDefault,
...(type === 'icon' && {
height: 44,
width: 44,

View File

@ -47,7 +47,7 @@ const HeaderRight: React.FC<Props> = ({
name={content}
style={{ opacity: loading ? 0 : 1 }}
size={StyleConstants.Spacing.M * 1.25}
color={disabled ? theme.secondary : theme.primary}
color={disabled ? theme.secondary : theme.primaryDefault}
/>
{loading && loadingSpinkit}
</>
@ -59,7 +59,7 @@ const HeaderRight: React.FC<Props> = ({
style={[
styles.text,
{
color: disabled ? theme.secondary : theme.primary,
color: disabled ? theme.secondary : theme.primaryDefault,
opacity: loading ? 0 : 1
}
]}
@ -79,7 +79,7 @@ const HeaderRight: React.FC<Props> = ({
style={[
styles.base,
{
backgroundColor: theme.backgroundGradientStart,
backgroundColor: theme.backgroundOverlayDefault,
...(type === 'icon' && {
height: 44,
width: 44,