Remove hardcoded yellows (#10083)
This commit is contained in:
@@ -27,6 +27,7 @@ export function NewskieDialog({
|
|||||||
profile: AppBskyActorDefs.ProfileViewDetailed
|
profile: AppBskyActorDefs.ProfileViewDetailed
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
}) {
|
}) {
|
||||||
|
const t = useTheme()
|
||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
const control = useDialogControl()
|
const control = useDialogControl()
|
||||||
|
|
||||||
@@ -52,7 +53,7 @@ export function NewskieDialog({
|
|||||||
{({hovered, pressed}) => (
|
{({hovered, pressed}) => (
|
||||||
<Newskie
|
<Newskie
|
||||||
size="lg"
|
size="lg"
|
||||||
fill="#FFC404"
|
fill={t.palette.yellow}
|
||||||
style={{
|
style={{
|
||||||
opacity: hovered || pressed ? 0.5 : 1,
|
opacity: hovered || pressed ? 0.5 : 1,
|
||||||
}}
|
}}
|
||||||
@@ -132,7 +133,7 @@ function DialogInner({
|
|||||||
<Newskie
|
<Newskie
|
||||||
width={64}
|
width={64}
|
||||||
height={64}
|
height={64}
|
||||||
fill="#FFC404"
|
fill={t.palette.yellow}
|
||||||
style={[a.absolute, a.inset_0]}
|
style={[a.absolute, a.inset_0]}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -260,8 +260,8 @@ function DraftMetadataTag({
|
|||||||
info: t.atoms.text_contrast_medium.color,
|
info: t.atoms.text_contrast_medium.color,
|
||||||
warning: select(t.name, {
|
warning: select(t.name, {
|
||||||
light: '#C99A00',
|
light: '#C99A00',
|
||||||
dark: '#FFC404',
|
dark: t.palette.yellow,
|
||||||
dim: '#FFC404',
|
dim: t.palette.yellow,
|
||||||
}),
|
}),
|
||||||
}[display]
|
}[display]
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user