From 3506adc05116b247fa69a5622bac11a9d28954d5 Mon Sep 17 00:00:00 2001 From: Adil Hanney Date: Thu, 16 May 2024 01:46:41 +0100 Subject: [PATCH] feat: improve high contrast color schemes --- lib/main.dart | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 3f10c17..2243203 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,5 +1,6 @@ import 'dart:async'; +import 'package:flame/extensions.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -117,17 +118,22 @@ class _MyAppState extends State { darkTheme: nesThemeFrom( brightness: Brightness.dark, colorScheme: ColorScheme.fromSeed( - seedColor: RicochlimePalette.grassColor, + seedColor: RicochlimePalette.grassColorDark, + primary: RicochlimePalette.grassColor.brighten(0.1), brightness: Brightness.dark, ), ), highContrastTheme: nesThemeFrom( brightness: Brightness.light, - colorScheme: const ColorScheme.highContrastLight(), + colorScheme: ColorScheme.highContrastLight( + primary: RicochlimePalette.grassColor.darken(0.5), + ), ), highContrastDarkTheme: nesThemeFrom( brightness: Brightness.dark, - colorScheme: const ColorScheme.highContrastDark(), + colorScheme: ColorScheme.highContrastDark( + primary: RicochlimePalette.grassColorDark.darken(0.5), + ), ), home: const HomePage(), );