refactor: Simplify themes and remove dead code
This commit is contained in:
parent
1663932b22
commit
214f0f4805
5 changed files with 23 additions and 85 deletions
|
|
@ -25,8 +25,8 @@ class LockScreenState extends State<LockScreen> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: FluffyThemes.light(),
|
||||
darkTheme: FluffyThemes.light(),
|
||||
theme: FluffyThemes.buildTheme(Brightness.light),
|
||||
darkTheme: FluffyThemes.buildTheme(Brightness.dark),
|
||||
localizationsDelegates: L10n.localizationsDelegates,
|
||||
supportedLocales: L10n.supportedLocales,
|
||||
home: Builder(
|
||||
|
|
|
|||
|
|
@ -479,8 +479,8 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
if (value != null && int.tryParse(value) != null) {
|
||||
AppConfig.colorSchemeSeed = Color(int.parse(value));
|
||||
AdaptiveTheme.of(context).setTheme(
|
||||
light: FluffyThemes.light(),
|
||||
dark: FluffyThemes.dark(),
|
||||
light: FluffyThemes.buildTheme(Brightness.light),
|
||||
dark: FluffyThemes.buildTheme(Brightness.dark),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue