theme entire profile

This commit is contained in:
Samuel Newman
2024-12-03 16:41:19 +00:00
parent a8ac790fb3
commit 84213eabcb
4 changed files with 154 additions and 159 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ export function MessageProfileButton({
accessibilityRole="button" accessibilityRole="button"
testID="dmBtn" testID="dmBtn"
size="small" size="small"
color="secondary" color="secondary_inverted"
variant="solid" variant="solid"
shape="round" shape="round"
label={_(msg`Message ${profile.handle}`)} label={_(msg`Message ${profile.handle}`)}
@@ -176,7 +176,7 @@ let ProfileHeaderStandard = ({
<Button <Button
testID="profileHeaderEditProfileButton" testID="profileHeaderEditProfileButton"
size="small" size="small"
color="secondary" color="secondary_inverted"
variant="solid" variant="solid"
onPress={onPressEditProfile} onPress={onPressEditProfile}
label={_(msg`Edit profile`)}> label={_(msg`Edit profile`)}>
@@ -212,7 +212,9 @@ let ProfileHeaderStandard = ({
<Button <Button
testID={profile.viewer?.following ? 'unfollowBtn' : 'followBtn'} testID={profile.viewer?.following ? 'unfollowBtn' : 'followBtn'}
size="small" size="small"
color={profile.viewer?.following ? 'secondary' : 'primary'} color={
profile.viewer?.following ? 'secondary_inverted' : 'primary'
}
variant="solid" variant="solid"
label={ label={
profile.viewer?.following profile.viewer?.following
@@ -257,7 +259,6 @@ let ProfileHeaderStandard = ({
value={descriptionRT} value={descriptionRT}
enableTags enableTags
authorHandle={profile.handle} authorHandle={profile.handle}
dynamicColor
/> />
</View> </View>
) : undefined} ) : undefined}
+1 -1
View File
@@ -179,7 +179,7 @@ let ProfileMenu = ({
label={_(msg`More options`)} label={_(msg`More options`)}
hitSlop={HITSLOP_20} hitSlop={HITSLOP_20}
variant="solid" variant="solid"
color="secondary" color="secondary_inverted"
size="small" size="small"
shape="round"> shape="round">
<ButtonIcon icon={Ellipsis} size="sm" /> <ButtonIcon icon={Ellipsis} size="sm" />
+4 -10
View File
@@ -345,14 +345,8 @@ function ProfileScreenLoaded({
const [hue, setHue] = React.useState(0) const [hue, setHue] = React.useState(0)
React.useEffect(() => { React.useEffect(() => {
const id = setInterval(() => { const id = setInterval(() => {
setHue(h => { setHue(Math.random() * 360)
const next = h + 1 }, 5000)
if (next >= 360) {
return 0
}
return next
})
}, 100)
return () => clearInterval(id) return () => clearInterval(id)
}, []) }, [])
@@ -369,7 +363,6 @@ function ProfileScreenLoaded({
const renderHeader = () => { const renderHeader = () => {
return ( return (
<ExpoScrollForwarderView scrollViewTag={scrollViewTag}> <ExpoScrollForwarderView scrollViewTag={scrollViewTag}>
<Alf themeName={t.name} theme={theme}>
<ProfileHeader <ProfileHeader
profile={profile} profile={profile}
labeler={labelerInfo} labeler={labelerInfo}
@@ -379,7 +372,6 @@ function ProfileScreenLoaded({
isPlaceholderProfile={showPlaceholder} isPlaceholderProfile={showPlaceholder}
backgroundColor={t.atoms.bg.backgroundColor} backgroundColor={t.atoms.bg.backgroundColor}
/> />
</Alf>
</ExpoScrollForwarderView> </ExpoScrollForwarderView>
) )
} }
@@ -390,6 +382,7 @@ function ProfileScreenLoaded({
style={styles.container} style={styles.container}
screenDescription={_(msg`profile`)} screenDescription={_(msg`profile`)}
modui={moderation.ui('profileView')}> modui={moderation.ui('profileView')}>
<Alf themeName={t.name} theme={theme}>
<PagerWithHeader <PagerWithHeader
testID="profilePager" testID="profilePager"
isHeaderReady={!showPlaceholder} isHeaderReady={!showPlaceholder}
@@ -525,6 +518,7 @@ function ProfileScreenLoaded({
accessibilityHint="" accessibilityHint=""
/> />
)} )}
</Alf>
</ScreenHider> </ScreenHider>
) )
} }