change color wallet default
This commit is contained in:
parent
583e0cc15a
commit
d9a4967c71
5 changed files with 4 additions and 5 deletions
|
|
@ -149,7 +149,6 @@ _:-ms-fullscreen, :root .main {
|
||||||
}
|
}
|
||||||
|
|
||||||
.amount {
|
.amount {
|
||||||
background-color: #1ABC9C;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 3rem 1rem;
|
padding: 3rem 1rem;
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.updateColor = function() {
|
self.updateColor = function() {
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
config.colorFor = config.colorFor || {};
|
config.colorFor = config.colorFor || {};
|
||||||
self.backgroundColor = config.colorFor[self.walletId] || '#1ABC9C';
|
self.backgroundColor = config.colorFor[self.walletId] || '#2C3E50';
|
||||||
var fc = profileService.focusedClient;
|
var fc = profileService.focusedClient;
|
||||||
fc.backgroundColor = self.backgroundColor;
|
fc.backgroundColor = self.backgroundColor;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ angular.module('copayApp.controllers').controller('preferencesColorController',
|
||||||
|
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
config.colorFor = config.colorFor || {};
|
config.colorFor = config.colorFor || {};
|
||||||
this.color = config.colorFor[walletId] || '#1ABC9C';
|
this.color = config.colorFor[walletId] || '#2C3E50';
|
||||||
|
|
||||||
this.save = function(color) {
|
this.save = function(color) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ angular.module('copayApp.controllers').controller('sidebarController',
|
||||||
n: c.n,
|
n: c.n,
|
||||||
name: c.walletName,
|
name: c.walletName,
|
||||||
id: c.walletId,
|
id: c.walletId,
|
||||||
color: config.colorFor[c.walletId] || '#1ABC9C',
|
color: config.colorFor[c.walletId] || '#2C3E50',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
self.wallets = lodash.sortBy(ret, 'walletName');
|
self.wallets = lodash.sortBy(ret, 'walletName');
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ angular.module('copayApp.services')
|
||||||
|
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
config.colorFor = config.colorFor || {};
|
config.colorFor = config.colorFor || {};
|
||||||
var color = config.colorFor[walletId] || '#1ABC9C';
|
var color = config.colorFor[walletId] || '#2C3E50';
|
||||||
|
|
||||||
switch (notificationData.type) {
|
switch (notificationData.type) {
|
||||||
case 'NewTxProposal':
|
case 'NewTxProposal':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue