Merge pull request #5078 from bitjson/visual

fix visual bugs
This commit is contained in:
Jason Dreyzehner 2016-11-17 18:30:33 -05:00 committed by GitHub
commit 541d28a63d
13 changed files with 28 additions and 12 deletions

View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('advancedSettingsController', function($scope, $rootScope, $log, $window, lodash, configService, uxLanguage, platformInfo, pushNotificationsService, profileService, feeService, storageService, $ionicHistory, $timeout) { angular.module('copayApp.controllers').controller('advancedSettingsController', function($scope, $rootScope, $log, $window, lodash, configService, uxLanguage, platformInfo, pushNotificationsService, profileService, feeService, storageService, $ionicHistory, $timeout, $ionicScrollDelegate) {
var updateConfig = function() { var updateConfig = function() {
@ -27,14 +27,19 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
$scope.frequentlyUsedEnabled = { $scope.frequentlyUsedEnabled = {
value: config.frequentlyUsed.enabled value: config.frequentlyUsed.enabled
}; };
$scope.developmentUtilitiesEnabled = {
value: false
};
}; };
$scope.global = $rootScope;
if(!$scope.global.developmentUtilitiesEnabled){
$scope.global.developmentUtilitiesEnabled = {
value: false
};
}
$scope.toggledDevelopmentUtils = function (){ $scope.toggledDevelopmentUtils = function (){
if($scope.developmentUtilitiesEnabled.value){ if($scope.global.developmentUtilitiesEnabled.value){
$log.debug('User enabled development utilities.'); $log.debug('User enabled development utilities.');
$ionicScrollDelegate.resize();
} else { } else {
$log.debug('User disabled development utilities.'); $log.debug('User disabled development utilities.');
} }
@ -54,6 +59,9 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
$timeout(function(){ $timeout(function(){
$scope.feedbackCardActivating = false; $scope.feedbackCardActivating = false;
$scope.feedbackCardActivated = true; $scope.feedbackCardActivated = true;
$timeout(function(){
$scope.feedbackCardActivated = false;
}, 10000);
}, 500); }, 500);
}); });
}); });

View file

@ -41,7 +41,7 @@ $placeholder-icon-padding: 10px;
// A somewhat dirty solution to the nav-bar "flashing" during page transitions. // A somewhat dirty solution to the nav-bar "flashing" during page transitions.
// Since the old nav-bar is hidden before the new one is shown, this pseudo // Since the old nav-bar is hidden before the new one is shown, this pseudo
// element fills the space with the proper background color. // element fills the space with the proper background color.
ion-view.pane:before { ion-view.deflash-blue:before {
content: " "; content: " ";
display: block; display: block;
position: absolute; position: absolute;
@ -51,6 +51,6 @@ ion-view.pane:before {
height: $bar-height; height: $bar-height;
background-color: $royal; background-color: $royal;
} }
.platform-ios ion-view.pane:before { .platform-ios.platform-cordova:not(.fullscreen) ion-view.deflash-blue:before {
height: $bar-height + $ios-statusbar-height; height: $bar-height + $ios-statusbar-height;
} }

View file

@ -20,6 +20,7 @@
} }
} }
#view-address-book { #view-address-book {
@extend .deflash-blue;
.scroll { .scroll {
height:100%; height:100%;
} }

View file

@ -1,4 +1,5 @@
#view-amount { #view-amount {
@extend .deflash-blue;
.recipient-label { .recipient-label {
font-size: 14px; font-size: 14px;
padding-bottom: 0; padding-bottom: 0;

View file

@ -1,4 +1,5 @@
#view-confirm { #view-confirm {
@extend .deflash-blue;
.tx-details-content > .scroll { .tx-details-content > .scroll {
padding-bottom: .25rem; padding-bottom: .25rem;
} }

View file

@ -31,7 +31,7 @@
margin: 1rem; margin: 1rem;
} }
.send-feedback-illustration { .send-feedback-illustration {
height: 21rem; height: 16rem;
margin: 1rem; margin: 1rem;
} }
.feedback-title { .feedback-title {

View file

@ -1,4 +1,5 @@
#send-feedback { #send-feedback {
@extend .deflash-blue;
background-color: #ffffff; background-color: #ffffff;
.row { .row {
border: none; border: none;

View file

@ -1,4 +1,5 @@
#tab-home { #tab-home {
@extend .deflash-blue;
.icon-create-wallet { .icon-create-wallet {
background-color: #4A90E2; // default wallet color background-color: #4A90E2; // default wallet color
} }

View file

@ -1,4 +1,5 @@
#tab-receive { #tab-receive {
@extend .deflash-blue;
ion-header-bar { ion-header-bar {
button { button {
i { i {

View file

@ -1,4 +1,5 @@
#tab-send { #tab-send {
@extend .deflash-blue;
.qr-scan-icon a { .qr-scan-icon a {
z-index: 10; z-index: 10;
display: block; display: block;

View file

@ -1,4 +1,5 @@
.settings { .settings {
@extend .deflash-blue;
.item { .item {
color: $dark-gray; color: $dark-gray;
border-color: rgba(221, 221, 221, 0.3); border-color: rgba(221, 221, 221, 0.3);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Before After
Before After

View file

@ -51,7 +51,7 @@
If enabled, the Recent Transactions card - a list of transactions occuring across all wallets - will appear in the Home tab. If enabled, the Recent Transactions card - a list of transactions occuring across all wallets - will appear in the Home tab.
</div> </div>
<ion-toggle class="has-comment" ng-model="developmentUtilitiesEnabled.value" toggle-class="toggle-balanced" ng-change="toggledDevelopmentUtils()"> <ion-toggle class="has-comment" ng-model="global.developmentUtilitiesEnabled.value" toggle-class="toggle-balanced" ng-change="toggledDevelopmentUtils()">
<span class="toggle-label" translate>Development Utilities</span> <span class="toggle-label" translate>Development Utilities</span>
</ion-toggle> </ion-toggle>
<div class="comment" translate> <div class="comment" translate>
@ -67,7 +67,7 @@
<span transaction>If enabled, the Frequently Used card - a list of the most commonly chosen recipients - will appear in the Send tab.</span> <span transaction>If enabled, the Frequently Used card - a list of the most commonly chosen recipients - will appear in the Send tab.</span>
</div> --> </div> -->
<div ng-show="developmentUtilitiesEnabled.value"> <div ng-show="global.developmentUtilitiesEnabled.value">
<div class="item item-divider" translate>Development Utilities</div> <div class="item item-divider" translate>Development Utilities</div>
<div class="settings-explanation"> <div class="settings-explanation">
<div class="settings-description" translate> <div class="settings-description" translate>
@ -77,13 +77,13 @@
<div class="item has-comment item-button-right"> <div class="item has-comment item-button-right">
Feedback Card Feedback Card
<button class="button" ng-click="activateFeedbackCard()" ng-show="!feedbackCardActivating && !feedbackCardActivated"> <button class="button button-secondary" ng-click="activateFeedbackCard()" ng-show="!feedbackCardActivating && !feedbackCardActivated">
Activate Activate
</button> </button>
<button class="button button-clear" disabled ng-show="feedbackCardActivating"> <button class="button button-secondary button-clear" disabled ng-show="feedbackCardActivating">
<ion-spinner></ion-spinner> <ion-spinner></ion-spinner>
</button> </button>
<button class="button" ng-show="feedbackCardActivated" ng-click="resetActivateFeedbackCard()"> <button class="button button-secondary button-clear" ng-show="feedbackCardActivated" ng-click="resetActivateFeedbackCard()">
Activated Activated
</button> </button>
</div> </div>