revanced-manager/lib/theme.dart

45 lines
1.2 KiB
Dart
Raw Permalink Normal View History

2022-08-01 13:30:06 +02:00
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
var lightCustomColorScheme = ColorScheme.fromSeed(
2023-11-11 11:55:35 +01:00
seedColor: Colors.purple,
primary: const Color(0xFF4C51C0),
);
var lightCustomTheme = ThemeData(
2022-08-01 13:30:06 +02:00
useMaterial3: true,
colorScheme: lightCustomColorScheme,
2022-09-06 19:07:23 +02:00
navigationBarTheme: NavigationBarThemeData(
2024-07-13 12:32:34 +02:00
labelTextStyle: WidgetStateProperty.all(
TextStyle(
color: lightCustomColorScheme.onSurface,
2022-09-06 19:07:23 +02:00
fontWeight: FontWeight.w500,
),
),
),
textTheme: GoogleFonts.robotoTextTheme(ThemeData.light().textTheme),
2022-08-01 13:30:06 +02:00
);
var darkCustomColorScheme = ColorScheme.fromSeed(
2023-11-11 11:55:35 +01:00
seedColor: Colors.purple,
brightness: Brightness.dark,
2023-11-11 11:55:35 +01:00
primary: const Color(0xFFBFC1FF),
surface: const Color(0xFF131316),
);
var darkCustomTheme = ThemeData(
2022-08-01 13:30:06 +02:00
useMaterial3: true,
colorScheme: darkCustomColorScheme,
2022-09-06 19:07:23 +02:00
navigationBarTheme: NavigationBarThemeData(
2024-07-13 12:32:34 +02:00
labelTextStyle: WidgetStateProperty.all(
TextStyle(
color: darkCustomColorScheme.onSurface,
2022-09-06 19:07:23 +02:00
fontWeight: FontWeight.w500,
),
),
),
2023-11-11 11:55:35 +01:00
canvasColor: const Color(0xFF131316),
scaffoldBackgroundColor: const Color(0xFF131316),
textTheme: GoogleFonts.robotoTextTheme(ThemeData.dark().textTheme),
2022-08-01 13:30:06 +02:00
);