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