Change top-bar color
This commit is contained in:
parent
486b24eeb1
commit
0c06a3d460
17 changed files with 60 additions and 76 deletions
|
|
@ -42,6 +42,7 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
|
|||
var ModalInstanceCtrl = function($scope, $modalInstance) {
|
||||
$scope.type = 'BUY';
|
||||
$scope.wallets = wallets;
|
||||
$scope.noColor = true;
|
||||
$scope.cancel = function() {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ angular.module('copayApp.controllers').controller('glideraController',
|
|||
$scope.tx = tx;
|
||||
$scope.settings = config;
|
||||
$scope.color = fc.backgroundColor;
|
||||
$scope.noColor = true;
|
||||
|
||||
glideraService.getTransaction(token, tx.transactionUuid, function(error, tx) {
|
||||
$scope.tx = tx;
|
||||
|
|
|
|||
|
|
@ -562,6 +562,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
self.backgroundColor = config.colorFor[self.walletId] || '#4A90E2';
|
||||
var fc = profileService.focusedClient;
|
||||
fc.backgroundColor = self.backgroundColor;
|
||||
if (isCordova && StatusBar.isVisible) {
|
||||
StatusBar.backgroundColorByHexString(fc.backgroundColor);
|
||||
}
|
||||
};
|
||||
|
||||
self.setBalance = function(balance) {
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
|
|||
var ModalInstanceCtrl = function($scope, $modalInstance) {
|
||||
$scope.type = 'SELL';
|
||||
$scope.wallets = wallets;
|
||||
$scope.noColor = true;
|
||||
$scope.cancel = function() {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,17 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('topbarController', function($scope, $rootScope, go) {
|
||||
|
||||
this.onQrCodeScanned = function(data) {
|
||||
$rootScope.$emit('dataScanned', data);
|
||||
};
|
||||
|
||||
this.openSendScreen = function() {
|
||||
go.send();
|
||||
};
|
||||
angular.module('copayApp.controllers').controller('topbarController', function(go) {
|
||||
|
||||
this.goHome = function() {
|
||||
go.walletHome();
|
||||
};
|
||||
|
||||
this.goPreferences = function() {
|
||||
go.preferences();
|
||||
};
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog, nodeWebkit, addressService, ledger, feeService, bwsError, confirmDialog, txFormatService, animationService, addressbookService) {
|
||||
angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog, nodeWebkit, addressService, ledger, feeService, bwsError, confirmDialog, txFormatService, animationService, addressbookService, go) {
|
||||
|
||||
var self = this;
|
||||
$rootScope.hideMenuBar = false;
|
||||
|
|
@ -98,6 +98,14 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
}
|
||||
};
|
||||
|
||||
this.onQrCodeScanned = function(data) {
|
||||
$rootScope.$emit('dataScanned', data);
|
||||
};
|
||||
|
||||
this.openSendScreen = function() {
|
||||
go.send();
|
||||
};
|
||||
|
||||
rateService.whenAvailable(function() {
|
||||
self.isRateAvailable = true;
|
||||
$rootScope.$digest();
|
||||
|
|
@ -122,7 +130,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
'address': ($scope.newAddress || ''),
|
||||
'label': ''
|
||||
};
|
||||
$scope.color = fc.backgroundColor;
|
||||
|
||||
$scope.beforeQrCodeScann = function() {
|
||||
$scope.error = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue