[🐴] Tweak header styles (#4053)
* Tweak desktop header styles * Tweak mobile * Bump icon size * Remove unused elsezio/stable
parent
72550df0e2
commit
3a8baba129
|
@ -292,7 +292,7 @@ export function Button({
|
||||||
baseStyles.push({height: 50, width: 50})
|
baseStyles.push({height: 50, width: 50})
|
||||||
}
|
}
|
||||||
} else if (size === 'small') {
|
} else if (size === 'small') {
|
||||||
baseStyles.push({height: 40, width: 40})
|
baseStyles.push({height: 34, width: 34})
|
||||||
} else if (size === 'tiny') {
|
} else if (size === 'tiny') {
|
||||||
baseStyles.push({height: 20, width: 20})
|
baseStyles.push({height: 20, width: 20})
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,12 +61,16 @@ export function MessagesScreen({navigation, route}: Props) {
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
to="/messages/settings"
|
to="/messages/settings"
|
||||||
accessibilityLabel={_(msg`Message settings`)}
|
label={_(msg`Chat settings`)}
|
||||||
accessibilityHint={_(msg`Opens the message settings page`)}>
|
size="small"
|
||||||
<SettingsSlider size="lg" style={t.atoms.text} />
|
variant="ghost"
|
||||||
|
color="secondary"
|
||||||
|
shape="square"
|
||||||
|
style={[a.justify_center]}>
|
||||||
|
<SettingsSlider size="md" style={[t.atoms.text_contrast_medium]} />
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
}, [_, t.atoms.text])
|
}, [_, t])
|
||||||
|
|
||||||
const initialNumToRender = useInitialNumToRender()
|
const initialNumToRender = useInitialNumToRender()
|
||||||
const [isPTRing, setIsPTRing] = useState(false)
|
const [isPTRing, setIsPTRing] = useState(false)
|
||||||
|
@ -165,7 +169,7 @@ export function MessagesScreen({navigation, route}: Props) {
|
||||||
<ViewHeader
|
<ViewHeader
|
||||||
title={_(msg`Messages`)}
|
title={_(msg`Messages`)}
|
||||||
renderButton={renderButton}
|
renderButton={renderButton}
|
||||||
showBorder={false}
|
showBorder
|
||||||
canGoBack={false}
|
canGoBack={false}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -225,32 +229,32 @@ function DesktopHeader({
|
||||||
a.justify_between,
|
a.justify_between,
|
||||||
a.gap_lg,
|
a.gap_lg,
|
||||||
a.px_lg,
|
a.px_lg,
|
||||||
a.py_sm,
|
a.pr_md,
|
||||||
|
a.py_md,
|
||||||
a.border_b,
|
a.border_b,
|
||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
]}>
|
]}>
|
||||||
<Text style={[a.text_2xl, a.font_bold]}>
|
<Text style={[a.text_2xl, a.font_bold]}>
|
||||||
<Trans>Messages</Trans>
|
<Trans>Messages</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<View style={[a.flex_row, a.align_center, a.gap_md]}>
|
<View style={[a.flex_row, a.align_center, a.gap_sm]}>
|
||||||
<Button
|
<Button
|
||||||
label={_(msg`Message settings`)}
|
label={_(msg`Message settings`)}
|
||||||
color="secondary"
|
color="secondary"
|
||||||
size="large"
|
size="small"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
style={[{height: 'auto', width: 'auto'}, a.px_sm, a.py_sm]}
|
shape="square"
|
||||||
onPress={onNavigateToSettings}>
|
onPress={onNavigateToSettings}>
|
||||||
<ButtonIcon icon={SettingsSlider} />
|
<SettingsSlider size="md" style={[t.atoms.text_contrast_medium]} />
|
||||||
</Button>
|
</Button>
|
||||||
{gtTablet && (
|
{gtTablet && (
|
||||||
<Button
|
<Button
|
||||||
label={_(msg`New chat`)}
|
label={_(msg`New chat`)}
|
||||||
color="primary"
|
color="primary"
|
||||||
size="large"
|
size="small"
|
||||||
variant="solid"
|
variant="solid"
|
||||||
style={[{height: 'auto', width: 'auto'}, a.px_md, a.py_sm]}
|
|
||||||
onPress={newChatControl.open}>
|
onPress={newChatControl.open}>
|
||||||
<ButtonIcon icon={Plus} position="right" />
|
<ButtonIcon icon={Plus} position="left" />
|
||||||
<ButtonText>
|
<ButtonText>
|
||||||
<Trans>New chat</Trans>
|
<Trans>New chat</Trans>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
|
|
Loading…
Reference in New Issue