Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f22a2126

Přidáno uživatelem Michal Schwob před více než 1 rok

FIX: colors fix
re #10896

Zobrazit rozdíly:

src/components/item/ItemTabBar.tsx
1
import { HStack, CircleIcon, View, ScrollView, Button, Center, Heading, Pressable, Text, Box, Container, VStack, Icon, ArrowBackIcon, ChevronLeftIcon, ChevronRightIcon, useToast, Divider } from "native-base";
1
import { HStack, CircleIcon, ScrollView, Pressable, Text, VStack, useToast, Divider } from "native-base";
2 2
import { CertaintyWithColors } from "../../stores/reducers/itemSlice";
3 3
import { Certainty, Concordance } from "../../types/item";
4 4
import LoadingBox from "../loading/LoadingBox";
......
74 74
                    </HStack>
75 75
                </HStack>
76 76
            </HStack> */
77
            <HStack h="16" backgroundColor={"#F5F4F1"}>
77
            <HStack h="16" backgroundColor={"primary.100"}>
78 78
                <ScrollView contentContainerStyle={{ flexGrow: 1 }} flex="1" horizontal={true}>
79 79
                    {concordances && concordances.length > 0 &&
80 80
                        <HStack flex="1" justifyContent="center" width="100%">
......
87 87
                                                    size="2"
88 88
                                                    color={CertaintyWithColors[concordances?.[i]?.cert ?? Certainty.Unknown].color}
89 89
                                                />}
90
                                                <Text marginLeft={2} color={i == index ? "#654B07" : "#8F6A0A"} bold fontSize={"md"}>
90
                                                <Text marginLeft={2} color={i == index ? "primary.500" : "primary.300"} bold fontSize={"md"}>
91 91
                                                    {concordances?.[i]?.id}
92 92
                                                </Text>
93 93
                                            </HStack>
94
                                            {i == index && <Divider color="primary" borderWidth={2} borderRadius={5} width={85} mt={5} />}
94
                                            {i == index && <Divider outlineColor={"primary.500"} borderWidth={2} borderRadius={5} width={85} mt={5} />}
95 95
                                        </VStack>
96 96

  
97 97
                                    </Pressable>
......
105 105
                                                size="2"
106 106
                                                color={CertaintyWithColors[concordances?.[0]?.cert ?? Certainty.Unknown].color}
107 107
                                            />}
108
                                            <Text marginLeft={2} color={0 == 0 ? "#654B07" : "#8F6A0A"} bold fontSize={"md"}>
108
                                            <Text marginLeft={2} color={"primary.500"} bold fontSize={"md"}>
109 109
                                                {concordances?.[0]?.id}
110 110
                                            </Text>
111 111
                                        </HStack>
112
                                        {0 == 0 && <Divider color="#654B07" borderWidth={2} borderRadius={5} width={85} mt={5} />}
112
                                        {0 == 0 && <Divider color="primary.500" borderWidth={2} borderRadius={5} width={85} mt={5} />}
113 113
                                    </VStack>
114 114

  
115 115
                                </Pressable>

Také k dispozici: Unified diff