mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 11:04:33 +00:00
dark theme context menu fix
This commit is contained in:
parent
d47782a185
commit
864375e7ae
10 changed files with 22 additions and 1 deletions
|
@ -529,7 +529,7 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
|||
theme: ThemeData(
|
||||
extensions: [colorScheme],
|
||||
highlightColor: colorScheme.highlight,
|
||||
brightness: Brightness.light,
|
||||
brightness: colorScheme.brightness,
|
||||
fontFamily: GoogleFonts.inter().fontFamily,
|
||||
unselectedWidgetColor: colorScheme.radioButtonBorderDisabled,
|
||||
// textTheme: GoogleFonts.interTextTheme().copyWith(
|
||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
class ChanColors extends StackColorTheme {
|
||||
@override
|
||||
ThemeType get themeType => ThemeType.chan;
|
||||
@override
|
||||
Brightness get brightness => Brightness.light;
|
||||
|
||||
@override
|
||||
Color get background => const Color(0xFFF7F7F7);
|
||||
|
|
|
@ -63,6 +63,7 @@ extension ThemeTypeExt on ThemeType {
|
|||
|
||||
abstract class StackColorTheme {
|
||||
ThemeType get themeType;
|
||||
Brightness get brightness;
|
||||
|
||||
Color get background;
|
||||
Color get backgroundAppBar;
|
||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
class DarkColors extends StackColorTheme {
|
||||
@override
|
||||
ThemeType get themeType => ThemeType.dark;
|
||||
@override
|
||||
Brightness get brightness => Brightness.dark;
|
||||
|
||||
@override
|
||||
Color get background => const Color(0xFF2A2D34);
|
||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
class ForestColors extends StackColorTheme {
|
||||
@override
|
||||
ThemeType get themeType => ThemeType.forest;
|
||||
@override
|
||||
Brightness get brightness => Brightness.light;
|
||||
|
||||
@override
|
||||
Color get background => const Color(0xFFF3FAF5);
|
||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
class FruitSorbetColors extends StackColorTheme {
|
||||
@override
|
||||
ThemeType get themeType => ThemeType.fruitSorbet;
|
||||
@override
|
||||
Brightness get brightness => Brightness.light;
|
||||
|
||||
@override
|
||||
Color get background => Colors.transparent;
|
||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
class LightColors extends StackColorTheme {
|
||||
@override
|
||||
ThemeType get themeType => ThemeType.light;
|
||||
@override
|
||||
Brightness get brightness => Brightness.light;
|
||||
|
||||
@override
|
||||
Color get background => const Color(0xFFF7F7F7);
|
||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
class OceanBreezeColors extends StackColorTheme {
|
||||
@override
|
||||
ThemeType get themeType => ThemeType.oceanBreeze;
|
||||
@override
|
||||
Brightness get brightness => Brightness.light;
|
||||
|
||||
@override
|
||||
Color get background => Colors.transparent;
|
||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
class OledBlackColors extends StackColorTheme {
|
||||
@override
|
||||
ThemeType get themeType => ThemeType.oledBlack;
|
||||
@override
|
||||
Brightness get brightness => Brightness.dark;
|
||||
|
||||
@override
|
||||
Color get background => const Color(0xFF000000);
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
|
||||
class StackColors extends ThemeExtension<StackColors> {
|
||||
final ThemeType themeType;
|
||||
final Brightness brightness;
|
||||
|
||||
final Color background;
|
||||
final Color backgroundAppBar;
|
||||
|
@ -191,6 +192,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
|||
|
||||
StackColors({
|
||||
required this.themeType,
|
||||
required this.brightness,
|
||||
required this.background,
|
||||
required this.backgroundAppBar,
|
||||
required this.gradientBackground,
|
||||
|
@ -340,6 +342,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
|||
factory StackColors.fromStackColorTheme(StackColorTheme colorTheme) {
|
||||
return StackColors(
|
||||
themeType: colorTheme.themeType,
|
||||
brightness: colorTheme.brightness,
|
||||
background: colorTheme.background,
|
||||
backgroundAppBar: colorTheme.backgroundAppBar,
|
||||
gradientBackground: colorTheme.gradientBackground,
|
||||
|
@ -493,6 +496,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
|||
@override
|
||||
ThemeExtension<StackColors> copyWith({
|
||||
ThemeType? themeType,
|
||||
Brightness? brightness,
|
||||
Color? background,
|
||||
Color? backgroundAppBar,
|
||||
Gradient? gradientBackground,
|
||||
|
@ -640,6 +644,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
|||
}) {
|
||||
return StackColors(
|
||||
themeType: themeType ?? this.themeType,
|
||||
brightness: brightness ?? this.brightness,
|
||||
background: background ?? this.background,
|
||||
backgroundAppBar: backgroundAppBar ?? this.backgroundAppBar,
|
||||
gradientBackground: gradientBackground ?? this.gradientBackground,
|
||||
|
@ -845,6 +850,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
|||
|
||||
return StackColors(
|
||||
themeType: other.themeType,
|
||||
brightness: other.brightness,
|
||||
gradientBackground: other.gradientBackground,
|
||||
homeViewButtonBarBoxShadow: other.homeViewButtonBarBoxShadow,
|
||||
standardBoxShadow: other.standardBoxShadow,
|
||||
|
|
Loading…
Reference in a new issue