-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkivy_sallet_VISOR.kv
1128 lines (1022 loc) · 32.9 KB
/
kivy_sallet_VISOR.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#: kivy 2.1.0
## ------------------------------------------------------------------
## - Font settings in general. All used fonts to be defined here -
## ------------------------------------------------------------------
#:set fn_balance_btc "./fonts/Ubuntu-B.ttf"
#:set fs_balance_btc 80
#:set fn_balance_sat "./fonts/Ubuntu-BI.ttf"
#:set fs_balance_sat 40
#:set fn_title "./fonts/Ubuntu-B.ttf"
#:set fs_title 20
#:set fn_subtitle "./fonts/Ubuntu-C.ttf"
#:set fs_subtitle 18
#:set fn_subsubtitle "./fonts/Ubuntu-B.ttf"
#:set fs_subsubtitle 14
#:set fn_button "./fonts/Ubuntu-BI.ttf"
#:set fs_button 14
#:set fn_button_small "./fonts/Ubuntu-BI.ttf"
#:set fs_button_small 11
#:set fn_button_big "./fonts/Ubuntu-B.ttf"
#:set fs_button_big 25
#:set fn_text "./fonts/Ubuntu-C.ttf"
#:set fs_text 12
#:set fn_data "./fonts/Ubuntu-LI.ttf"
#:set fs_data 12
#:set fn_text_normal "./fonts/Ubuntu-C.ttf"
#:set fs_text_normal 13
#:set fn_data_normal "./fonts/Ubuntu-LI.ttf"
#:set fs_data_normal 13
#:set fn_text_large "./fonts/Ubuntu-C.ttf"
#:set fs_text_large 15
#:set fn_data_large "./fonts/Ubuntu-C.ttf"
#:set fs_data_large 15
#:set fn_data "./fonts/Ubuntu-LI.ttf"
#:set fs_data 12
## ------------------------------------------------------------------
## - Colors to be used globally: -
## ------------------------------------------------------------------
#:set clr_wallet_bck (0.137, 0.145, 0.2, 1)
#:set clr_transp_bck (0.231, 0.929, 0.455, 0.05)
#:set clr_white (1, 1, 1, 1)
#:set clr_orange (1, 0.6, .125, 1)
#:set clr_yellow (1, 0.77, 0.1, 1)
#:set clr_green (0.231, 0.929, 0.455, 1)
#:set clr_blue (0, 0.39, 1, 1)
#:set clr_title_txt (0, 0, 0, 1)
#:set clr_area_bck (0.186, 0.186, 0.186, 1)
#:set clr_light_bck (0.486, 0.486, 0.486, 1)
#:set clr_button_bck (0.486, 0.486, 0.486, 0.2)
#:set clr_button_txt (0.937, 0.482, 0.133, 1)
#:set clr_buttonbig_bck (0.486, 0.486, 0.486, 1)
#:set clr_buttonbig_txt (1, 1, 1, 1)
## ------------------------------------------------------------------
## - Filelinks to be used globally: -
## ------------------------------------------------------------------
#:set rootpath_cli "./test_cli" ## .cli file directory
#:set rootpath_stl "./test_stl" ## .stl file directory
#:set background_image "./images/MinimalIndustrySurf-02STRWP.jpg"
#:set defaultim "./images/HandCandleWP.jpg"
#:set logo_img "./icons/Sallet-VISOR_Icon.png"
##:set logo_img "./icons/cr/logo.png"
#:set qr_in_title_img "./images/qr_in_title.png"
## ------------------------------------------------------------------
## transitions imported for screenchanges:
## ------------------------------------------------------------------
#:import NoTransition kivy.uix.screenmanager.NoTransition
## -----------------------------------------------------------------------------
#:import CardTransition kivy.uix.screenmanager.CardTransition
#:import FadeTransition kivy.uix.screenmanager.FadeTransition
#:import FallOutTransition kivy.uix.screenmanager.FallOutTransition
#:import RiseInTransition kivy.uix.screenmanager.RiseInTransition
#:import SlideTransition kivy.uix.screenmanager.SlideTransition
#:import SwapTransition kivy.uix.screenmanager.SwapTransition
#:import WipeTransition kivy.uix.screenmanager.WipeTransition
## ----------------------------------------------------------------------
## Root Widget definition: Screenhandler START -
## ----------------------------------------------------------------------
<SalletScreenManager@ScreenManager>:
transition: NoTransition()
## transition: CardTransition(duration=0.2)
## transition: FadeTransition(duration=0.05)
## transition: FallOutTransition(duration=0.05) # opposites v
## transition: RiseInTransition(duration=0.08) # opposites ^
## transition: SlideTransition(duration=0.2)
## transition: SwapTransition(duration=.5)
## transition: WipeTransition()
SalletScreenManager:
id: "ThisIsYourROOTWidget"
canvas.before:
Color:
rgba: clr_wallet_bck
Rectangle:
pos: self.pos
size: self.size
# source: background_image
ScreenIntro:
id: screen_intro
ScreenBtc:
id: screen_btc
ScreenNft:
id: screen_nft
ScreenMint:
id: screen_mint
ScreenTx:
id: screen_tx
ScreenQrOut:
id: screen_qr_out
ScreenQrIn:
id: screen_qr_in
ScreenSend:
id: screen_send
ScreenBrowse:
id: screen_browse
## ----------------------------------------------------------------------
## Root Widget definition: Screenhandler ENDED -
## ----------------------------------------------------------------------
#:set rel_size_t_line (1, 0.075)
#:set rel_size_navbar (1, 0.05)
#:set rel_size_oparea (1, 0.8)
#:set rel_size_ribbon (1, 0.075)
#:set size_list (0.4, 1)
#:set size_list_left (0.6, 1)
#:set n_features 7
<InScreenWindow@BoxLayout>:
orientation: "vertical"
<ScreenIntro@Screen>:
name: "screen_intro"
InScreenWindow: ## Screen class is a widget, it is not filled up automatically
TitleLine:
id: screen_intro_titleline
size_hint: rel_size_t_line ## 0.05
display_title: "Sallet VISOR"
NavBar:
id: navbar
size_hint: rel_size_navbar ## 0.05 < 0.10
OpAreaIntro:
size_hint: rel_size_oparea ## 0.9 < 1
id: oparea_intro
Ribbon:
id: ribbon_intro
size_hint: rel_size_ribbon
text_ribbon: "Bottom of Screen: Introduction"
image_source: logo_img
<ScreenBtc@Screen>:
name: "screen_btc"
InScreenWindow:
TitleLine:
id: screen_btc_titleline
size_hint: rel_size_t_line
display_title: "Sallet - Security wallet - VISOR"
NavBar:
id: navbar
size_hint: rel_size_navbar
OpAreaBtc:
size_hint: rel_size_oparea
id: oparea_btc
Ribbon:
id: ribbon_btc
size_hint: rel_size_ribbon
text_ribbon: "Bottom of Screen: Sallet"
image_source: logo_img
<ScreenNft@Screen>:
name: "screen_nft"
InScreenWindow:
TitleLine:
id: screen_nft_titleline
size_hint: rel_size_t_line
display_title: "Sallet tokens - VISOR"
NavBar:
id: navbar
size_hint: rel_size_navbar
OpAreaNft:
size_hint: rel_size_oparea
id: oparea_nft
Ribbon:
id: ribbon_nft
size_hint: rel_size_ribbon
text_ribbon: "Bottom of Screen: Tokens"
image_source: logo_img
<ScreenMint@Screen>:
name: "screen_mint"
InScreenWindow:
TitleLine:
id: screen_mint_titleline
size_hint: rel_size_t_line
display_title: "Mint NFT - VISOR"
NavBar:
id: navbar
size_hint: rel_size_navbar
OpAreaMint:
size_hint: rel_size_oparea
id: oparea_mint
Ribbon:
id: ribbon_mint
size_hint: rel_size_ribbon
text_ribbon: "Bottom of Screen: Mint NFT"
image_source: logo_img
<ScreenTx@Screen>:
name: "screen_tx"
InScreenWindow:
TitleLine:
id: screen_tx_titleline
size_hint: rel_size_t_line
display_title: "Transaction manager - VISOR"
NavBar:
id: navbar
size_hint: rel_size_navbar
OpAreaTx:
size_hint: rel_size_oparea
id: oparea_tx
Ribbon:
id: ribbon_tx
size_hint: rel_size_ribbon
text_ribbon: "Bottom of Screen: Transactions"
image_source: logo_img
<ScreenQrIn@Screen>:
name: "screen_qr_in"
InScreenWindow: ## Screen class is a widget, it is not filled up automatically
TitleLine:
id: screen_qr_in_titleline
size_hint: rel_size_t_line
display_title: "QR code reader - VISOR"
NavBar:
id: navbar
size_hint: rel_size_navbar
OpAreaQrIn:
size_hint: rel_size_oparea
id: oparea_qrin
Ribbon:
id: ribbon_qr_in
size_hint: rel_size_ribbon
text_ribbon: "Bottom of Screen: QR in"
image_source: logo_img
<ScreenQrOut@Screen>:
name: "screen_qr_out"
InScreenWindow:
TitleLine:
id: screen_qr_out_titleline
size_hint: rel_size_t_line
display_title: "Display QR codes - VISOR"
NavBar:
id: navbar
size_hint: rel_size_navbar
QRdisplay:
size_hint: rel_size_oparea
id: oparea_qrout
Ribbon:
id: ribbon_qr_out
size_hint: rel_size_ribbon
text_ribbon: "Bottom of Screen: QR in"
image_source: logo_img
<ScreenSend@Screen>:
name: "screen_send"
InScreenWindow:
TitleLine:
id: screen_send_titleline
size_hint: rel_size_t_line
display_title: "Broadcaster - VISOR"
NavBar:
id: navbar
size_hint: rel_size_navbar
OpAreaSend:
size_hint: rel_size_oparea
id: oparea_send
Ribbon:
id: ribbon_send
size_hint: rel_size_ribbon
text_ribbon: "Bottom of Screen: Broadcast"
image_source: logo_img
<ScreenBrowse@Screen>:
name: "screen_browse"
InScreenWindow:
TitleLine:
id: screen_browse_titleline
size_hint: rel_size_t_line
display_title: "Browser"
NavBar:
id: navbar
size_hint: rel_size_navbar
OpAreaBrowse:
size_hint: rel_size_oparea
id: oparea_browse
Ribbon:
id: ribbon_browse
size_hint: rel_size_ribbon
text_ribbon: "Bottom of Screen: Browser"
image_source: logo_img
<TitleLine@BoxLayout>:
display_title: "default"
orientation: "horizontal"
ScreenTitleLabel:
font_name: fn_title
font_size: fs_title
text: root.display_title
<NavBar@BoxLayout>:
id: navbar
orientation: "horizontal"
size_hint: 1, 0.05
ButtonScreenNav:
id: button_nav_intro
target: "screen_intro"
text: "Welcome"
on_release: root.on_release_navbar(self)
ButtonScreenNav:
id: button_nav_btc
target: "screen_btc"
text: "Sallet"
on_release: root.on_release_navbar(self)
ButtonScreenNav:
id: button_nav_nft
target: "screen_nft"
text: "NFT"
on_release: root.on_release_navbar(self)
ButtonScreenNav:
id: button_nav_mint
target: "screen_mint"
text: "Mint"
on_release: root.on_release_navbar(self)
ButtonScreenNav:
id: button_nav_tx
target: "screen_tx"
text: "TX"
on_release: root.on_release_navbar(self)
ButtonScreenNav:
id: button_nav_qr_out
target: "screen_qr_out"
text: "sign"
on_release: root.on_release_navbar(self)
ButtonScreenNav:
id: button_nav_qr_in
target: "screen_qr_in"
text: "scan"
on_release: root.on_release_navbar(self)
ButtonScreenNav:
id: button_nav_send
target: "screen_send"
text: "send"
on_release: root.on_release_navbar(self)
ButtonScreenNav:
id: button_nav_browse
target: "screen_browse"
text: "browse"
on_release: root.on_release_navbar(self)
<Ribbon@BoxLayout>:
text_ribbon: "N/A"
image_source: None
orientation: "horizontal"
LabelSubSubTitle:
size_hint: 0.95, 1
text: root.text_ribbon
Image:
keep_ratio: True
allow_stretch: False
size_hint: 0.05, 1
source: root.image_source
<OperationAreaBox@BoxLayout>:
spacing: 5
padding: 20, 0, 20, 0
<OpAreaIntro@OperationAreaBox>:
BoxLayout:
orientation: "vertical"
size_hint: 1, 1
LabelWelcomeTitle:
size_hint: 1, 0.1
id: lbl_welcome_title
text: "Welcome"
LabelWelcomeIntro:
size_hint: 1, 0.20
id: lbl_welcome_intro
text: "Welcome"
BoxLayout:
size_hint: 1, 0.6
orientation: "vertical"
LabelRowList:
id: lbl_row_list_01
size_hint: 1, 1/n_features
size_lbl: size_list_left
size_btn: size_list
text_btn: "Coin selection"
text_lbl: "Manage and select your own UTXO's optimize at your will, hide your metadata, collect dust, organize coinjoins"
LabelRowList:
id: lbl_row_list_02
size_hint: 1, 1/n_features
size_lbl: size_list_left
size_btn: size_list
text_btn: "Tiny digital footprint"
text_lbl: "Generate and keep your Keys off-line"
LabelRowList:
id: lbl_row_list_03
size_hint: 1, 1/n_features
size_lbl: size_list_left
size_btn: size_list
text_btn: "Hidden entropy"
text_lbl: "Sign your transactions off-line"
LabelRowList:
id: lbl_row_list_04
size_hint: 1, 1/n_features
size_lbl: size_list_left
size_btn: size_list
text_btn: "Privacy"
text_lbl: "Isolate sensitive data from the digital world"
LabelRowList:
id: lbl_row_list_05
size_hint: 1, 1/n_features
size_lbl: size_list_left
size_btn: size_list
text_btn: "Asset management"
text_lbl: "Issuance and manage your own tokens. Leverage the only immutable ledger of the Planet."
LabelRowList:
id: lbl_row_list_06
size_hint: 1, 1/n_features
size_lbl: size_list_left
size_btn: size_list
text_btn: "Node selection"
text_lbl: "Customize the way you publish your transaction"
LabelRowList:
id: lbl_row_list_07
size_hint: 1, 1/n_features
size_lbl: size_list_left
size_btn: size_list
text_btn: "Control"
text_lbl: "Program your money: Construct custom made locking-scripts."
BoxLayout:
size_hint: 1, 0.1
LabelPH:
size_hint: 1, 1
<OpAreaBtc@OperationAreaBox>:
orientation: "vertical"
LabelBalanceBtc:
id: lbl_balance_btc
size_hint: 1, 0.3
text: "0.0 btc"
LabelBalanceSat:
id: lbl_balance_sat
size_hint: 1, 0.5
text: "0 sats"
BoxLayout:
size_hint: 1, 0.2
orientation: "horizontal"
padding: 10, 10, 10, 10
spacing: 10
ButtonBig:
size_hint: 0.5, 1
text: "send"
ButtonBig:
size_hint: 0.5, 1
text: "receive"
<OpAreaNft@OperationAreaBox>:
orientation: "vertical"
LabelBalanceBtc:
size_hint: 1, 0.3
text: "0.0 tox"
LabelBalanceSat:
size_hint: 1, 0.5
text: "0 sats"
BoxLayout:
size_hint: 1, 0.2
orientation: "horizontal"
padding: 10, 10, 10, 10
spacing: 10
ButtonBig:
size_hint: 0.5, 1
text: "send"
ButtonBig:
size_hint: 0.5, 1
text: "receive"
<OpAreaMint@OperationAreaBox>:
orientation: "vertical"
BoxLayout:
orientation: "vertical"
size_hint: 1, 1
LabelWelcomeTitle:
size_hint: 1, 0.1
id: lbl_mint_title
text: "Let's mint"
LabelWelcomeIntro:
size_hint: 1, 0.20
id: lbl_mint_intro
text: "how go we go about it?"
BoxLayout:
size_hint: 1, 0.6
orientation: "vertical"
BoxLayout:
size_hint: 1, 0.1
LabelPH:
size_hint: 1, 1
<OpAreaBrowse@OperationAreaBox>:
orientation: "vertical"
BoxLayout:
orientation: "vertical"
size_hint: 1, 1
LabelWelcomeTitle:
size_hint: 1, 0.1
id: lbl_browse_title
text: "Browse"
BoxLayout:
orientation: "horizontal"
size_hint: 1, 0.05
TextInputSallet:
size_hint: 0.8, 1
id: txtinp_browse
hint_text: "Enter TX id"
on_text: root.on_textupdate_textinput(self)
ButtonSallet:
size_hint: 0.2, 1
id: btn_browse
text: "Find!"
on_release: root.on_buttonclick_browse(self)
ScrollViewSallet:
id: scrlv
size_hint: 1, 0.85
##LabelBrowse:
TextInputBrowser:
height: scrlv.height
size_hint: 1, 1.1
id: lbl_tx_info
text: ""
<OpAreaTx@OperationAreaBox>:
orientation: "vertical"
BoxLayout:
size_hint: 1, 0.4
orientation: "vertical"
LabelSubTitle:
size_hint: 1, 0.1
text: "Input section"
LabelSubSubTitle:
size_hint: 1, 0.05
text: "UTXO set to select from:"
BoxLayout:
size_hint: 1, 0.4
orientation: "horizontal"
ScrollViewSallet:
id: scrlv_utxo
size_hint: 0.8, 1
UtxoDisplayArea:
height: max(self.minimum_height, scrlv_utxo.height)
id: utxo_display_area
size_hint: 1, None
LabelTitle:
id: lbl_utxo_balance
size_hint: 0.2, 1
text: "utxo balance"
LabelSubSubTitle:
size_hint: 1, 0.05
text: "Inputs selected:"
BoxLayout:
size_hint: 1, 0.4
orientation: "horizontal"
ScrollViewSallet:
id: scrlv_inputs
size_hint: 0.8, 1
InputDisplayArea:
height: max(self.minimum_height, scrlv_inputs.height)
id: input_display_area
size_hint: 1, None
LabelTitle:
id: lbl_input_balance
size_hint: 0.2, 1
text: "input balance"
BoxLayout:
size_hint: 1, 0.4
orientation: "vertical"
LabelSubTitle:
size_hint: 1, 0.05
text: "Output section"
BoxLayout:
size_hint: 1, 0.95
orientation: "horizontal"
ScrollViewSallet:
id: scrlv_inputs
size_hint: 0.8, 1
OutputDisplayArea:
height: max(self.minimum_height, scrlv_inputs.height)
id: output_display_area
size_hint: 1, None
LabelTitle:
id: lbl_output_balance
size_hint: 0.2, 1
text: "output balance"
BoxLayout:
size_hint: 1, 0.15
orientation: "vertical"
LabelSubTitle:
size_hint: 1, 0.05
text: "Fee section"
BoxLayout:
size_hint: 1, 0.10
orientation: "horizontal"
LabelTitle:
size_hint: 0.8, 1
text: "current miner fee:"
LabelTitle:
id: lbl_fee_balance
size_hint: 0.2, 1
text: "output balance"
ButtonBig:
size_hint: 1, 0.05
text: "Create TX"
on_release: root.create_tx()
<OpAreaQrIn@OperationAreaBox>:
BoxLayout:
padding: 20
spacing: 20
orientation: "vertical"
LabelInfo:
id: labelinfo
size_hint: 1, 0.05
text: "This is your QR reader - HEAD"
ScrollViewSallet:
id: scrlv
size_hint: 1, 0.15
LabelInfo:
height: scrlv.height
size_hint: 1, 2
id: str_2b_conv
text: ""
ScanArea:
id: scan_area
size_hint: 1, 0.6
ButtonToggleScan:
id: button_convert
size_hint: 1, 0.2
disabled: False
target: "screen_proc"
text: "scan - ON"
on_state: root.on_toggle_scan_qr(self)
<ScanArea@BoxLayout>:
Image:
id: img
keep_ratio: True
allow_stretch: False
source: qr_in_title_img
<OpAreaQrOut@OperationAreaBox>:
BoxLayout:
padding: 20
spacing: 20
orientation: "vertical"
LabelInfo:
id: labelinfo
size_hint: 1, 0.15
text: "This is your QR reader"
<OpAreaSend@OperationAreaBox>:
orientation: "vertical"
LabelBalanceBtc:
size_hint: 1, 0.2
text: "0.0 btc"
LabelBalanceSat:
size_hint: 1, 0.2
text: "0 sats"
BoxLayout:
size_hint: 1, 0.2
orientation: "horizontal"
NodeLine:
id: used_node_data
node_alias: "node_alias"
node_address: "ip:port"
BoxLayout:
size_hint: 1, 0.2
orientation: "horizontal"
ScrollViewSallet:
id: scrlv_node
size_hint: 1, 1
NodeDisplayArea:
height: max(self.minimum_height, scrlv_node.height)
width: max(self.minimum_width, scrlv_node.width)
id: node_display_area
size_hint: 1, None
BoxLayout:
size_hint: 1, 0.2
orientation: "horizontal"
padding: 10, 10, 10, 10
spacing: 10
ButtonBig:
size_hint: 0.7, 1
text: "broadcast"
ButtonBig:
size_hint: 0.3, 1
text: "cancel"
<NodeLine@BoxLayout>:
node_alias: "node_alias"
node_address: "node_address"
LabelTitle:
size_hint: 0.5, 1
text: root.node_alias
LabelTitle:
size_hint: 0.5, 1
text: root.node_address
<QRdisplay@BoxLayout>:
orientation: "horizontal"
ButtonSallet:
id: browse_qr_prev
add: -1
size_hint: 0.05, 0.2
pos_hint: {"center_y": 0.5}
text: "<"
on_release: root.on_buttonclick_qr_browse(self)
BoxLayout:
orientation: "vertical"
size_hint: 0.9, 1
LabelTitle:
id: qr_count
size_hint: 1, 0.1
text: "TopLayout"
QRPlotField:
id: qr_plot_layout
size_hint: 1, 0.9
ButtonSallet:
id: browse_qr_next
add: 1
size_hint: 0.05, 0.2
pos_hint: {"center_y": 0.5}
text: ">"
on_release: root.on_buttonclick_qr_browse(self)
# ---------------------------------------------------------------------
# - Button: START -
# ---------------------------------------------------------------------
<ButtonSallet@Button>:
## background_normal: ''
## background_down: ''
background_color: clr_button_bck
<ButtonInfo@ButtonSallet>:
font_size: fs_subtitle
font_name: fn_subtitle
text_size: self.size
halign: 'left' ## center, right, left
valign: 'middle' ## middle, top, bottom
padding: 20, 0, 0, 0
color: clr_orange
<ButtonListitem@ButtonSallet>:
font_name: fn_button_small
font_size: fs_button_small
<ButtonFull@Button>:
background_color: clr_transp_bck
font_name: fn_button_big
font_size: fs_button_big
color: clr_button_txt
halign: 'center' ## center, right, left
valign: 'middle' ## middle, top, bottom
<ButtonBig@ButtonSallet>:
font_name: fn_button_big
font_size: fs_button_big
background_color: clr_orange
color: clr_orange
<ToggleButtonSallet@ToggleButton>:
background_color: clr_button_bck
color: clr_button_txt
<ButtonScreenNav@ButtonSallet>:
background_color: clr_orange
color: clr_orange
font_name: fn_button
font_size: fs_button
target: ""
disabled: True
text_size: self.size
padding: (2, 2)
text: "ToggleButton"
halign: 'center' ## center, right, left
valign: 'middle' ## middle, top, bottom
<ButtonEntropySel@ButtonSallet>:
size_hint: 0.1, 1
font_name: fn_button_small
font_size: fs_button_small
target: ""
text_size: self.size
padding: (2, 2)
text: "ToggleButton"
halign: 'center' ## center, right, left
valign: 'middle' ## middle, top, bottom
<ButtonToggleScan@ToggleButtonSallet>:
font_name: fn_button
font_size: fs_button
size_hint: 0.5, None # 0.15
height: dp(60)
pos_hint: {"center_x": .5, "center_y": .5}
# ---------------------------------------------------------------------
# - Button: ENDED -
# --------------------------------------------------------------------
# ---------------------------------------------------------------------
# - Label: START -
# ---------------------------------------------------------------------
<LabelListitem@Label>:
<LabelInfo@Label>:
canvas.before:
Color:
rgba: clr_light_bck
Rectangle:
pos: self.pos
size: self.size
color: 0, 0, 0, 1
font_size: fs_subsubtitle
font_name: fn_subsubtitle
text_size: self.size
halign: 'center' ## center, right, left
valign: 'center' ## middle, top, bottom
<LabelBrowse@SelectableLabel>:
canvas.before:
Color:
rgba: clr_light_bck
Rectangle:
pos: self.pos
size: self.size
padding: 5, 2, 5, 0
color: 0, 0, 0, 1
font_size: fs_text
font_name: fn_text
text_size: self.size
halign: 'left' ## center, right, left
valign: 'top' ## middle, top, bottom
<LabelBalanceBtc@Label>:
color: clr_blue
font_size: fs_balance_btc
font_name: fn_balance_btc
text_size: self.size
halign: 'center' ## center, right, left
valign: 'center' ## middle, top, bottom
<LabelBalanceSat@Label>:
color: clr_title_txt
font_size: fs_balance_sat
font_name: fn_balance_sat
text_size: self.size
halign: 'center' ## center, right, left
valign: 'top' ## middle, top, bottom
<LabelWelcomeTitle@Label>:
color: clr_orange
font_size: fs_title
font_name: fn_title
text_size: self.size
halign: 'center' ## center, right, left
valign: 'center' ## middle, top, bottom
<LabelWelcomeListNarrow@Label>:
color: clr_white
font_size: fs_data
font_name: fn_data
text_size: self.size
line_height: 1.1
## padding: 80, 0, 80, 0 ##left, top, right, bottom
halign: 'justify' ## center, right, left, justify
valign: 'top' ## middle, top, bottom
<LabelWelcomeIntro@Label>:
color: clr_white
font_size: fs_text_normal
font_name: fn_text_normal
text_size: self.size
line_height: 1.1
## padding: 80, 0, 80, 0 ##left, top, right, bottom
halign: 'justify' ## center, right, left, justify
valign: 'top' ## middle, top, bottom
<LabelWelcomeList@Label>:
## canvas.before:
## Color:
## rgba: clr_blue
## Rectangle:
## pos: self.pos
## size: self.size
color: clr_white
font_size: fs_text_normal
font_name: fn_text_normal
text_size: self.size
## padding: 80, 0, 10, 0 ##left, top, right, bottom
line_height: 1.2
halign: 'left' ## center, right, left
valign: 'middle' ## middle, top, bottom
<LabelWelcomeListLeft@Label>:
color: clr_white
font_size: fs_text_normal
font_name: fn_text_normal
text_size: self.size
padding: 10, 0, 10, 0 ##left, top, right, bottom
line_height: 1.0
halign: 'justify' ## center, right, left
valign: 'middle' ## middle, top, bottom
<LabelWelcomeListRight@Label>:
color: clr_white
font_size: fs_subtitle
font_name: fn_subtitle
text_size: self.size
## padding: 80, 0, 10, 0 ##left, top, right, bottom
line_height: 1.2
halign: 'right' ## center, right, left
valign: 'top' ## middle, top, bottom
<LabelTitle@Label>:
color: clr_blue
font_size: fs_title
font_name: fn_title
text_size: self.size
halign: 'center' ## center, right, left
valign: 'center' ## middle, top, bottom
<LabelSubTitle@Label>:
color: clr_green
font_size: fs_subtitle
font_name: fn_subtitle
text_size: self.size
halign: 'center' ## center, right, left
valign: 'center' ## middle, top, bottom
<LabelSubSubTitle@Label>:
## canvas.before:
## Color:
## rgba: clr_wallet_bck
## Rectangle:
## pos: self.pos
## size: self.size
color: clr_button_txt
font_size: fs_subsubtitle
font_name: fn_subsubtitle
text_size: self.size
halign: 'center' ## center, right, left
valign: 'center' ## middle, top, bottom
<LabelLead@LabelListitem>:
## canvas.before:
## Color: