From daefd88f62117f543b660ef1117b12bfc6851f52 Mon Sep 17 00:00:00 2001 From: Anton Chupak Date: Thu, 15 Nov 2018 15:27:39 +0200 Subject: [PATCH] Copy button updates - change button postion - add hover - change size - fix handler --- src/gui/qt-daemon/html/files/copy-content-blue.svg | 7 +++++++ src/gui/qt-daemon/html/files/main.js | 1 + src/gui/qt-daemon/html/files/style.css | 10 +++++++--- src/gui/qt-daemon/html/index.html | 5 +++-- 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 src/gui/qt-daemon/html/files/copy-content-blue.svg diff --git a/src/gui/qt-daemon/html/files/copy-content-blue.svg b/src/gui/qt-daemon/html/files/copy-content-blue.svg new file mode 100644 index 00000000..d6f677aa --- /dev/null +++ b/src/gui/qt-daemon/html/files/copy-content-blue.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/src/gui/qt-daemon/html/files/main.js b/src/gui/qt-daemon/html/files/main.js index a702ff87..eebf1677 100644 --- a/src/gui/qt-daemon/html/files/main.js +++ b/src/gui/qt-daemon/html/files/main.js @@ -755,6 +755,7 @@ $(function() $( "#synchronization_progressbar" ).progressbar({value: false }); $( "#wallet_progressbar" ).progressbar({value: false }); $(".common_button").button(); + $("#copy-wallet").on('click', on_copy_wallet); $("#open_wallet_button").button("disable"); $("#generate_wallet_button").button("disable"); diff --git a/src/gui/qt-daemon/html/files/style.css b/src/gui/qt-daemon/html/files/style.css index bb461aff..7e92418f 100644 --- a/src/gui/qt-daemon/html/files/style.css +++ b/src/gui/qt-daemon/html/files/style.css @@ -740,17 +740,21 @@ input:focus { .btn-icon { position: relative; - top: 8px; + top: 2px; margin-right: 10px; display: inline-block; - width: 22px; - height: 22px; + width: 14px; + height: 14px; background-image: url('../files/copy-content.svg'); background-size: cover; background-position: center; cursor: pointer; } +.btn-icon:hover { + background-image: url('../files/copy-content-blue.svg'); +} + .btn-group { float: right; margin-left: 480px; diff --git a/src/gui/qt-daemon/html/index.html b/src/gui/qt-daemon/html/index.html index a0b191e2..019586bd 100644 --- a/src/gui/qt-daemon/html/index.html +++ b/src/gui/qt-daemon/html/index.html @@ -113,7 +113,9 @@ C:\home\projects\boolberry\build\src\Release\wallet.bin
Address: - 1HNJjUsofq5LYLoXem119dd491yFAb5g4bCHkecV4sPqigmuxw57Ci9am71fEN4CRmA9jgnvo5PDNfaq8QnprWmS5uLqnbq
+ + +
Synchronizing wallet... @@ -125,7 +127,6 @@ Synced
-
Close wallet