Skip to content

Commit 479b244

Browse files
committed
use sentence case for buttons
1 parent 6f3bbc4 commit 479b244

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

src/seedsigner/gui/screens/screen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,8 @@ class BaseExportKeyDetailsScreen(WarningEdgesMixin, ButtonListScreen):
13341334
Args:
13351335
derivation_path: BIP32 derivation path
13361336
fingerprint: BIP32 master fingerprint
1337+
key_label: Label for the key ("Public Key" / "Private Key")
1338+
key_value: The actual key value (e.g. xpub)
13371339
has_passphrase: Whether seed has passphrase (for warning styling)
13381340
"""
13391341
title: str = None

src/seedsigner/views/seed_views.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -523,14 +523,14 @@ def run(self):
523523
****************************************************************************"""
524524
class SeedOptionsView(View):
525525
SCAN_PSBT = ButtonOption("Scan PSBT", SeedSignerIconConstants.QRCODE)
526-
VERIFY_ADDRESS = ButtonOption("Verify Addr")
527-
EXPORT_XPUB = ButtonOption("Export Xpub")
528-
EXPLORER = ButtonOption("Address Explorer")
529-
SIGN_MESSAGE = ButtonOption("Sign Message")
530-
BACKUP = ButtonOption("Backup Seed", right_icon_name=SeedSignerIconConstants.CHEVRON_RIGHT)
531-
BIP85_CHILD_SEED = ButtonOption("BIP-85 Child Seed")
532-
BIP352_SILENT_PAYMENTS = ButtonOption("BIP-352 Silent Payments")
533-
DISCARD = ButtonOption("Discard Seed", button_label_color="red")
526+
VERIFY_ADDRESS = ButtonOption("Verify addr")
527+
EXPORT_XPUB = ButtonOption("Export xpub")
528+
EXPLORER = ButtonOption("Address explorer")
529+
SIGN_MESSAGE = ButtonOption("Sign message")
530+
BACKUP = ButtonOption("Backup seed", right_icon_name=SeedSignerIconConstants.CHEVRON_RIGHT)
531+
BIP85_CHILD_SEED = ButtonOption("BIP-85 child seed")
532+
BIP352_SILENT_PAYMENTS = ButtonOption("BIP-352 silent payments")
533+
DISCARD = ButtonOption("Discard seed", button_label_color="red")
534534

535535

536536
def __init__(self, seed_num: int):
@@ -964,7 +964,7 @@ def run(self):
964964
BaseExportKeyDetailsScreen,
965965
title=_("Xpub Details"),
966966
key_label=_("Xpub"),
967-
button_data=[ButtonOption("Export Xpub")],
967+
button_data=[ButtonOption("Export xpub")],
968968
icon_name=FontAwesomeIconConstants.X,
969969
key_value=xpub_base58,
970970
fingerprint=fingerprint,
@@ -1313,7 +1313,7 @@ def run(self):
13131313
fingerprint=self.master_fingerprint,
13141314
has_passphrase=self.seed.has_passphrase,
13151315
derivation_path=self.derivation_path,
1316-
button_data=[ButtonOption("Export Pubkey via QR")],
1316+
button_data=[ButtonOption("Export pubkey via QR")],
13171317
icon_name=FontAwesomeIconConstants.X
13181318
)
13191319

@@ -1360,7 +1360,7 @@ def run(self):
13601360
fingerprint=self.master_fingerprint,
13611361
has_passphrase=self.seed.has_passphrase,
13621362
derivation_path=self.derivation_path,
1363-
button_data=[ButtonOption("Export Privkey via QR")],
1363+
button_data=[ButtonOption("Export privkey via QR")],
13641364
icon_name=FontAwesomeIconConstants.X
13651365
)
13661366

0 commit comments

Comments
 (0)