feat: add carpet
This commit is contained in:
@@ -53,11 +53,17 @@ class AppTheme {
|
||||
final base = ThemeData.dark(useMaterial3: true);
|
||||
return base.copyWith(
|
||||
scaffoldBackgroundColor: AppColors.bg,
|
||||
primaryColor: AppColors.accent,
|
||||
primaryColor: AppColors.lapis,
|
||||
canvasColor: AppColors.bg,
|
||||
cardColor: AppColors.panel,
|
||||
dividerColor: AppColors.goldFaint,
|
||||
colorScheme: base.colorScheme.copyWith(
|
||||
primary: AppColors.gold,
|
||||
secondary: AppColors.accent,
|
||||
onPrimary: AppColors.lapisInk,
|
||||
secondary: AppColors.lapis,
|
||||
tertiary: AppColors.accent,
|
||||
surface: AppColors.panel,
|
||||
onSurface: AppColors.text,
|
||||
),
|
||||
textTheme: base.textTheme.apply(
|
||||
fontFamily: fontFamily,
|
||||
@@ -69,6 +75,36 @@ class AppTheme {
|
||||
foregroundColor: AppColors.gold,
|
||||
centerTitle: true,
|
||||
),
|
||||
// دیالوگ/منو/اسنکبار با همان قابِ لاجورد + طلا.
|
||||
dialogTheme: DialogThemeData(
|
||||
backgroundColor: AppColors.panel,
|
||||
surfaceTintColor: Colors.transparent,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(18),
|
||||
side: const BorderSide(color: AppColors.gold, width: 1.5),
|
||||
),
|
||||
titleTextStyle: const TextStyle(
|
||||
fontFamily: fontFamily,
|
||||
color: AppColors.gold,
|
||||
fontSize: 19,
|
||||
fontWeight: FontWeight.bold),
|
||||
contentTextStyle:
|
||||
const TextStyle(fontFamily: fontFamily, color: AppColors.text),
|
||||
),
|
||||
snackBarTheme: const SnackBarThemeData(
|
||||
backgroundColor: AppColors.lapisMid,
|
||||
contentTextStyle: TextStyle(fontFamily: fontFamily, color: AppColors.text),
|
||||
behavior: SnackBarBehavior.floating,
|
||||
),
|
||||
tabBarTheme: const TabBarThemeData(
|
||||
labelColor: AppColors.gold,
|
||||
unselectedLabelColor: Colors.white60,
|
||||
indicatorColor: AppColors.gold,
|
||||
),
|
||||
bottomSheetTheme: const BottomSheetThemeData(
|
||||
backgroundColor: AppColors.panel,
|
||||
surfaceTintColor: Colors.transparent,
|
||||
),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
filled: true,
|
||||
fillColor: AppColors.bgDark.withValues(alpha: 0.6),
|
||||
|
||||
Reference in New Issue
Block a user