From 8ca405cfea97f7f1172eb74b63ea6785f261284f Mon Sep 17 00:00:00 2001 From: ryleedavis <rylee@cypherstack.com> Date: Thu, 5 Jan 2023 11:51:15 -0700 Subject: [PATCH] oledBlack theme added to themeType --- lib/utilities/theme/color_theme.dart | 11 ++++++----- lib/utilities/theme/oled_black_colors.dart | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/utilities/theme/color_theme.dart b/lib/utilities/theme/color_theme.dart index 43012ffe6..94544ff11 100644 --- a/lib/utilities/theme/color_theme.dart +++ b/lib/utilities/theme/color_theme.dart @@ -3,12 +3,9 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/theme/dark_colors.dart'; import 'package:stackwallet/utilities/theme/light_colors.dart'; import 'package:stackwallet/utilities/theme/ocean_breeze_colors.dart'; +import 'package:stackwallet/utilities/theme/oled_black_colors.dart'; -enum ThemeType { - light, - dark, - oceanBreeze, -} +enum ThemeType { light, dark, oceanBreeze, oledBlack } extension ThemeTypeExt on ThemeType { StackColorTheme get colorTheme { @@ -19,6 +16,8 @@ extension ThemeTypeExt on ThemeType { return DarkColors(); case ThemeType.oceanBreeze: return OceanBreezeColors(); + case ThemeType.oledBlack: + return OledBlackColors(); } } @@ -30,6 +29,8 @@ extension ThemeTypeExt on ThemeType { return "Dark"; case ThemeType.oceanBreeze: return "Ocean Breeze"; + case ThemeType.oledBlack: + return "Oled Black"; } } } diff --git a/lib/utilities/theme/oled_black_colors.dart b/lib/utilities/theme/oled_black_colors.dart index b29dde318..ca142276b 100644 --- a/lib/utilities/theme/oled_black_colors.dart +++ b/lib/utilities/theme/oled_black_colors.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stackwallet/utilities/theme/color_theme.dart'; -class DarkColors extends StackColorTheme { +class OledBlackColors extends StackColorTheme { @override ThemeType get themeType => ThemeType.dark;