mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 19:05:51 +00:00
oledBlack theme added to desktop
This commit is contained in:
parent
7aad7cb9e3
commit
23e3452cf1
5 changed files with 102 additions and 93 deletions
|
@ -59,6 +59,7 @@ import 'package:stackwallet/utilities/theme/color_theme.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';
|
||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:window_size/window_size.dart';
|
||||
|
@ -75,7 +76,6 @@ void main() async {
|
|||
if (Platform.isIOS) {
|
||||
Util.libraryPath = await getLibraryDirectory();
|
||||
}
|
||||
|
||||
Screen? screen;
|
||||
if (Platform.isLinux || (Util.isDesktop && !Platform.isIOS)) {
|
||||
screen = await getCurrentScreen();
|
||||
|
@ -323,6 +323,9 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
|||
case "dark":
|
||||
colorTheme = DarkColors();
|
||||
break;
|
||||
case "oledBlack":
|
||||
colorTheme = OledBlackColors();
|
||||
break;
|
||||
case "oceanBreeze":
|
||||
colorTheme = OceanBreezeColors();
|
||||
break;
|
||||
|
|
|
@ -35,7 +35,9 @@ class _AppearanceOptionSettings
|
|||
),
|
||||
child: RoundedWhiteContainer(
|
||||
radiusMultiplier: 2,
|
||||
child: Column(
|
||||
child: Wrap(
|
||||
children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
|
@ -96,8 +98,8 @@ class _AppearanceOptionSettings
|
|||
width: 40,
|
||||
child: DraggableSwitchButton(
|
||||
isOn: ref.watch(
|
||||
prefsChangeNotifierProvider
|
||||
.select((value) => value.showFavoriteWallets),
|
||||
prefsChangeNotifierProvider.select(
|
||||
(value) => value.showFavoriteWallets),
|
||||
),
|
||||
onValueChanged: (newValue) {
|
||||
ref
|
||||
|
@ -132,12 +134,14 @@ class _AppearanceOptionSettings
|
|||
],
|
||||
),
|
||||
),
|
||||
const Padding(
|
||||
Padding(
|
||||
padding: EdgeInsets.all(10),
|
||||
child: ThemeToggle(),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
@ -33,6 +33,7 @@ class _SVG {
|
|||
switch (Theme.of(context).extension<StackColors>()!.themeType) {
|
||||
case ThemeType.light:
|
||||
case ThemeType.dark:
|
||||
case ThemeType.oledBlack:
|
||||
return null;
|
||||
|
||||
case ThemeType.oceanBreeze:
|
||||
|
|
|
@ -3,7 +3,7 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
|
||||
class OledBlackColors extends StackColorTheme {
|
||||
@override
|
||||
ThemeType get themeType => ThemeType.dark;
|
||||
ThemeType get themeType => ThemeType.oledBlack;
|
||||
|
||||
@override
|
||||
Color get background => const Color(0xFF000000);
|
||||
|
|
|
@ -20,6 +20,7 @@ class Background extends StatelessWidget {
|
|||
switch (Theme.of(context).extension<StackColors>()!.themeType) {
|
||||
case ThemeType.light:
|
||||
case ThemeType.dark:
|
||||
case ThemeType.oledBlack:
|
||||
color = Theme.of(context).extension<StackColors>()!.background;
|
||||
break;
|
||||
case ThemeType.oceanBreeze:
|
||||
|
|
Loading…
Reference in a new issue