const appConfig = defineAppConfig({
  pages: [
    'pages/clock/Clock',
    'pages/demo',
    'pages/food/Food',
    'pages/index/index',
    'pages/account/Login',
    'pages/account/Auth',
    'pages/account/ChooseAuth',
    'pages/clock/ChooseScenario',
    'pages/clock/SetSchedule',
    'pages/common/H5',
    'pages/account/Profile',
    'pages/metric/Metric',
    'pages/activity/Activity',
    'pages/common/RecordsHistory',
    'pages/account/ProfileSetting',
    'pages/account/Setting',
    'pages/account/EditPage',
  ],
  subPackages: [
    {
      root: 'moduleA',
      pages: [
        'pages/third'
      ]
    }
  ],
  usingComponents:{
    'mysvg':'./components/basic/svg'
  },
  // tabBar: {
  //   custom: true,
  //   list:[
  //     {
  //       pagePath: 'pages/Clock',
  //       text: '首页',

  //     },
  //     {
  //       pagePath: 'pages/Metric',
  //       text: '第二页',
  //     },
  //     {
  //       pagePath: 'pages/Activity',
  //       text: '第三页',
  //     },
  //     {
  //       pagePath: 'pages/Profile',
  //       text: '第二页',
  //     }
  //   ]
  // },
  window: {
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#000000",
    "navigationBarTitleText": "Weixin",
    "navigationBarTextStyle": "white",
    "backgroundColor": "#000000"
  },
  // darkmode: true
})

process.env.TARO_ENV === 'weapp' && (appConfig.tabBar = {
  custom: true,
  backgroundColor:'#000',
  color:'#ffffff66',
  selectedColor:'#ffffff',
  borderStyle:'black',
  list: [
    {
      pagePath: 'pages/clock/Clock',
      text: '生物钟',
    },
    {
      pagePath: 'pages/metric/Metric',
      text: '指标',
    },
    {
      pagePath: 'pages/food/Food',
      text: '饮食',
    },
    {
      pagePath: 'pages/activity/Activity',
      text: '运动',
    },
    {
      pagePath: 'pages/account/Profile',
      text: '更多',
    }
  ]
})

//src/pages/rn/RNMain.tsx
process.env.TARO_ENV === 'rn' && (appConfig.pages = [
  'pages/rn/RNMain'
])

export default appConfig;
