Client: fix badges color

This commit is contained in:
Viktor Fomin 2024-07-24 16:32:22 +03:00
parent 7a64964df2
commit e277c8ac7b
16 changed files with 110 additions and 22 deletions

View File

@ -116,7 +116,11 @@ const AccountsItemTitle = ({
className="sso-badge"
label={t("Common:SSO")}
color={globalColors.white}
backgroundColor={globalColors.mainGreen}
backgroundColor={
theme.isBase
? globalColors.secondGreen
: globalColors.secondGreenDark
}
fontSize={"9px"}
fontWeight={800}
noHover
@ -135,7 +139,11 @@ const AccountsItemTitle = ({
className="ldap-badge"
label={t("Common:LDAP")}
color={globalColors.white}
backgroundColor={globalColors.secondPurple}
backgroundColor={
theme.isBase
? globalColors.secondPurple
: globalColors.secondPurpleDark
}
fontSize={"9px"}
fontWeight={800}
noHover

View File

@ -131,7 +131,11 @@ const Badges = ({
className="accounts-badge"
label={t("Common:LDAP")}
color={globalColors.white}
backgroundColor={globalColors.secondPurple}
backgroundColor={
theme.isBase
? globalColors.secondPurple
: globalColors.secondPurpleDark
}
fontSize={"9px"}
fontWeight={800}
noHover
@ -144,7 +148,11 @@ const Badges = ({
className="accounts-badge"
label={t("SSO")}
color={globalColors.white}
backgroundColor={globalColors.mainGreen}
backgroundColor={
theme.isBase
? globalColors.secondGreen
: globalColors.secondGreenDark
}
fontSize={"9px"}
fontWeight={800}
noHover
@ -156,7 +164,11 @@ const Badges = ({
<StyledPaidBadge
className="paid-badge accounts-badge"
label={t("Paid")}
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
fontSize={"9px"}
fontWeight={800}
lineHeight={"13px"}

View File

@ -395,7 +395,11 @@ const SectionHeaderContent = (props) => {
<div className="header">{translatedHeader}</div>
{isNeedPaidIcon ? (
<Badge
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
fontWeight="700"
className="settings-section_badge"

View File

@ -68,7 +68,11 @@ const CommonWhiteLabel = ({
{!isSettingPaid && (
<Badge
className="paid-badge"
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
isPaidBadge={true}
/>

View File

@ -289,7 +289,11 @@ const WhiteLabel = (props) => {
<Badge
className="paid-badge"
fontWeight="700"
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
isPaidBadge={true}
/>

View File

@ -291,7 +291,11 @@ const DNSSettings = (props) => {
<Badge
className="paid-badge"
fontWeight="700"
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
isPaidBadge={true}
/>

View File

@ -506,7 +506,11 @@ class AutomaticBackup extends React.PureComponent {
</Text>
{!isEnableAuto && (
<Badge
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
fontWeight="700"
className="auto-backup_badge"

View File

@ -93,7 +93,11 @@ const ToggleAutoSync = ({
</Text>
{!isLdapAvailable && (
<Badge
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
className="toggle-caption_title_badge"
isPaidBadge={true}

View File

@ -87,7 +87,11 @@ const ToggleLDAP = ({
</Text>
{!isLdapAvailable && (
<Badge
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
className="toggle-caption_title_badge"
isPaidBadge={true}

View File

@ -97,7 +97,11 @@ const ToggleSSO = ({ enableSso, ssoToggle, isSSOAvailable }) => {
</Text>
{!isSSOAvailable && (
<Badge
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
fontWeight="700"
className="toggle-caption_title_badge"

View File

@ -295,7 +295,11 @@ class ThirdPartyServices extends React.Component {
</Text>
<Badge
className="paid-badge"
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
fontWeight="700"
label={t("Common:Paid")}
isPaidBadge={true}

View File

@ -319,7 +319,11 @@ const HistoryMainContent = (props) => {
<Badge
className="paid-badge"
fontWeight="700"
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
isPaidBadge={true}
/>

View File

@ -69,7 +69,11 @@ const QuotasComponent = (props) => {
{!isStatisticsAvailable && (
<Badge
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
className="paid-badge"
isPaidBadge

View File

@ -92,7 +92,11 @@ const StatisticsComponent = (props) => {
</StyledMainTitle>
{!isStatisticsAvailable && (
<Badge
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={t("Common:Paid")}
className="paid-badge"
isPaidBadge

View File

@ -110,7 +110,11 @@ const MobileCategoryWrapper = (props) => {
</Link>
{withPaidBadge && (
<Badge
backgroundColor={globalColors.favoritesStatus}
backgroundColor={
theme.isBase
? globalColors.favoritesStatus
: globalColors.favoriteStatusDark
}
label={badgeLabel}
isPaidBadge={true}
className="paid-badge"

View File

@ -229,7 +229,11 @@ const MainProfile = (props) => {
className="sso-badge"
label={t("Common:SSO")}
color={globalColors.white}
backgroundColor={globalColors.mainGreen}
backgroundColor={
theme.isBase
? globalColors.secondGreen
: globalColors.secondGreenDark
}
fontSize={"9px"}
fontWeight={800}
noHover
@ -243,7 +247,11 @@ const MainProfile = (props) => {
className="sso-badge"
label={t("Common:LDAP")}
color={globalColors.white}
backgroundColor={globalColors.secondPurple}
backgroundColor={
theme.isBase
? globalColors.secondPurple
: globalColors.secondPurpleDark
}
fontSize={"9px"}
fontWeight={800}
noHover
@ -269,7 +277,11 @@ const MainProfile = (props) => {
className="sso-badge"
label={t("Common:SSO")}
color={globalColors.white}
backgroundColor={globalColors.mainGreen}
backgroundColor={
theme.isBase
? globalColors.secondGreen
: globalColors.secondGreenDark
}
fontSize={"9px"}
fontWeight={800}
noHover
@ -288,7 +300,11 @@ const MainProfile = (props) => {
className="ldap-badge"
label={t("Common:LDAP")}
color={globalColors.white}
backgroundColor={globalColors.secondPurple}
backgroundColor={
theme.isBase
? globalColors.secondPurple
: globalColors.secondPurpleDark
}
fontSize={"9px"}
fontWeight={800}
noHover