diff --git a/components.d.ts b/components.d.ts index 2f5e8c2..4c82edf 100644 --- a/components.d.ts +++ b/components.d.ts @@ -42,6 +42,7 @@ declare module 'vue' { IonPage: typeof import('@ionic/vue')['IonPage'] IonRadio: typeof import('@ionic/vue')['IonRadio'] IonRadioGroup: typeof import('@ionic/vue')['IonRadioGroup'] + IonRange: typeof import('@ionic/vue')['IonRange'] IonRefresher: typeof import('@ionic/vue')['IonRefresher'] IonRefresherContent: typeof import('@ionic/vue')['IonRefresherContent'] IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet'] @@ -95,6 +96,7 @@ declare global { const IonPage: typeof import('@ionic/vue')['IonPage'] const IonRadio: typeof import('@ionic/vue')['IonRadio'] const IonRadioGroup: typeof import('@ionic/vue')['IonRadioGroup'] + const IonRange: typeof import('@ionic/vue')['IonRange'] const IonRefresher: typeof import('@ionic/vue')['IonRefresher'] const IonRefresherContent: typeof import('@ionic/vue')['IonRefresherContent'] const IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet'] diff --git a/src/theme/variables.css b/src/theme/variables.css index f28dc0d..728da6e 100644 --- a/src/theme/variables.css +++ b/src/theme/variables.css @@ -38,8 +38,8 @@ html.ion-palette-light { --ion-color-danger: #ff3344; --ion-color-danger-rgb: 255, 51, 68; - --ion-color-danger-contrast: #000000; - --ion-color-danger-contrast-rgb: 0, 0, 0; + --ion-color-danger-contrast: #ffffff; + --ion-color-danger-contrast-rgb: 255, 255, 255; --ion-color-danger-shade: #e02d3c; --ion-color-danger-tint: #ff4757; @@ -110,6 +110,8 @@ html.ion-palette-light { --ion-background-color-step-900: #191919; --ion-background-color-step-950: #0d0d0d; + --ion-color-faint: #f8fafb; + --ion-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; @@ -186,4 +188,6 @@ html.ion-palette-dark { --ui-input-background: #1e1e1e; --ui-input-color: #ffffff; + + --ion-color-faint: #626262; } diff --git a/src/ui/tag/index.vue b/src/ui/tag/index.vue index 53876c6..2ec4d9a 100644 --- a/src/ui/tag/index.vue +++ b/src/ui/tag/index.vue @@ -1,13 +1,13 @@ @@ -16,7 +16,7 @@ const { type = "primary", size = "medium", round = false } = defineProps<{ @reference "tailwindcss"; .ui-tag { - @apply px-3 py-1 text-xs; + @apply px-3 py-1 text-xs rounded-md inline-block; } .ui-tag.primary { @apply bg-(--ion-color-dark) text-white; @@ -25,7 +25,7 @@ const { type = "primary", size = "medium", round = false } = defineProps<{ @apply bg-(--ion-color-medium-shade) text-white; } .ui-tag.tertiary { - @apply bg-(--ion-color-medium-tint) text-white; + @apply bg-(--ion-color-light-shade) text-black; } .ui-tag.success { @apply bg-(--ion-color-success) text-white; @@ -36,13 +36,16 @@ const { type = "primary", size = "medium", round = false } = defineProps<{ .ui-tag.danger { @apply bg-(--ion-color-danger) text-white; } +.ui-tag.mini { + @apply text-[10px] px-1 py-0.5 rounded-sm; +} .ui-tag.small { - @apply text-xs px-2 py-0.5; + @apply text-xs px-2 py-0.5 rounded-sm; } .ui-tag.medium { - @apply text-sm px-3 py-1; + @apply text-sm px-3 py-1 rounded-md; } .ui-tag.large { - @apply text-base px-4 py-2; + @apply text-base px-4 py-2 rounded-md; } diff --git a/src/views/trade/components/orders-panel.vue b/src/views/trade/components/orders-panel.vue index db8865b..9531074 100644 --- a/src/views/trade/components/orders-panel.vue +++ b/src/views/trade/components/orders-panel.vue @@ -120,7 +120,7 @@ async function cancelOrder(orderId: string) {