import 'package:flutter/material.dart';
import 'package:siro_rider/constant/style.dart';

import '../../constant/colors.dart';

ThemeData lightThemeEnglish = ThemeData(
  brightness: Brightness.light,
  fontFamily: "SFPro",
  textTheme: TextTheme(
    displaySmall: AppStyle.title,
    displayLarge: AppStyle.headTitle,
    displayMedium: AppStyle.headTitle2,
    bodyLarge: AppStyle.title,
    bodyMedium: AppStyle.subtitle,
  ),
  primarySwatch: Colors.blue,
  dialogTheme: DialogThemeData(
    backgroundColor: AppColor.secondaryColor,
    contentTextStyle: AppStyle.title,
    titleTextStyle: AppStyle.headTitle2,
  ),
  appBarTheme: AppBarTheme(
    elevation: 0,
    color: AppColor.secondaryColor,
    centerTitle: true,
    iconTheme: const IconThemeData(
      color: AppColor.primaryColor,
    ),
    toolbarTextStyle: TextTheme(
      titleSmall: AppStyle.subtitle,
      headlineSmall: AppStyle.title,
      titleLarge: AppStyle.headTitle2,
    ).bodyMedium,
    titleTextStyle: TextTheme(
      titleSmall: AppStyle.subtitle,
      headlineSmall: AppStyle.title,
      titleLarge: AppStyle.headTitle2,
    ).titleLarge,
  ),
);

ThemeData darkThemeEnglish = ThemeData(
  brightness: Brightness.dark,
  fontFamily: "SFPro",
  primaryColor: AppColor.primaryColor,
  scaffoldBackgroundColor: const Color(0xFF121212),
  cardColor: const Color(0xFF1E1E1E),
  textTheme: TextTheme(
    displaySmall: AppStyle.title.copyWith(color: Colors.white),
    displayLarge: AppStyle.headTitle.copyWith(color: Colors.white),
    displayMedium: AppStyle.headTitle2.copyWith(color: Colors.white),
    bodyLarge: AppStyle.title.copyWith(color: Colors.white70),
    bodyMedium: AppStyle.subtitle.copyWith(color: Colors.white60),
  ),
  primarySwatch: Colors.green,
  dialogTheme: const DialogThemeData(
    backgroundColor: Color(0xFF1E1E1E),
    contentTextStyle: TextStyle(color: Colors.white),
    titleTextStyle: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
  ),
  appBarTheme: const AppBarTheme(
    elevation: 0,
    color: Color(0xFF121212),
    centerTitle: true,
    iconTheme: IconThemeData(
      color: Colors.white,
    ),
    titleTextStyle: TextStyle(
      color: Colors.white,
      fontSize: 20,
      fontWeight: FontWeight.bold,
    ),
  ),
);

ThemeData lightThemeArabic = ThemeData(
  brightness: Brightness.light,
  fontFamily: 'SFArabic',
  textTheme: TextTheme(
    displaySmall: AppStyle.title,
    displayLarge: AppStyle.headTitle,
    displayMedium: AppStyle.headTitle2,
    bodyLarge: AppStyle.title,
    bodyMedium: AppStyle.subtitle,
  ),
  primarySwatch: Colors.blue,
  dialogTheme: DialogThemeData(
    backgroundColor: AppColor.secondaryColor,
    contentTextStyle: AppStyle.title,
    titleTextStyle: AppStyle.headTitle2,
  ),
  appBarTheme: AppBarTheme(
    elevation: 0,
    color: AppColor.secondaryColor,
    centerTitle: true,
    iconTheme: const IconThemeData(
      color: AppColor.primaryColor,
    ),
    toolbarTextStyle: TextTheme(
      titleSmall: AppStyle.subtitle,
      headlineSmall: AppStyle.title,
      titleLarge: AppStyle.headTitle2,
    ).bodyMedium,
    titleTextStyle: TextTheme(
      titleSmall: AppStyle.subtitle,
      headlineSmall: AppStyle.title,
      titleLarge: AppStyle.headTitle2,
    ).titleLarge,
  ),
);

ThemeData darkThemeArabic = ThemeData(
  brightness: Brightness.dark,
  fontFamily: 'SFArabic',
  primaryColor: AppColor.primaryColor,
  scaffoldBackgroundColor: const Color(0xFF121212),
  cardColor: const Color(0xFF1E1E1E),
  textTheme: TextTheme(
    displaySmall: AppStyle.title.copyWith(color: Colors.white),
    displayLarge: AppStyle.headTitle.copyWith(color: Colors.white),
    displayMedium: AppStyle.headTitle2.copyWith(color: Colors.white),
    bodyLarge: AppStyle.title.copyWith(color: Colors.white70),
    bodyMedium: AppStyle.subtitle.copyWith(color: Colors.white60),
  ),
  primarySwatch: Colors.green,
  dialogTheme: const DialogThemeData(
    backgroundColor: Color(0xFF1E1E1E),
    contentTextStyle: TextStyle(color: Colors.white),
    titleTextStyle: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
  ),
  appBarTheme: const AppBarTheme(
    elevation: 0,
    color: Color(0xFF121212),
    centerTitle: true,
    iconTheme: IconThemeData(
      color: Colors.white,
    ),
    titleTextStyle: TextStyle(
      color: Colors.white,
      fontSize: 20,
      fontWeight: FontWeight.bold,
    ),
  ),
);
