diff --git a/cyberwow/lib/config/cyberwow.dart b/cyberwow/lib/config/cyberwow.dart index 763eb35..e6d9fd2 100644 --- a/cyberwow/lib/config/cyberwow.dart +++ b/cyberwow/lib/config/cyberwow.dart @@ -19,6 +19,8 @@ along with CyberWOW. If not, see . */ +import 'package:flutter/material.dart'; + import 'prototype.dart'; final config = CryptoConfig @@ -26,4 +28,6 @@ final config = CryptoConfig 'wownerod', 'wownerod', 'Follow the white rabbit.', + Colors.green.withOpacity(1.0), + Colors.black, ); diff --git a/cyberwow/lib/config/prototype.dart b/cyberwow/lib/config/prototype.dart index 1a527a8..bdcd72b 100644 --- a/cyberwow/lib/config/prototype.dart +++ b/cyberwow/lib/config/prototype.dart @@ -19,14 +19,20 @@ along with CyberWOW. If not, see . */ +import 'package:flutter/material.dart'; + class CryptoConfig { final String outputBin; final String appPath; final String splash; + final Color textColor; + final Color backgroundColor; CryptoConfig ( this.outputBin, this.appPath, this.splash, + this.textColor, + this.backgroundColor, ); } diff --git a/cyberwow/lib/widget/blank.dart b/cyberwow/lib/widget/blank.dart index 28e0da4..91d4450 100644 --- a/cyberwow/lib/widget/blank.dart +++ b/cyberwow/lib/widget/blank.dart @@ -22,12 +22,13 @@ along with CyberWOW. If not, see . import 'package:flutter/material.dart'; import '../state.dart'; +import '../config.dart'; Widget buildBlank(BuildContext context, BlankState state) { return Scaffold( body: new Container ( - color: Colors.black, + color: config.backgroundColor, ), ); } diff --git a/cyberwow/lib/widget/loading.dart b/cyberwow/lib/widget/loading.dart index 0aea902..6e5e8de 100644 --- a/cyberwow/lib/widget/loading.dart +++ b/cyberwow/lib/widget/loading.dart @@ -22,6 +22,7 @@ along with CyberWOW. If not, see . import 'package:flutter/material.dart'; import '../state.dart'; +import '../config.dart'; Widget buildLoading(BuildContext context, LoadingState state) { return Scaffold( @@ -32,7 +33,7 @@ Widget buildLoading(BuildContext context, LoadingState state) { body: new Container ( padding: const EdgeInsets.all(10.0), - color: Colors.black, + color: config.backgroundColor, child: Align ( alignment: Alignment.topLeft, @@ -54,7 +55,7 @@ Widget buildLoading(BuildContext context, LoadingState state) { fontFamily: 'RobotoMono', fontSize: 17, fontWeight: FontWeight.bold, - color: Colors.green.withOpacity(1.0), + color: config.textColor, ), ) ) diff --git a/cyberwow/lib/widget/running.dart b/cyberwow/lib/widget/running.dart index 836026c..5afc6d5 100644 --- a/cyberwow/lib/widget/running.dart +++ b/cyberwow/lib/widget/running.dart @@ -22,6 +22,7 @@ along with CyberWOW. If not, see . import 'package:flutter/material.dart'; import '../state.dart'; +import '../config.dart'; Widget buildRunning(BuildContext context, RunningState state) { return Scaffold @@ -34,7 +35,7 @@ Widget buildRunning(BuildContext context, RunningState state) { body: new Container ( // padding: const EdgeInsets.all(10.0), - color: Colors.black, + color: config.backgroundColor, child: Align ( alignment: Alignment.topLeft, @@ -57,7 +58,7 @@ Widget buildRunning(BuildContext context, RunningState state) { ( fontFamily: 'RobotoMono', fontSize: 11, - color: Colors.green.withOpacity(1.0), + color: config.textColor, ), ) )