1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Update color scheme

This commit is contained in:
Zhiyuan Zheng
2020-12-26 00:40:27 +01:00
parent 9d1c366eda
commit 7f574576ef
17 changed files with 138 additions and 108 deletions

View File

@@ -53,6 +53,11 @@ const ToastBase = ({ config }: { config: Config }) => {
error: 'x-circle',
warning: 'alert-circle'
}
enum colorMapping {
success = 'blue',
error = 'red',
warning = 'primary'
}
return (
<SafeAreaView
@@ -65,7 +70,7 @@ const ToastBase = ({ config }: { config: Config }) => {
<Feather
// @ts-ignore
name={iconSet[config.type]}
color={theme[config.type]}
color={theme[colorMapping[config.type]]}
size={StyleConstants.Font.Size.M + 2}
/>
<View style={styles.texts}>