|
24 | 24 |
|
25 | 25 | log = logging.getLogger( __package__ ) |
26 | 26 |
|
27 | | -font = ('Courier', 14) |
28 | | -font_small = ('Courier', 10) |
29 | | -font_bold = ('Courier', 16, 'bold italic') |
| 27 | + |
| 28 | +disp_scaling = None if sys.platform == 'darwin' else 0.5 |
| 29 | +disp_points = 14 # if sys.platform == 'darwin' else 9 |
| 30 | +font = ('Courier', disp_points+0) |
| 31 | +font_small = ('Courier', disp_points-4) |
| 32 | +font_bold = ('Courier', disp_points+2, 'bold italic') |
30 | 33 |
|
31 | 34 | I_kwds = dict( |
32 | 35 | change_submits = True, |
@@ -645,6 +648,7 @@ def app( |
645 | 648 | cryptocurrency = None, |
646 | 649 | edit = None, |
647 | 650 | passphrase = None, |
| 651 | + scaling = None, |
648 | 652 | ): |
649 | 653 | """Convert sequence of group specifications into standard { "<group>": (<needs>, <size>) ... }""" |
650 | 654 |
|
@@ -739,7 +743,9 @@ def app( |
739 | 743 | window['-GROUPS-F-'].expand( expand_x=True ) |
740 | 744 | else: |
741 | 745 | window = sg.Window( |
742 | | - f"{', '.join( names or [ 'SLIP-39' ] )} Mnemonic Cards", layout, grab_anywhere=True, |
| 746 | + f"{', '.join( names or [ 'SLIP-39' ] )} Mnemonic Cards", layout, |
| 747 | + grab_anywhere = True, |
| 748 | + scaling = scaling, |
743 | 749 | ) |
744 | 750 | timeout = 0 # First time through w/ new window, refresh immediately |
745 | 751 |
|
@@ -1069,6 +1075,7 @@ def main( argv=None ): |
1069 | 1075 | cryptocurrency = args.cryptocurrency, |
1070 | 1076 | edit = args.path, |
1071 | 1077 | passphrase = args.passphrase, |
| 1078 | + scaling = disp_scaling, |
1072 | 1079 | ) |
1073 | 1080 | except Exception as exc: |
1074 | 1081 | log.exception( f"Failed running App: {exc}" ) |
|
0 commit comments