mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-11-05 11:56:37 +00:00
add support for onekey pro and classic 1s hardware wallets
This commit is contained in:
parent
36ee8add08
commit
2253a1bb97
8 changed files with 22 additions and 3 deletions
2
drongo
2
drongo
|
|
@ -1 +1 @@
|
|||
Subproject commit 42968028ccfed85c0b6396a7bc090be564c6b1dd
|
||||
Subproject commit 5fd8e9416a81d71df1b2fe60fdea2f8264335800
|
||||
2
lark
2
lark
|
|
@ -1 +1 @@
|
|||
Subproject commit 7088ce7294cbd8a3f5b217f9243c56cecb54265e
|
||||
Subproject commit b41e83a0029f50c3ab3d85a075204797bc6d6ccd
|
||||
|
|
@ -28,7 +28,8 @@ public class UsbStatusButton extends MenuButton {
|
|||
for(Device device : devices) {
|
||||
MenuItem deviceItem = new MenuItem(device.getModel().toDisplayString());
|
||||
if(!device.isNeedsPinSent() && (device.getModel() == WalletModel.TREZOR_1 || device.getModel() == WalletModel.TREZOR_T || device.getModel() == WalletModel.TREZOR_SAFE_3 ||
|
||||
device.getModel() == WalletModel.TREZOR_SAFE_5 || device.getModel() == WalletModel.KEEPKEY || device.getModel() == WalletModel.BITBOX_02)) {
|
||||
device.getModel() == WalletModel.TREZOR_SAFE_5 || device.getModel() == WalletModel.KEEPKEY || device.getModel() == WalletModel.BITBOX_02 ||
|
||||
device.getModel() == WalletModel.ONEKEY_CLASSIC_1S || device.getModel() == WalletModel.ONEKEY_PRO)) {
|
||||
deviceItem = new Menu(device.getModel().toDisplayString());
|
||||
MenuItem toggleItem = new MenuItem("Toggle Passphrase" + (!device.getModel().externalPassphraseEntry() ? "" : (device.isNeedsPassphraseSent() ? " Off" : " On")));
|
||||
toggleItem.setOnAction(event -> {
|
||||
|
|
|
|||
9
src/main/resources/image/onekey-icon-invert.svg
Normal file
9
src/main/resources/image/onekey-icon-invert.svg
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="15px" height="15px" viewBox="0 0 15 15" version="1.1">
|
||||
<g id="surface1">
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(92.941177%,92.941177%,92.941177%);fill-opacity:1;" d="M 7.5 12.898438 C 11.226562 12.898438 12.898438 11.226562 12.898438 7.5 C 12.898438 3.773438 11.226562 2.101562 7.5 2.101562 C 3.773438 2.101562 2.101562 3.773438 2.101562 7.5 C 2.101562 11.226562 3.773438 12.898438 7.5 12.898438 Z M 7.5 12.898438 "/>
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(12.941177%,12.941177%,12.941177%);fill-opacity:1;" d="M 6.484375 4.390625 L 7.988281 4.390625 L 7.988281 6.867188 L 7.054688 6.867188 L 7.054688 5.1875 L 6.222656 5.1875 Z M 6.484375 4.390625 "/>
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(12.941177%,12.941177%,12.941177%);fill-opacity:1;" d="M 7.5 10.609375 C 8.445312 10.609375 9.214844 9.84375 9.214844 8.898438 C 9.214844 7.949219 8.445312 7.183594 7.5 7.183594 C 6.554688 7.183594 5.785156 7.949219 5.785156 8.898438 C 5.785156 9.84375 6.554688 10.609375 7.5 10.609375 Z M 7.5 10.609375 "/>
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(92.941177%,92.941177%,92.941177%);fill-opacity:1;" d="M 7.5 9.832031 C 8.015625 9.832031 8.433594 9.414062 8.433594 8.898438 C 8.433594 8.378906 8.015625 7.960938 7.5 7.960938 C 6.984375 7.960938 6.566406 8.378906 6.566406 8.898438 C 6.566406 9.414062 6.984375 9.832031 7.5 9.832031 Z M 7.5 9.832031 "/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
9
src/main/resources/image/onekey-icon.svg
Normal file
9
src/main/resources/image/onekey-icon.svg
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="15px" height="15px" viewBox="0 0 15 15" version="1.1">
|
||||
<g id="surface1">
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(20%,20%,20%);fill-opacity:1;" d="M 7.5 12.898438 C 11.226562 12.898438 12.898438 11.226562 12.898438 7.5 C 12.898438 3.773438 11.226562 2.101562 7.5 2.101562 C 3.773438 2.101562 2.101562 3.773438 2.101562 7.5 C 2.101562 11.226562 3.773438 12.898438 7.5 12.898438 Z M 7.5 12.898438 "/>
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(92.941177%,92.941177%,92.941177%);fill-opacity:1;" d="M 6.484375 4.390625 L 7.988281 4.390625 L 7.988281 6.867188 L 7.054688 6.867188 L 7.054688 5.1875 L 6.222656 5.1875 Z M 6.484375 4.390625 "/>
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(92.941177%,92.941177%,92.941177%);fill-opacity:1;" d="M 7.5 10.609375 C 8.445312 10.609375 9.214844 9.84375 9.214844 8.898438 C 9.214844 7.949219 8.445312 7.183594 7.5 7.183594 C 6.554688 7.183594 5.785156 7.949219 5.785156 8.898438 C 5.785156 9.84375 6.554688 10.609375 7.5 10.609375 Z M 7.5 10.609375 "/>
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(20%,20%,20%);fill-opacity:1;" d="M 7.5 9.832031 C 8.015625 9.832031 8.433594 9.414062 8.433594 8.898438 C 8.433594 8.378906 8.015625 7.960938 7.5 7.960938 C 6.984375 7.960938 6.566406 8.378906 6.566406 8.898438 C 6.566406 9.414062 6.984375 9.832031 7.5 9.832031 Z M 7.5 9.832031 "/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/main/resources/image/onekey.png
Normal file
BIN
src/main/resources/image/onekey.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/main/resources/image/onekey@2x.png
Normal file
BIN
src/main/resources/image/onekey@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
BIN
src/main/resources/image/onekey@3x.png
Normal file
BIN
src/main/resources/image/onekey@3x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Loading…
Reference in a new issue