electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 268d7ba3b5e6e221c1161d766ef10f7bcc29c269
parent c168a5a96a2d2a9284656b603cc9e6cd164e1608
Author: ecdsa <ecdsa@github>
Date:   Sun, 17 Mar 2013 00:18:46 +0100

unlock icon

Diffstat:
Mgui/gui_classic.py | 8+++++++-
Micons.qrc | 1+
Aicons/unlock.png | 0
Aicons/unlock.svg | 508+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 516 insertions(+), 1 deletion(-)

diff --git a/gui/gui_classic.py b/gui/gui_classic.py @@ -1178,7 +1178,9 @@ class ElectrumWindow(QMainWindow): if (int(qtVersion[0]) >= 4 and int(qtVersion[2]) >= 7): sb.addPermanentWidget( StatusBarButton( QIcon(":icons/switchgui.png"), _("Switch to Lite Mode"), self.go_lite ) ) if self.wallet.seed: - sb.addPermanentWidget( StatusBarButton( QIcon(":icons/lock.png"), _("Password"), lambda: self.change_password_dialog(self.wallet, self) ) ) + self.lock_icon = QIcon(":icons/lock.png") if self.wallet.use_encryption else QIcon(":icons/unlock.png") + self.password_button = StatusBarButton( self.lock_icon, _("Password"), lambda: self.change_password_dialog(self.wallet, self) ) + sb.addPermanentWidget( self.password_button ) sb.addPermanentWidget( StatusBarButton( QIcon(":icons/preferences.png"), _("Preferences"), self.settings_dialog ) ) if self.wallet.seed: sb.addPermanentWidget( StatusBarButton( QIcon(":icons/seed.png"), _("Seed"), self.show_seed_dialog ) ) @@ -1553,6 +1555,10 @@ class ElectrumWindow(QMainWindow): return ElectrumWindow.change_password_dialog(wallet, parent) # Retry wallet.update_password(seed, password, new_password) + if parent: + icon = QIcon(":icons/lock.png") if wallet.use_encryption else QIcon(":icons/unlock.png") + parent.password_button.setIcon( icon ) + @staticmethod def seed_dialog(wallet, parent=None): diff --git a/icons.qrc b/icons.qrc @@ -8,6 +8,7 @@ <file>icons/clock5.png</file> <file>icons/confirmed.png</file> <file>icons/lock.png</file> + <file>icons/unlock.png</file> <file>icons/preferences.png</file> <file>icons/seed.png</file> <file>icons/status_connected.png</file> diff --git a/icons/unlock.png b/icons/unlock.png Binary files differ. diff --git a/icons/unlock.svg b/icons/unlock.svg @@ -0,0 +1,508 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + version="1.0" + width="22" + height="22" + id="svg2" + inkscape:version="0.47 r22583" + sodipodi:docname="unlock.svg"> + <metadata + id="metadata58"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="989" + inkscape:window-height="722" + id="namedview56" + showgrid="false" + inkscape:zoom="10.727273" + inkscape:cx="11" + inkscape:cy="11.670999" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="0" + inkscape:current-layer="svg2" /> + <defs + id="defs4"> + <linearGradient + id="linearGradient2878"> + <stop + offset="0" + style="stop-color:#fee7b1;stop-opacity:1" + id="stop2880" /> + <stop + offset="0.25796592" + style="stop-color:#ebd4b4;stop-opacity:1" + id="stop2882" /> + <stop + offset="0.50796592" + style="stop-color:#c8a775;stop-opacity:1" + id="stop2884" /> + <stop + offset="0.74009573" + style="stop-color:#b0935b;stop-opacity:1" + id="stop2886" /> + <stop + offset="1" + style="stop-color:#fcebbf;stop-opacity:1" + id="stop2888" /> + </linearGradient> + <inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="0 : 11 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="22 : 11 : 1" + inkscape:persp3d-origin="11 : 7.3333333 : 1" + id="perspective60" /> + <linearGradient + id="linearGradient2411"> + <stop + id="stop2413" + style="stop-color:#fee7b1;stop-opacity:1" + offset="0" /> + <stop + id="stop2419" + style="stop-color:#ebd4b4;stop-opacity:1" + offset="0.25796592" /> + <stop + id="stop2421" + style="stop-color:#c8a775;stop-opacity:1" + offset="0.50796592" /> + <stop + id="stop2423" + style="stop-color:#b0935b;stop-opacity:1" + offset="0.74009573" /> + <stop + id="stop2415" + style="stop-color:#fcebbf;stop-opacity:1" + offset="1" /> + </linearGradient> + <linearGradient + x1="6.72682" + y1="32.161697" + x2="40.938126" + y2="32.161697" + id="linearGradient2576" + xlink:href="#linearGradient2411" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4857987,0,0,0.5667573,-0.657656,-4.7557638)" /> + <linearGradient + id="linearGradient9845"> + <stop + id="stop9847" + style="stop-color:white;stop-opacity:1" + offset="0" /> + <stop + id="stop9849" + style="stop-color:white;stop-opacity:0.49484536" + offset="1" /> + </linearGradient> + <linearGradient + x1="10.907269" + y1="25.002281" + x2="30.875446" + y2="36.127281" + id="linearGradient2573" + xlink:href="#linearGradient9845" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4541292,0,0,0.5078849,0.107594,-1.9931168)" /> + <linearGradient + id="linearGradient5881"> + <stop + id="stop5883" + style="stop-color:#d6c8a7;stop-opacity:1" + offset="0" /> + <stop + id="stop5885" + style="stop-color:#d0bd99;stop-opacity:1" + offset="1" /> + </linearGradient> + <linearGradient + x1="24.875" + y1="21" + x2="24.75" + y2="17" + id="linearGradient2570" + xlink:href="#linearGradient5881" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4705882,0,0,0.807484,-0.294082,-6.1887078)" /> + <linearGradient + id="linearGradient12071"> + <stop + id="stop12073" + style="stop-color:white;stop-opacity:1" + offset="0" /> + <stop + id="stop12075" + style="stop-color:white;stop-opacity:0" + offset="1" /> + </linearGradient> + <linearGradient + x1="21.941509" + y1="21.550869" + x2="21.941509" + y2="18.037588" + id="linearGradient2567" + xlink:href="#linearGradient12071" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4545455,0,0,0.2515938,0.090945,5.0971072)" /> + <filter + x="-0.49411765" + y="-0.082352944" + width="1.9882354" + height="1.1647059" + color-interpolation-filters="sRGB" + id="filter5957"> + <feGaussianBlur + id="feGaussianBlur5959" + stdDeviation="0.69878785" /> + </filter> + <radialGradient + cx="15.9375" + cy="20.3125" + r="3.3125" + fx="15.9375" + fy="20.3125" + id="radialGradient2563" + xlink:href="#linearGradient6075" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7547171,0,0,0.3566673,-5.528266,1.0326108)" /> + <linearGradient + id="linearGradient6075"> + <stop + id="stop6077" + style="stop-color:black;stop-opacity:1" + offset="0" /> + <stop + id="stop6079" + style="stop-color:black;stop-opacity:0" + offset="1" /> + </linearGradient> + <radialGradient + cx="15.9375" + cy="20.3125" + r="3.3125" + fx="15.9375" + fy="20.3125" + id="radialGradient2560" + xlink:href="#linearGradient6075" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7547175,0,0,0.3566673,3.471729,1.0326108)" /> + <linearGradient + id="linearGradient10591"> + <stop + id="stop10593" + style="stop-color:#cad0c6;stop-opacity:1" + offset="0" /> + <stop + id="stop10599" + style="stop-color:#eaece9;stop-opacity:1" + offset="0.5" /> + <stop + id="stop10595" + style="stop-color:#c5cbc0;stop-opacity:1" + offset="1" /> + </linearGradient> + <linearGradient + x1="10.650842" + y1="2.9136841" + x2="27.192274" + y2="17.470011" + id="linearGradient2557" + xlink:href="#linearGradient10591" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4093677,0,0,0.4456702,1.146515,-1.679622)" /> + <linearGradient + x1="35.004684" + y1="14.849737" + x2="33.004314" + y2="14.849737" + id="linearGradient2580" + xlink:href="#linearGradient6227" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(1.6824037,1.125)" /> + <filter + x="-0.24242526" + y="-0.047579072" + width="1.4848505" + height="1.0951581" + color-interpolation-filters="sRGB" + id="filter6251"> + <feGaussianBlur + id="feGaussianBlur6253" + stdDeviation="0.24444548" /> + </filter> + <linearGradient + id="linearGradient6227"> + <stop + id="stop6229" + style="stop-color:black;stop-opacity:1" + offset="0" /> + <stop + id="stop6231" + style="stop-color:black;stop-opacity:0" + offset="1" /> + </linearGradient> + <linearGradient + x1="32.128025" + y1="13.789077" + x2="35.020981" + y2="13.789077" + id="linearGradient2578" + xlink:href="#linearGradient6227" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(-19.532826,1.7437184)" /> + <filter + color-interpolation-filters="sRGB" + id="filter5745"> + <feGaussianBlur + id="feGaussianBlur5747" + stdDeviation="0.8362597" /> + </filter> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2411" + id="linearGradient3667" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4857987,0,0,0.5667573,-0.657656,-4.7557638)" + x1="6.72682" + y1="32.161697" + x2="40.938126" + y2="32.161697" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient9845" + id="linearGradient3669" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4541292,0,0,0.5078849,0.107594,-1.9931168)" + x1="10.907269" + y1="25.002281" + x2="30.875446" + y2="36.127281" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient5881" + id="linearGradient3671" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4705882,0,0,0.807484,-0.294082,-6.1887078)" + x1="24.875" + y1="21" + x2="24.75" + y2="17" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient12071" + id="linearGradient3673" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4545455,0,0,0.2515938,0.090945,5.0971072)" + x1="21.941509" + y1="21.550869" + x2="21.941509" + y2="18.037588" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient6075" + id="radialGradient3675" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7547171,0,0,0.3566673,-5.528266,1.0326108)" + cx="15.9375" + cy="20.3125" + fx="15.9375" + fy="20.3125" + r="3.3125" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient6075" + id="radialGradient3677" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7547175,0,0,0.3566673,3.471729,1.0326108)" + cx="15.9375" + cy="20.3125" + fx="15.9375" + fy="20.3125" + r="3.3125" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient10591" + id="linearGradient3679" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4093677,0,0,0.4456702,1.146515,-1.679622)" + x1="10.650842" + y1="2.9136841" + x2="27.192274" + y2="17.470011" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient6227" + id="linearGradient3681" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(1.6824037,1.125)" + x1="35.004684" + y1="14.849737" + x2="33.004314" + y2="14.849737" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient6227" + id="linearGradient3683" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(-19.532826,1.7437184)" + x1="32.128025" + y1="13.789077" + x2="35.020981" + y2="13.789077" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient10591" + id="linearGradient3689" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4093677,0,0,0.4456702,1.146515,-1.679622)" + x1="10.650842" + y1="2.9136841" + x2="27.192274" + y2="17.470011" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient6075" + id="radialGradient3692" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7547175,0,0,0.3566673,3.471729,1.0326108)" + cx="15.9375" + cy="20.3125" + fx="15.9375" + fy="20.3125" + r="3.3125" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient6227" + id="radialGradient3695" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.7547171,0,0,0.3566673,-5.6214863,3.3122718)" + cx="15.9375" + cy="20.3125" + fx="15.9375" + fy="20.3125" + r="3.3125" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient12071" + id="linearGradient3699" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.44073238,0,0,0.25417737,0.56229035,5.7925232)" + x1="21.941509" + y1="21.550869" + x2="21.941509" + y2="18.037588" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient5881" + id="linearGradient3702" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.4705882,0,0,0.807484,-0.294082,-4.1887078)" + x1="24.875" + y1="21" + x2="24.75" + y2="17" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient9845" + id="linearGradient3705" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.45863789,0,0,0.36426137,-5.4795525e-4,4.4421178)" + x1="10.907269" + y1="25.002281" + x2="30.875446" + y2="36.127281" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2878" + id="linearGradient3708" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.48797453,0,0,0.48157871,-0.70986972,-0.77168479)" + x1="6.72682" + y1="32.161697" + x2="40.938126" + y2="32.161697" /> + </defs> + <path + style="fill:url(#linearGradient3708);fill-opacity:1;fill-rule:evenodd;stroke:#a2824e;stroke-width:0.92385811;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dashoffset:0" + id="rect1314" + d="m 3.5525753,9.2187869 c 4.9196374,-0.6152207 9.8916207,-0.51971 14.8948487,0 0.6042,0 1.090611,0.4448013 1.090611,0.9973131 l 0,9.939823 c 0,0.552512 -0.517804,0.917395 -1.090611,0.997313 -5.187173,0.515144 -9.6348246,0.511078 -14.8948487,0 -0.6983761,-0.186475 -1.09061,-0.444801 -1.09061,-0.997313 l 0,-9.939823 c 0,-0.5525118 0.4864119,-0.9973131 1.09061,-0.9973131 z" /> + <path + style="opacity:0.37999998;fill:none;stroke:url(#linearGradient3705);stroke-width:0.85107791;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:0.60109289;stroke-dashoffset:0" + id="rect6903" + d="m 4.0170604,11.967913 13.9659496,0 c 0.327683,0 0.591486,0.191031 0.591486,0.428321 l 0,7.45603 c 0,0.237289 -0.234219,0.346838 -0.591486,0.428321 -4.566563,0.392289 -9.0739612,0.391381 -13.9659496,0 -0.3276833,-0.08148 -0.5914856,-0.191032 -0.5914856,-0.428321 l 0,-7.45603 c 0,-0.23729 0.2638023,-0.428321 0.5914856,-0.428321 z" /> + <path + style="fill:url(#linearGradient3702);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible" + id="rect1460" + d="m 3.779465,9.53852 c 4.8137134,-0.786353 9.627427,-0.646293 14.441141,0 0.431803,0 0.77943,0.386003 0.77943,0.865475 l 0,1.498987 c 0,0.479473 -0.347627,0.865476 -0.77943,0.865476 -5.023394,0.371496 -9.6453579,0.238912 -14.441141,0 -0.431804,0 -0.779429,-0.386003 -0.779429,-0.865476 l 0,-1.498987 c 0,-0.479472 0.347625,-0.865475 0.779429,-0.865475 z" /> + <path + style="opacity:0.6;fill:none;stroke:url(#linearGradient3699);stroke-width:0.98973131;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible" + id="rect1593" + d="m 4.3967475,10.240628 13.4862385,0 c 0.293046,0 0.528964,0.130622 0.528964,0.292876 l 0,0.176782 c 0,0.162253 -0.235918,0.292875 -0.528964,0.292875 -4.453462,0.320436 -8.95723,0.340047 -13.4862385,0 -0.2930466,0 -0.5289646,-0.130622 -0.5289646,-0.292875 l 0,-0.176782 c 0,-0.162254 0.235918,-0.292876 0.5289646,-0.292876 z" /> + <rect + style="opacity:0.2;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;filter:url(#filter5957);enable-background:accumulate" + id="rect5887" + transform="matrix(0.923405,0,0,0.5777374,-8.226979,-3.3564678)" + y="23.226137" + x="14.594036" + ry="1.6077254" + rx="1.6077254" + height="16.970562" + width="2.8284271" /> + <path + style="fill:url(#radialGradient3695);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;opacity:0.39084507" + id="path6073" + d="m 8.9068156,10.557078 c 0,0.652503 -1.1192909,1.18146 -2.4999999,1.18146 -1.380712,0 -2.5,-0.528957 -2.5,-1.18146 0,-0.652504 1.119288,-1.181462 2.5,-1.181462 1.380709,0 2.4999999,0.528958 2.4999999,1.181462 z" /> + <path + style="opacity:0.3;fill:url(#radialGradient3692);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" + id="path6083" + d="m 18.000036,8.2774169 c 0,0.6525027 -1.119288,1.1814597 -2.500001,1.1814597 -1.380712,0 -2.499999,-0.528957 -2.499999,-1.1814597 0,-0.6525037 1.119287,-1.1814615 2.499999,-1.1814615 1.380713,0 2.500001,0.5289578 2.500001,1.1814615 z" /> + <path + style="fill:url(#linearGradient3689);fill-opacity:1;fill-rule:evenodd;stroke:#888a85;stroke-width:0.99999946;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + id="path2086" + d="m 5.502269,6.0528644 0,-0.8778838 c 0,-3.5074844 2.152214,-4.70768169 5.477269,-4.6638788 3.343147,0.0438029 5.518265,1.5812319 5.518265,5.1299805 l 0,4.4384537 c 0,0.870942 -2.247715,0.795349 -2.247715,-0.1864406 l 0,-3.3606729 c 0,-0.8913402 0.232705,-3.7756533 -3.247128,-3.7756533 -3.45114,0 -3.19968,1.5037828 -3.186298,2.3737944 l 0,0.8440898 c 0,1.0493847 -2.314393,1.1381429 -2.314393,0.078211 z" + sodipodi:nodetypes="ccsccccsccc" /> + <path + style="opacity:0.18235294;fill:url(#linearGradient3681);fill-opacity:1;fill-rule:evenodd;stroke:none;filter:url(#filter6251)" + id="rect1345" + transform="matrix(0.4093677,0,0,0.6166619,1.146515,-2.5738691)" + d="m 34.687087,10.837069 1.263948,0.125 c 0.927239,2.822733 0.736052,9.510413 0.736052,9.510413 -0.0625,1.125 -2.03125,0.53125 -2,0 l 0,-9.635413 z" /> + <path + style="opacity:0.14117647;fill:url(#linearGradient3683);fill-opacity:1;fill-rule:evenodd;stroke:none;filter:url(#filter6251)" + id="path6332" + transform="matrix(-0.4093677,0,0,0.27334831,13.04224,0.79133801)" + d="m 12.926606,11.544175 0.371719,0.169195 c 1.720331,1.054966 2.173532,9.37783 2.173532,9.37783 -0.0625,1.125 -2.03125,0.53125 -2,0 0,0 0.37822,-6.87064 -0.545251,-9.547025 z" /> + <path + style="opacity:0.62352941;fill:none;stroke:#ffffff;stroke-width:4.42126894;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;filter:url(#filter5745);enable-background:accumulate" + id="path5675" + transform="matrix(0.459148,0,0,0.4456703,0.5376645,0.33942804)" + d="m 13.876557,13.120408 0.124999,-3.5257925 c 0,-9.87637282 18.6875,-10.0488935 18.6875,1.5025065 l -0.406058,11.058377" + sodipodi:nodetypes="cccc" /> +</svg>