mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Implemented new dark theme
This commit is contained in:
@ -7,7 +7,7 @@ import EmojisContext from './helpers/EmojisContext'
|
||||
|
||||
const EmojisButton = React.memo(
|
||||
() => {
|
||||
const { theme } = useTheme()
|
||||
const { colors } = useTheme()
|
||||
const { emojisState, emojisDispatch } = useContext(EmojisContext)
|
||||
|
||||
return emojisState.enabled ? (
|
||||
@ -30,8 +30,8 @@ const EmojisButton = React.memo(
|
||||
size={StyleConstants.Font.Size.L}
|
||||
color={
|
||||
emojisState.emojis && emojisState.emojis.length
|
||||
? theme.primaryDefault
|
||||
: theme.disabled
|
||||
? colors.primaryDefault
|
||||
: colors.disabled
|
||||
}
|
||||
/>
|
||||
}
|
||||
|
@ -23,11 +23,11 @@ const EmojisList = React.memo(
|
||||
const { t } = useTranslation()
|
||||
|
||||
const { emojisState, emojisDispatch } = useContext(EmojisContext)
|
||||
const { theme } = useTheme()
|
||||
const { colors } = useTheme()
|
||||
|
||||
const listHeader = useCallback(
|
||||
({ section: { title } }) => (
|
||||
<Text style={[styles.group, { color: theme.secondary }]}>{title}</Text>
|
||||
<Text style={[styles.group, { color: colors.secondary }]}>{title}</Text>
|
||||
),
|
||||
[]
|
||||
)
|
||||
|
Reference in New Issue
Block a user