feat: 增加主题色功能
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="min-h-screen flex flex-col bg-gradient-to-b from-[#a78bfa] to-[#f3e8ff]">
|
||||
<view class="min-h-screen flex flex-col" :style="getThemeStyle[appStore.themeColor]">
|
||||
<view class="self-center py-3 flex items-center gap-2 text-gray-800">
|
||||
<view class="flex min-w-0 flex-col">
|
||||
<text class="truncate text-lg text-white font-semibold">
|
||||
@@ -92,9 +92,12 @@ import { ref } from 'vue'
|
||||
import { getRecentRecords } from '@/utils/record'
|
||||
import { onShow } from "@dcloudio/uni-app";
|
||||
import { useProfileStore } from '@/store/profile'
|
||||
import { useAppStore } from '@/store/app'
|
||||
import { getStats } from "@/utils/profile";
|
||||
import { getThemeStyle } from "@/utils/themes";
|
||||
|
||||
const profileStore = useProfileStore()
|
||||
const appStore = useAppStore()
|
||||
|
||||
const weightChartData = ref({
|
||||
categories: [] as string[],
|
||||
|
||||
Reference in New Issue
Block a user