mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 20:53:57 +00:00
premium icon
This commit is contained in:
@@ -30,3 +30,7 @@
|
|||||||
.color-icon-inv-red {
|
.color-icon-inv-red {
|
||||||
color: var(--theme-icon-inv-red);
|
color: var(--theme-icon-inv-red);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.color-icon-premium {
|
||||||
|
background: linear-gradient(135deg, #1686c8, #8a25b1);
|
||||||
|
}
|
||||||
|
|||||||
@@ -353,6 +353,8 @@
|
|||||||
'img data-deploy': 'mdi mdi-database-settings color-icon-green',
|
'img data-deploy': 'mdi mdi-database-settings color-icon-green',
|
||||||
'img arrow-start-here': 'mdi mdi-arrow-down-bold-circle color-icon-green',
|
'img arrow-start-here': 'mdi mdi-arrow-down-bold-circle color-icon-green',
|
||||||
'img team-file': 'mdi mdi-account-file color-icon-red',
|
'img team-file': 'mdi mdi-account-file color-icon-red',
|
||||||
|
|
||||||
|
'img premium': 'mdi mdi-star color-icon-premium',
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -186,7 +186,7 @@
|
|||||||
data-testid={`WidgetIconPanel_${item.name}`}
|
data-testid={`WidgetIconPanel_${item.name}`}
|
||||||
on:click={() => handleChangeWidget(item.name)}
|
on:click={() => handleChangeWidget(item.name)}
|
||||||
>
|
>
|
||||||
<FontIcon icon={item.icon} title={item.title} />
|
<FontIcon icon={item.isPremiumPromo ? ($promoWidget?.icon ?? item.icon) : item.icon} title={item.title} />
|
||||||
{#if item.isPremiumPromo}
|
{#if item.isPremiumPromo}
|
||||||
<div class="premium-promo">Premium</div>
|
<div class="premium-promo">Premium</div>
|
||||||
{#if $promoWidget?.identifier != $seenPremiumPromoWidget}
|
{#if $promoWidget?.identifier != $seenPremiumPromoWidget}
|
||||||
|
|||||||
Reference in New Issue
Block a user