Add Japan-gated custom logo (#11161)
This commit is contained in:
@@ -21,13 +21,13 @@ import {type NavigationProp} from '#/lib/routes/types'
|
||||
import {sanitizeHandle} from '#/lib/strings/handles'
|
||||
import {colors} from '#/lib/styles'
|
||||
import {emitSoftReset} from '#/state/events'
|
||||
import {useKawaiiMode} from '#/state/preferences/kawaii'
|
||||
import {useUnreadNotifications} from '#/state/queries/notifications/unread'
|
||||
import {useProfileQuery} from '#/state/queries/profile'
|
||||
import {type SessionAccount, useSession} from '#/state/session'
|
||||
import {useSetDrawerOpen} from '#/state/shell'
|
||||
import {formatCount} from '#/view/com/util/numeric/format'
|
||||
import {UserAvatar} from '#/view/com/util/UserAvatar'
|
||||
import {useLogoVariant} from '#/view/icons/useLogoVariant'
|
||||
import {NavSignupCard} from '#/view/shell/NavSignupCard'
|
||||
import {atoms as a, tokens, useTheme, web} from '#/alf'
|
||||
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||
@@ -747,7 +747,7 @@ function MenuItem({icon, label, count, bold, onPress}: MenuItemProps) {
|
||||
function ExtraLinks() {
|
||||
const {_} = useLingui()
|
||||
const t = useTheme()
|
||||
const kawaii = useKawaiiMode()
|
||||
const logoVariant = useLogoVariant()
|
||||
|
||||
return (
|
||||
<View style={[a.flex_col, a.gap_md, a.flex_wrap]}>
|
||||
@@ -763,7 +763,7 @@ function ExtraLinks() {
|
||||
label={_(msg`Privacy Policy`)}>
|
||||
<Trans>Privacy Policy</Trans>
|
||||
</InlineLinkText>
|
||||
{kawaii && (
|
||||
{logoVariant === 'kawaii' && (
|
||||
<Text style={t.atoms.text_contrast_medium}>
|
||||
<Trans>
|
||||
Logo by{' '}
|
||||
|
||||
@@ -32,7 +32,7 @@ let NavSignupCard = ({}: {}): React.ReactNode => {
|
||||
return (
|
||||
<View style={[{maxWidth: 245}]}>
|
||||
<Link to="/" label="Bluesky - Home">
|
||||
<Logo width={32} />
|
||||
<Logo allowVariants={false} width={32} />
|
||||
</Link>
|
||||
|
||||
<View style={[a.pt_lg]}>
|
||||
|
||||
@@ -339,7 +339,7 @@ export function BottomBar({navigation}: BottomTabBarProps) {
|
||||
}}>
|
||||
<View
|
||||
style={{flexDirection: 'row', alignItems: 'center', gap: 8}}>
|
||||
<Logo width={28} />
|
||||
<Logo allowVariants={false} width={28} />
|
||||
<View style={{paddingTop: 4}}>
|
||||
<Logotype width={80} fill={t.atoms.text.color} />
|
||||
</View>
|
||||
|
||||
@@ -228,7 +228,7 @@ export function BottomBarWeb() {
|
||||
},
|
||||
]}>
|
||||
<View style={[a.flex_row, a.align_center, a.gap_md]}>
|
||||
<Logo width={32} />
|
||||
<Logo allowVariants={false} width={32} />
|
||||
<View style={{paddingTop: 4}}>
|
||||
<Logotype width={80} fill={t.atoms.text.color} />
|
||||
</View>
|
||||
|
||||
@@ -6,8 +6,8 @@ import {Trans} from '@lingui/react/macro'
|
||||
import {useNavigation} from '@react-navigation/native'
|
||||
|
||||
import {FEEDBACK_FORM_URL, HELP_DESK_URL} from '#/lib/constants'
|
||||
import {useKawaiiMode} from '#/state/preferences/kawaii'
|
||||
import {useSession} from '#/state/session'
|
||||
import {useLogoVariant} from '#/view/icons/useLogoVariant'
|
||||
import {DesktopFeeds} from '#/view/shell/desktop/Feeds'
|
||||
import {DesktopSearch} from '#/view/shell/desktop/Search'
|
||||
import {SidebarTrendingTopics} from '#/view/shell/desktop/SidebarTrendingTopics'
|
||||
@@ -46,7 +46,7 @@ export function DesktopRightNav({routeName}: {routeName: string}) {
|
||||
const t = useTheme()
|
||||
const {_} = useLingui()
|
||||
const {hasSession, currentAccount} = useSession()
|
||||
const kawaii = useKawaiiMode()
|
||||
const logoVariant = useLogoVariant()
|
||||
const gutters = useGutters(['base', 0, 'base', 'wide'])
|
||||
const isSearchScreen = routeName === 'Search'
|
||||
const isMessagesRelatedScreen = routeName.startsWith('Messages')
|
||||
@@ -134,7 +134,7 @@ export function DesktopRightNav({routeName}: {routeName: string}) {
|
||||
</InlineLinkText>
|
||||
</Text>
|
||||
|
||||
{kawaii && (
|
||||
{logoVariant === 'kawaii' && (
|
||||
<Text style={[t.atoms.text_contrast_medium, {marginTop: 12}]}>
|
||||
<Trans>
|
||||
Logo by{' '}
|
||||
|
||||
Reference in New Issue
Block a user