mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 19:26:37 +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(
|
theme: ThemeData(
|
||||||
extensions: [colorScheme],
|
extensions: [colorScheme],
|
||||||
highlightColor: colorScheme.highlight,
|
highlightColor: colorScheme.highlight,
|
||||||
brightness: Brightness.light,
|
brightness: colorScheme.brightness,
|
||||||
fontFamily: GoogleFonts.inter().fontFamily,
|
fontFamily: GoogleFonts.inter().fontFamily,
|
||||||
unselectedWidgetColor: colorScheme.radioButtonBorderDisabled,
|
unselectedWidgetColor: colorScheme.radioButtonBorderDisabled,
|
||||||
// textTheme: GoogleFonts.interTextTheme().copyWith(
|
// textTheme: GoogleFonts.interTextTheme().copyWith(
|
||||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
class ChanColors extends StackColorTheme {
|
class ChanColors extends StackColorTheme {
|
||||||
@override
|
@override
|
||||||
ThemeType get themeType => ThemeType.chan;
|
ThemeType get themeType => ThemeType.chan;
|
||||||
|
@override
|
||||||
|
Brightness get brightness => Brightness.light;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Color get background => const Color(0xFFF7F7F7);
|
Color get background => const Color(0xFFF7F7F7);
|
||||||
|
|
|
@ -63,6 +63,7 @@ extension ThemeTypeExt on ThemeType {
|
||||||
|
|
||||||
abstract class StackColorTheme {
|
abstract class StackColorTheme {
|
||||||
ThemeType get themeType;
|
ThemeType get themeType;
|
||||||
|
Brightness get brightness;
|
||||||
|
|
||||||
Color get background;
|
Color get background;
|
||||||
Color get backgroundAppBar;
|
Color get backgroundAppBar;
|
||||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
class DarkColors extends StackColorTheme {
|
class DarkColors extends StackColorTheme {
|
||||||
@override
|
@override
|
||||||
ThemeType get themeType => ThemeType.dark;
|
ThemeType get themeType => ThemeType.dark;
|
||||||
|
@override
|
||||||
|
Brightness get brightness => Brightness.dark;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Color get background => const Color(0xFF2A2D34);
|
Color get background => const Color(0xFF2A2D34);
|
||||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
class ForestColors extends StackColorTheme {
|
class ForestColors extends StackColorTheme {
|
||||||
@override
|
@override
|
||||||
ThemeType get themeType => ThemeType.forest;
|
ThemeType get themeType => ThemeType.forest;
|
||||||
|
@override
|
||||||
|
Brightness get brightness => Brightness.light;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Color get background => const Color(0xFFF3FAF5);
|
Color get background => const Color(0xFFF3FAF5);
|
||||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
class FruitSorbetColors extends StackColorTheme {
|
class FruitSorbetColors extends StackColorTheme {
|
||||||
@override
|
@override
|
||||||
ThemeType get themeType => ThemeType.fruitSorbet;
|
ThemeType get themeType => ThemeType.fruitSorbet;
|
||||||
|
@override
|
||||||
|
Brightness get brightness => Brightness.light;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Color get background => Colors.transparent;
|
Color get background => Colors.transparent;
|
||||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
class LightColors extends StackColorTheme {
|
class LightColors extends StackColorTheme {
|
||||||
@override
|
@override
|
||||||
ThemeType get themeType => ThemeType.light;
|
ThemeType get themeType => ThemeType.light;
|
||||||
|
@override
|
||||||
|
Brightness get brightness => Brightness.light;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Color get background => const Color(0xFFF7F7F7);
|
Color get background => const Color(0xFFF7F7F7);
|
||||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
class OceanBreezeColors extends StackColorTheme {
|
class OceanBreezeColors extends StackColorTheme {
|
||||||
@override
|
@override
|
||||||
ThemeType get themeType => ThemeType.oceanBreeze;
|
ThemeType get themeType => ThemeType.oceanBreeze;
|
||||||
|
@override
|
||||||
|
Brightness get brightness => Brightness.light;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Color get background => Colors.transparent;
|
Color get background => Colors.transparent;
|
||||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
class OledBlackColors extends StackColorTheme {
|
class OledBlackColors extends StackColorTheme {
|
||||||
@override
|
@override
|
||||||
ThemeType get themeType => ThemeType.oledBlack;
|
ThemeType get themeType => ThemeType.oledBlack;
|
||||||
|
@override
|
||||||
|
Brightness get brightness => Brightness.dark;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Color get background => const Color(0xFF000000);
|
Color get background => const Color(0xFF000000);
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
|
|
||||||
class StackColors extends ThemeExtension<StackColors> {
|
class StackColors extends ThemeExtension<StackColors> {
|
||||||
final ThemeType themeType;
|
final ThemeType themeType;
|
||||||
|
final Brightness brightness;
|
||||||
|
|
||||||
final Color background;
|
final Color background;
|
||||||
final Color backgroundAppBar;
|
final Color backgroundAppBar;
|
||||||
|
@ -191,6 +192,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
|
|
||||||
StackColors({
|
StackColors({
|
||||||
required this.themeType,
|
required this.themeType,
|
||||||
|
required this.brightness,
|
||||||
required this.background,
|
required this.background,
|
||||||
required this.backgroundAppBar,
|
required this.backgroundAppBar,
|
||||||
required this.gradientBackground,
|
required this.gradientBackground,
|
||||||
|
@ -340,6 +342,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
factory StackColors.fromStackColorTheme(StackColorTheme colorTheme) {
|
factory StackColors.fromStackColorTheme(StackColorTheme colorTheme) {
|
||||||
return StackColors(
|
return StackColors(
|
||||||
themeType: colorTheme.themeType,
|
themeType: colorTheme.themeType,
|
||||||
|
brightness: colorTheme.brightness,
|
||||||
background: colorTheme.background,
|
background: colorTheme.background,
|
||||||
backgroundAppBar: colorTheme.backgroundAppBar,
|
backgroundAppBar: colorTheme.backgroundAppBar,
|
||||||
gradientBackground: colorTheme.gradientBackground,
|
gradientBackground: colorTheme.gradientBackground,
|
||||||
|
@ -493,6 +496,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
@override
|
@override
|
||||||
ThemeExtension<StackColors> copyWith({
|
ThemeExtension<StackColors> copyWith({
|
||||||
ThemeType? themeType,
|
ThemeType? themeType,
|
||||||
|
Brightness? brightness,
|
||||||
Color? background,
|
Color? background,
|
||||||
Color? backgroundAppBar,
|
Color? backgroundAppBar,
|
||||||
Gradient? gradientBackground,
|
Gradient? gradientBackground,
|
||||||
|
@ -640,6 +644,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
}) {
|
}) {
|
||||||
return StackColors(
|
return StackColors(
|
||||||
themeType: themeType ?? this.themeType,
|
themeType: themeType ?? this.themeType,
|
||||||
|
brightness: brightness ?? this.brightness,
|
||||||
background: background ?? this.background,
|
background: background ?? this.background,
|
||||||
backgroundAppBar: backgroundAppBar ?? this.backgroundAppBar,
|
backgroundAppBar: backgroundAppBar ?? this.backgroundAppBar,
|
||||||
gradientBackground: gradientBackground ?? this.gradientBackground,
|
gradientBackground: gradientBackground ?? this.gradientBackground,
|
||||||
|
@ -845,6 +850,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
|
|
||||||
return StackColors(
|
return StackColors(
|
||||||
themeType: other.themeType,
|
themeType: other.themeType,
|
||||||
|
brightness: other.brightness,
|
||||||
gradientBackground: other.gradientBackground,
|
gradientBackground: other.gradientBackground,
|
||||||
homeViewButtonBarBoxShadow: other.homeViewButtonBarBoxShadow,
|
homeViewButtonBarBoxShadow: other.homeViewButtonBarBoxShadow,
|
||||||
standardBoxShadow: other.standardBoxShadow,
|
standardBoxShadow: other.standardBoxShadow,
|
||||||
|
|
Loading…
Reference in a new issue