import { configTheme } from "@/components/theme/ThemeDefine";

export function configAppTheme() {
  //修改默认主题颜色
  configTheme(false, (theme, defaultDarkTheme) => {
    theme.colorConfigs.default.primary = '#e19579';
    theme.colorConfigs.pressed.primary = '#fbce7a';
    theme.colorConfigs.default.button = '#f6e9d9';
    theme.colorConfigs.background.primary = '#fef2e8';
    theme.colorConfigs.background.secondary = '#f7f8f9';
    theme.colorConfigs.background.tertiary = '#fff7f1';
    theme.colorConfigs.background.quaternary = '#fff4d8';

    theme.colorConfigs.text.title = '#62422f';
    theme.colorConfigs.text.content = '#7b5e49';
    theme.colorConfigs.text.second = '#95755a';
    theme.colorConfigs.text.titleLight = '#55989a';
    theme.colorConfigs.text.gold = '#cb8833';

    theme.colorConfigs.border.primary = '#55989a';
    theme.colorConfigs.border.secondary = '#5F3F2C';

    theme.varOverrides.radius.xs = '5rpx';
    theme.varOverrides.radius.sm = '10rpx';
    theme.varOverrides.radius.md = '20rpx';
    theme.varOverrides.radius.lg = '30rpx';
    theme.varOverrides.radius.lgr = '50rpx';

    theme.textConfigs.primaryTitle = {
      color: 'text.title',
      fontFamily: 'SongtiSCBlack',
      fontSize: '40rpx',
      fontWeight: 'bold',
    };
    theme.textConfigs.lightTitle = {
      color: 'text.titleLight',
      fontFamily: 'SongtiSCBlack',
      fontSize: '40rpx',
      fontWeight: 'bold',
    };
    theme.textConfigs.lightGoldTitle = {
      color: 'text.gold',
      fontFamily: 'SongtiSCBlack',
      fontSize: '40rpx',
      fontWeight: 'bold',
    };
    theme.textConfigs.importantTitle = {
      color: 'text.title',
      fontSize: '36rpx',
      fontWeight: 'bold',
    };
    theme.textConfigs.lightImportantTitle = {
      color: 'text.title',
      fontSize: '34rpx',
    };
    theme.textConfigs.contentSpeicalText = {
      color: 'text.content',
      fontSize: '30rpx',
      fontFamily: 'SongtiSCBlack',
    };
    theme.textConfigs.contentText = {
      color: 'text.content',
      fontSize: '26rpx',
    };
    theme.textConfigs.secondText = {
      color: 'text.second',
      fontSize: '24rpx',
    };


    theme.varOverrides.border.primary = '1px solid #aca696';
    theme.varOverrides.border.secondary = '1px solid #5F3F2C';
    theme.varOverrides['DividerColor'] = '#eacb9f';
    theme.varOverrides['ImageDefaultImage'] = 'https://xy.wenlvti.net/app_static/EmptyImage.png';
    return [theme, defaultDarkTheme];
  });
}