mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
Changed The QRCode background color from Navy Blue to Black in dark mode.
This commit is contained in:
parent
a158836972
commit
73338728fb
3 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ class AddressPage extends StatelessWidget {
|
||||||
addressListViewModel: addressListViewModel,
|
addressListViewModel: addressListViewModel,
|
||||||
amountTextFieldFocusNode: _cryptoAmountFocus,
|
amountTextFieldFocusNode: _cryptoAmountFocus,
|
||||||
isAmountFieldShow: !addressListViewModel.hasAccounts,
|
isAmountFieldShow: !addressListViewModel.hasAccounts,
|
||||||
isBright: walletViewModel.settingsStore.currentTheme.type == ThemeType.bright))
|
isLight: walletViewModel.settingsStore.currentTheme.type == ThemeType.light))
|
||||||
),
|
),
|
||||||
Observer(builder: (_) {
|
Observer(builder: (_) {
|
||||||
return addressListViewModel.hasAddressList
|
return addressListViewModel.hasAddressList
|
||||||
|
|
|
@ -129,7 +129,7 @@ class ReceivePage extends BasePage {
|
||||||
addressListViewModel: addressListViewModel,
|
addressListViewModel: addressListViewModel,
|
||||||
isAmountFieldShow: true,
|
isAmountFieldShow: true,
|
||||||
amountTextFieldFocusNode: _cryptoAmountFocus,
|
amountTextFieldFocusNode: _cryptoAmountFocus,
|
||||||
isBright: currentTheme.type == ThemeType.bright),
|
isLight: currentTheme.type == ThemeType.light),
|
||||||
),
|
),
|
||||||
Observer(
|
Observer(
|
||||||
builder: (_) => ListView.separated(
|
builder: (_) => ListView.separated(
|
||||||
|
|
|
@ -14,7 +14,7 @@ class QRWidget extends StatelessWidget {
|
||||||
{@required this.addressListViewModel,
|
{@required this.addressListViewModel,
|
||||||
this.isAmountFieldShow = false,
|
this.isAmountFieldShow = false,
|
||||||
this.amountTextFieldFocusNode,
|
this.amountTextFieldFocusNode,
|
||||||
this.isBright})
|
this.isLight})
|
||||||
: amountController = TextEditingController(),
|
: amountController = TextEditingController(),
|
||||||
_formKey = GlobalKey<FormState>() {
|
_formKey = GlobalKey<FormState>() {
|
||||||
amountController.addListener(() => addressListViewModel.amount =
|
amountController.addListener(() => addressListViewModel.amount =
|
||||||
|
@ -26,7 +26,7 @@ class QRWidget extends StatelessWidget {
|
||||||
final TextEditingController amountController;
|
final TextEditingController amountController;
|
||||||
final FocusNode amountTextFieldFocusNode;
|
final FocusNode amountTextFieldFocusNode;
|
||||||
final GlobalKey<FormState> _formKey;
|
final GlobalKey<FormState> _formKey;
|
||||||
final bool isBright;
|
final bool isLight;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -57,7 +57,7 @@ class QRWidget extends StatelessWidget {
|
||||||
),
|
),
|
||||||
child: QrImage(
|
child: QrImage(
|
||||||
data: addressListViewModel.uri.toString(),
|
data: addressListViewModel.uri.toString(),
|
||||||
backgroundColor: isBright ? Colors.black : Colors.transparent,
|
backgroundColor: isLight ? Colors.transparent : Colors.black,
|
||||||
foregroundColor: Theme.of(context).accentTextTheme.
|
foregroundColor: Theme.of(context).accentTextTheme.
|
||||||
display3.backgroundColor,
|
display3.backgroundColor,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue