From ab9bcc5d731fb7da92b4e3735c045981e69a9f2f Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 22 Jun 2016 15:53:55 -0300 Subject: [PATCH 1/6] Adds scss file to Grunt watch --- Gruntfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 0bf495857..811946557 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -55,6 +55,10 @@ module.exports = function(grunt) { files: ['src/css/*.css'], tasks: ['concat:css'] }, + sass: { + files: ['src/sass/*.scss'], + tasks: ['sass', 'concat:css'] + }, main: { files: [ 'src/js/init.js', From dc37bcc28e6b81436e97779f8595b2a607b8c349 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 22 Jun 2016 15:55:23 -0300 Subject: [PATCH 2/6] Fix horizontal scroll and layout in Android 4.4.2 --- src/css/ionic-migration.css | 7 ++++--- src/sass/main.scss | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/css/ionic-migration.css b/src/css/ionic-migration.css index ef037078e..759829a57 100644 --- a/src/css/ionic-migration.css +++ b/src/css/ionic-migration.css @@ -71,14 +71,15 @@ right: 0px !important; } -.item-toggle .toggle { - right: 28px; +.item { + margin: 0; + border: none; + border-bottom: 1px solid #E9E9EC; } .toggle-label { color: rgb(41, 55, 68); font-size: 14px; - margin-left: 5px; } button, .button { diff --git a/src/sass/main.scss b/src/sass/main.scss index 1773dde88..ff27ef318 100644 --- a/src/sass/main.scss +++ b/src/sass/main.scss @@ -111,7 +111,7 @@ h4.title a { } .preferences ul li { - padding: 13px 20px; + padding: 16px 10px 16px 16px; border-bottom: 1px solid #E9E9EC; } From c27d7c2c5e7d1ed33efe8f2baf184f36b04617db Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 23 Jun 2016 17:42:05 -0300 Subject: [PATCH 3/6] Fix create/join/import form UI for switches and wide screen --- public/views/create.html | 26 ++-- public/views/import.html | 281 ++++++++++++++++++------------------ public/views/join.html | 2 +- src/css/ionic-migration.css | 5 +- src/sass/main.scss | 4 + 5 files changed, 162 insertions(+), 156 deletions(-) diff --git a/public/views/create.html b/public/views/create.html index 2a009d75a..1680bb34b 100644 --- a/public/views/create.html +++ b/public/views/create.html @@ -8,10 +8,10 @@ diff --git a/public/views/import.html b/public/views/import.html index 8bca7f724..5ce29400c 100644 --- a/public/views/import.html +++ b/public/views/import.html @@ -21,93 +21,98 @@
-
-
-
Could not access the wallet at the server. Please check:
-
    -
  • The password of the recovery phrase (if set) -
  • -
  • The derivation path -
  • -
  • The wallet service URL -
-
- NOTE: To import a wallet from a 3rd party software, please go to Add Wallet > Create Wallet, and specify the Recovery Phrase there.
-
-
-
- -
-
- {{import.error|translate}} -
-
- -
-
- -
- - -
- -
-
-
- - - -
- -
- - - -
- +
+
+
+
+
Could not access the wallet at the server. Please check:
+
    +
  • The password of the recovery phrase (if set) +
  • +
  • The derivation path +
  • +
  • The wallet service URL +
+
+ NOTE: To import a wallet from a 3rd party software, please go to Add Wallet > Create Wallet, and specify the Recovery Phrase there.
-
+
- - +
+
+ {{import.error|translate}} +
+
+
+
+ +
+
+
+ +
+ + +
+ + +
+
+ + + +
+ +
+ + + +
+ + Testnet + +
+
+
+ + +
+
-
- - {{import.error|translate}} - -
-
+
-
- - {{import.error|translate}} - -
-
- + Show advanced options Hide advanced options diff --git a/src/css/ionic-migration.css b/src/css/ionic-migration.css index 759829a57..bd311bb26 100644 --- a/src/css/ionic-migration.css +++ b/src/css/ionic-migration.css @@ -61,10 +61,7 @@ .bct { background-color: transparent !important; - margin-top: -25px; - padding-bottom: 30px; - right: -24px !important; - border-width: 0px; + margin-bottom: 15px !important; } .r0 { diff --git a/src/sass/main.scss b/src/sass/main.scss index ff27ef318..b72e4d541 100644 --- a/src/sass/main.scss +++ b/src/sass/main.scss @@ -715,6 +715,10 @@ ul.manage li { padding: 10px; } +.p10i { + padding: 10px !important; +} + .p10b { padding-bottom: 10px; } From 2873f10fbc16c21a473019c359688890a39022f2 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 23 Jun 2016 17:48:09 -0300 Subject: [PATCH 4/6] Fix float on some devices --- public/views/preferences.html | 6 +++--- public/views/preferencesGlobal.html | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/views/preferences.html b/public/views/preferences.html index 47b0e3606..6aaab77f7 100644 --- a/public/views/preferences.html +++ b/public/views/preferences.html @@ -15,7 +15,7 @@
  • {{index.alias||index.walletName}} - +
    Alias
  • @@ -24,7 +24,7 @@
    Disabled {{index.preferences.email}} - +
    Email Notifications
    @@ -32,7 +32,7 @@
  • - +
    Color
  • diff --git a/public/views/preferencesGlobal.html b/public/views/preferencesGlobal.html index 26a0c695f..0c552b8f4 100644 --- a/public/views/preferencesGlobal.html +++ b/public/views/preferencesGlobal.html @@ -9,7 +9,7 @@
  • {{currentLanguageName|translate}} - +
    Language
  • @@ -20,7 +20,7 @@
  • {{unitName}} - +
    Unit
  • @@ -28,7 +28,7 @@
  • {{selectedAlternative.name}} - +
    Alternative Currency
  • @@ -39,7 +39,7 @@
  • {{feeOpts[currentFeeLevel]|translate}} - +
    Bitcoin Network Fee Policy
  • @@ -81,7 +81,7 @@
    About Copay
    - +

    From 039878d3e00aed94d9006d63e600045482775bac Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 23 Jun 2016 18:03:37 -0300 Subject: [PATCH 5/6] Fix import hardware wallet --- src/js/controllers/import.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/controllers/import.js b/src/js/controllers/import.js index 9ff8defdf..af5a44cd9 100644 --- a/src/js/controllers/import.js +++ b/src/js/controllers/import.js @@ -275,7 +275,6 @@ angular.module('copayApp.controllers').controller('importController', } account = account - 1; } - var isMultisig = form.isMultisig.$modelValue; switch (self.seedSourceId) { case ('ledger'): @@ -284,7 +283,7 @@ angular.module('copayApp.controllers').controller('importController', break; case ('trezor'): ongoingProcess.set('connectingtrezor', true); - self.importTrezor(account, isMultisig); + self.importTrezor(account, $scope.isMultisig); break; default: throw ('Error: bad source id'); From ff65df6847185ec2c3a65c4364d9c1e1b31801ad Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 24 Jun 2016 14:19:31 -0300 Subject: [PATCH 6/6] Removes ionic.platform.fullscreen --- src/js/routes.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/js/routes.js b/src/js/routes.js index 7dae27585..55f1581ee 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -536,8 +536,6 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr $ionicPlatform.ready(function() { if (platformInfo.isCordova) { - ionic.Platform.fullScreen(true, false); - $ionicPlatform.registerBackButtonAction(function(event) { event.preventDefault(); }, 100);