Projekt

Obecné

Profil

« Předchozí | Další » 

Revize fb120216

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

re #10895: ItemView: ItemObjects switching, display color

Zobrazit rozdíly:

src/stores/reducers/itemSlice.ts
4 4

  
5 5
// TODO set colors
6 6
export const CertaintyWithColors: Record<Certainty, { certainty: Certainty; color: string }> = {
7
    same_as: { certainty: Certainty.SameAs, color: "light.300" },
8
    high: { certainty: Certainty.High, color: "success.300" },
9
    medium: { certainty: Certainty.Medium, color: "warning.300" },
10
    low: { certainty: Certainty.Low, color: "danger.300" },
11
    unknown : { certainty: Certainty.Unknown, color: "light.300"}
7
    same_as: { certainty: Certainty.SameAs, color: "white" },
8
    high: { certainty: Certainty.High, color: "#aedfb5" },
9
    medium: { certainty: Certainty.Medium, color: "#ffd8b3" },
10
    low: { certainty: Certainty.Low, color: "#faa" },
11
    unknown : { certainty: Certainty.Unknown, color: "white"}
12 12
};
13 13

  
14 14
const initialState: ItemViewState = {

Také k dispozici: Unified diff