🎨 (account card) change light value for gradient
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Prop, Vue } from 'vue-property-decorator'
|
import { Component, Prop, Vue } from 'vue-property-decorator'
|
||||||
import { findContrastColor, findDarkValue, findSlightLightValue } from '@/utils'
|
import { findContrastColor, findDarkValue, findLightValue } from '@/utils'
|
||||||
import bus, { SYNC } from '@/utils/bus-event'
|
import bus, { SYNC } from '@/utils/bus-event'
|
||||||
import accountService from '@/services/AccountService'
|
import accountService from '@/services/AccountService'
|
||||||
import IAccount from '@/models/IAccount'
|
import IAccount from '@/models/IAccount'
|
||||||
@@ -60,7 +60,7 @@ export default class AccountCard extends Vue {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
background: GRADIENT
|
background: GRADIENT
|
||||||
? `linear-gradient(45deg, ${color}, ${findSlightLightValue(color)})`
|
? `linear-gradient(135deg, ${color}, ${findLightValue(color)})`
|
||||||
: color,
|
: color,
|
||||||
color: this.findContrastColor(color)
|
color: this.findContrastColor(color)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user