more UI updates
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
:label="order.amountIsTokenA ? 'Amount':('Value in '+co.selectedSymbol.quote.s)"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<v-btn variant="tonal" :color="color" class="ml-3"
|
||||
<v-btn variant="outlined" :color="color" class="ml-3"
|
||||
:text="(order.buy ? 'Buy ' : 'Sell ') + co.selectedSymbol.base.s"
|
||||
@click="order.buy=!order.buy"/>
|
||||
</template>
|
||||
@@ -50,6 +50,7 @@ import {lightenColor, lightenColor2} from "@/misc.js";
|
||||
import {useTheme} from "vuetify";
|
||||
import RowBar from "@/components/chart/RowBar.vue";
|
||||
import ColorBand from "@/components/chart/ColorBand.vue";
|
||||
import Color from "color";
|
||||
|
||||
const props = defineProps(['order'])
|
||||
const co = useChartOrderStore()
|
||||
@@ -66,7 +67,7 @@ function builders(order) {
|
||||
}
|
||||
|
||||
const theme = useTheme().current
|
||||
const color = computed(()=>props.order.buy?theme.value.colors.success:theme.value.colors.error)
|
||||
const color = computed(()=>new Color(props.order.buy?theme.value.colors.success:theme.value.colors.error).darken(0.2).string())
|
||||
const lightColor = computed(() => lightenColor(color.value))
|
||||
const faintColor = computed(() => lightenColor2(color.value))
|
||||
const colorStyle = computed(() => { return {'color': color.value} })
|
||||
|
||||
Reference in New Issue
Block a user