2023-04-02 01:06:44 +01:00
|
|
|
export enum Gender {
|
|
|
|
GENDERLESS = -1,
|
2023-04-18 03:44:41 +01:00
|
|
|
MALE,
|
|
|
|
FEMALE
|
2023-04-02 01:06:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export function getGenderSymbol(gender: Gender) {
|
|
|
|
switch (gender) {
|
|
|
|
case Gender.MALE:
|
|
|
|
return '♂';
|
|
|
|
case Gender.FEMALE:
|
|
|
|
return '♀';
|
|
|
|
}
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
2023-04-09 01:35:45 +01:00
|
|
|
export function getGenderColor(gender: Gender, shadow?: boolean) {
|
2023-04-02 01:06:44 +01:00
|
|
|
switch (gender) {
|
|
|
|
case Gender.MALE:
|
2023-04-09 01:35:45 +01:00
|
|
|
return shadow ? '#006090' : '#40c8f8';
|
2023-04-02 01:06:44 +01:00
|
|
|
case Gender.FEMALE:
|
2023-04-09 01:35:45 +01:00
|
|
|
return shadow ? '#984038' : '#f89890';
|
2023-04-02 01:06:44 +01:00
|
|
|
}
|
|
|
|
return '#ffffff';
|
|
|
|
}
|