import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class Styles {
  Styles._();

  static Color c_0089FF = const Color(0xFF0089FF); // 主题色
  static Color c_0C1C33 = const Color(0xFF0C1C33); // 黑色字体
  static Color c_8E9AB0 = const Color(0xFF8E9AB0); // 说明文字
  static Color c_E8EAEF = const Color(0xFFE8EAEF); // 分割线
  static Color c_FF381F = const Color(0xFFFF381F); // 警告色
  static Color c_FFFFFF = const Color(0xFFFFFFFF); // 警告色
  static Color c_18E875 = const Color(0xFF18E875); // 在线
  static Color c_F0F2F6 = const Color(0xFFF0F2F6); // 聊天页底部
  static Color c_F2F3F5 = const Color(0xFFF2F3F5); // 搜索/输入框底 searchBg
  static Color c_000000 = const Color(0xFF000000); //

  static Duration durationOverlay = const Duration(milliseconds: 150);
  static Duration durationOverlaySwitch = const Duration(milliseconds: 100);

  static bool Function(BuildContext) reduceMotion =
      (BuildContext context) => MediaQuery.maybeOf(context)?.disableAnimations ?? false;

  static Duration Function(BuildContext, Duration) motionOf =
      (BuildContext context, Duration normal) => reduceMotion(context) ? Duration.zero : normal;

  static Color c_92B3E0 = const Color(0xFF92B3E0);
  static Color c_F2F8FF = const Color(0xFFF2F8FF); // 同步成功背景色
  static Color c_F8F9FA = const Color(0xFFF8F9FA); // 默认背景
  static Color c_6085B1 = const Color(0xFF6085B1);
  static Color c_FFB300 = const Color(0xFFFFB300); // 会议状态
  static Color c_FFE1DD = const Color(0xFFFFE1DD); // 同步失败背景色
  static Color c_707070 = const Color(0xFF707070);

  static Color c_92B3E0_opacity50 = c_92B3E0.withOpacity(.5); // 气泡背景
  static Color c_E8EAEF_opacity50 = c_E8EAEF.withOpacity(.5);
  static Color c_F4F5F7 = const Color(0xFFF4F5F7);
  static Color c_CCE7FE = const Color(0xFFCCE7FE);

  static Color c_FFFFFF_opacity0 = c_FFFFFF.withOpacity(.0);
  static Color c_FFFFFF_opacity70 = c_FFFFFF.withOpacity(.7);
  static Color c_FFFFFF_opacity50 = c_FFFFFF.withOpacity(.5);
  static Color c_0089FF_opacity10 = c_0089FF.withOpacity(.1);
  static Color c_0089FF_opacity20 = c_0089FF.withOpacity(.2);
  static Color c_0089FF_opacity50 = c_0089FF.withOpacity(.5);
  static Color c_FF381F_opacity10 = c_FF381F.withOpacity(.1);
  static Color c_8E9AB0_opacity13 = c_8E9AB0.withOpacity(.13);
  static Color c_8E9AB0_opacity15 = c_8E9AB0.withOpacity(.15);
  static Color c_8E9AB0_opacity16 = c_8E9AB0.withOpacity(.16);
  static Color c_8E9AB0_opacity30 = c_8E9AB0.withOpacity(.3);
  static Color c_8E9AB0_opacity50 = c_8E9AB0.withOpacity(.5);
  static Color c_0C1C33_opacity30 = c_0C1C33.withOpacity(.3);
  static Color c_0C1C33_opacity60 = c_0C1C33.withOpacity(.6);
  static Color c_0C1C33_opacity85 = c_0C1C33.withOpacity(.85);
  static Color c_0C1C33_opacity80 = c_0C1C33.withOpacity(.8);
  static Color c_FF381F_opacity70 = c_FF381F.withOpacity(.7);
  static Color c_000000_opacity70 = c_000000.withOpacity(.7);
  static Color c_000000_opacity15 = c_000000.withOpacity(.15);
  static Color c_000000_opacity12 = c_000000.withOpacity(.12);
  static Color c_000000_opacity4 = c_000000.withOpacity(.04);

  static TextStyle ts_FFFFFF_21sp = TextStyle(
    color: c_FFFFFF,
    fontSize: 21.sp,
  );
  static TextStyle ts_FFFFFF_20sp_medium = TextStyle(
    color: c_FFFFFF,
    fontSize: 20.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_FFFFFF_18sp_medium = TextStyle(
    color: c_FFFFFF,
    fontSize: 18.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_FFFFFF_17sp = TextStyle(
    color: c_FFFFFF,
    fontSize: 17.sp,
  );
  static TextStyle ts_FFFFFF_opacity70_17sp = TextStyle(
    color: c_FFFFFF_opacity70,
    fontSize: 17.sp,
  );
  static TextStyle ts_FFFFFF_17sp_semibold = TextStyle(
    color: c_FFFFFF,
    fontSize: 17.sp,
    fontWeight: FontWeight.w600,
  );
  static TextStyle ts_FFFFFF_17sp_medium = TextStyle(
    color: c_FFFFFF,
    fontSize: 17.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_FFFFFF_16sp = TextStyle(
    color: c_FFFFFF,
    fontSize: 16.sp,
  );
  static TextStyle ts_FFFFFF_14sp = TextStyle(
    color: c_FFFFFF,
    fontSize: 14.sp,
  );
  static TextStyle ts_FFFFFF_opacity70_14sp = TextStyle(
    color: c_FFFFFF_opacity70,
    fontSize: 14.sp,
  );
  static TextStyle ts_FFFFFF_14sp_medium = TextStyle(
    color: c_FFFFFF,
    fontSize: 14.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_FFFFFF_12sp = TextStyle(
    color: c_FFFFFF,
    fontSize: 12.sp,
  );
  static TextStyle ts_FFFFFF_10sp = TextStyle(
    color: c_FFFFFF,
    fontSize: 10.sp,
  );

  static TextStyle ts_8E9AB0_10sp_semibold = TextStyle(
    color: c_8E9AB0,
    fontSize: 10.sp,
    fontWeight: FontWeight.w600,
  );
  static TextStyle ts_8E9AB0_10sp = TextStyle(
    color: c_8E9AB0,
    fontSize: 10.sp,
  );
  static TextStyle ts_8E9AB0_12sp = TextStyle(
    color: c_8E9AB0,
    fontSize: 12.sp,
  );
  static TextStyle ts_8E9AB0_13sp = TextStyle(
    color: c_8E9AB0,
    fontSize: 13.sp,
  );
  static TextStyle ts_8E9AB0_14sp = TextStyle(
    color: c_8E9AB0,
    fontSize: 14.sp,
  );
  static TextStyle ts_8E9AB0_15sp = TextStyle(
    color: c_8E9AB0,
    fontSize: 15.sp,
  );
  static TextStyle ts_8E9AB0_16sp = TextStyle(
    color: c_8E9AB0,
    fontSize: 16.sp,
  );
  static TextStyle ts_8E9AB0_17sp = TextStyle(
    color: c_8E9AB0,
    fontSize: 17.sp,
  );
  static TextStyle ts_8E9AB0_opacity50_17sp = TextStyle(
    color: c_8E9AB0_opacity50,
    fontSize: 17.sp,
  );

  static TextStyle ts_0C1C33_10sp = TextStyle(
    color: c_0C1C33,
    fontSize: 10.sp,
  );
  static TextStyle ts_0C1C33_12sp = TextStyle(
    color: c_0C1C33,
    fontSize: 12.sp,
  );
  static TextStyle ts_0C1C33_12sp_medium = TextStyle(
    color: c_0C1C33,
    fontSize: 12.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_0C1C33_14sp = TextStyle(
    color: c_0C1C33,
    fontSize: 14.sp,
  );
  static TextStyle ts_0C1C33_14sp_medium = TextStyle(
    color: c_0C1C33,
    fontSize: 14.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_0C1C33_17sp = TextStyle(
    color: c_0C1C33,
    fontSize: 17.sp,
  );
  static TextStyle ts_0C1C33_17sp_medium = TextStyle(
    color: c_0C1C33,
    fontSize: 17.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_0C1C33_17sp_semibold = TextStyle(
    color: c_0C1C33,
    fontSize: 17.sp,
    fontWeight: FontWeight.w600,
  );
  static TextStyle ts_0C1C33_20sp = TextStyle(
    color: c_0C1C33,
    fontSize: 20.sp,
  );
  static TextStyle ts_0C1C33_20sp_medium = TextStyle(
    color: c_0C1C33,
    fontSize: 20.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_0C1C33_20sp_semibold = TextStyle(
    color: c_0C1C33,
    fontSize: 20.sp,
    fontWeight: FontWeight.w600,
  );

  static TextStyle ts_0089FF_10sp_semibold = TextStyle(
    color: c_0089FF,
    fontSize: 10.sp,
    fontWeight: FontWeight.w600,
  );
  static TextStyle ts_0089FF_10sp = TextStyle(
    color: c_0089FF,
    fontSize: 10.sp,
  );
  static TextStyle ts_0089FF_12sp = TextStyle(
    color: c_0089FF,
    fontSize: 12.sp,
  );
  static TextStyle ts_0089FF_14sp = TextStyle(
    color: c_0089FF,
    fontSize: 14.sp,
  );
  static TextStyle ts_0089FF_16sp = TextStyle(
    color: c_0089FF,
    fontSize: 16.sp,
  );
  static TextStyle ts_0089FF_16sp_medium = TextStyle(
    color: c_0089FF,
    fontSize: 16.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_0089FF_17sp = TextStyle(
    color: c_0089FF,
    fontSize: 17.sp,
  );
  static TextStyle ts_0089FF_17sp_semibold = TextStyle(
    color: c_0089FF,
    fontSize: 17.sp,
    fontWeight: FontWeight.w600,
  );
  static TextStyle ts_0089FF_17sp_medium = TextStyle(
    color: c_0089FF,
    fontSize: 17.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_0089FF_14sp_medium = TextStyle(
    color: c_0089FF,
    fontSize: 14.sp,
    fontWeight: FontWeight.w500,
  );

  static TextStyle ts_0089FF_22sp_semibold = TextStyle(
    color: c_0089FF,
    fontSize: 22.sp,
    fontWeight: FontWeight.w600,
  );

  static TextStyle ts_FF381F_17sp = TextStyle(
    color: c_FF381F,
    fontSize: 17.sp,
  );
  static TextStyle ts_FF381F_14sp = TextStyle(
    color: c_FF381F,
    fontSize: 14.sp,
  );
  static TextStyle ts_FF381F_12sp = TextStyle(
    color: c_FF381F,
    fontSize: 12.sp,
  );
  static TextStyle ts_FF381F_10sp = TextStyle(
    color: c_FF381F,
    fontSize: 10.sp,
  );

  static TextStyle ts_FFB300_12sp = TextStyle(
    color: c_FFB300,
    fontSize: 12.sp,
  );

  static TextStyle ts_6085B1_17sp_medium = TextStyle(
    color: c_6085B1,
    fontSize: 17.sp,
    fontWeight: FontWeight.w500,
  );
  static TextStyle ts_6085B1_17sp = TextStyle(
    color: c_6085B1,
    fontSize: 17.sp,
  );
  static TextStyle ts_6085B1_12sp = TextStyle(
    color: c_6085B1,
    fontSize: 12.sp,
  );
  static TextStyle ts_6085B1_14sp = TextStyle(
    color: c_6085B1,
    fontSize: 14.sp,
  );
}
