Remove hardcoded yellows (#10083)

This commit is contained in:
Samuel Newman
2026-03-20 09:21:16 -07:00
committed by GitHub
parent e28f6d2f37
commit 5bcb909081
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -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>
+2 -2
View File
@@ -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 (