More modifications to payment page
This commit is contained in:
		
							parent
							
								
									8253567a34
								
							
						
					
					
						commit
						69f3b7cb46
					
				
					 1 changed files with 17 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -5604,6 +5604,17 @@ class DurationSelectionPage(Page):
 | 
			
		|||
 | 
			
		||||
        self.next_button = QPushButton("Next", self)
 | 
			
		||||
        self.next_button.setGeometry(350, 300, 100, 40)
 | 
			
		||||
        self.next_button.setStyleSheet("""
 | 
			
		||||
            QPushButton {
 | 
			
		||||
                font-size: 18px;
 | 
			
		||||
                padding: 10px;
 | 
			
		||||
                border: 2px solid #ccc;
 | 
			
		||||
                border-radius: 10px;
 | 
			
		||||
                background-color: cyan;
 | 
			
		||||
                color: white;
 | 
			
		||||
                font-weight: bold;
 | 
			
		||||
            }
 | 
			
		||||
        """)
 | 
			
		||||
        self.next_button.clicked.connect(self.show_next)
 | 
			
		||||
 | 
			
		||||
    def show_next(self):
 | 
			
		||||
| 
						 | 
				
			
			@ -5693,7 +5704,7 @@ class PaymentDetailsPage(Page):
 | 
			
		|||
        self.button_reverse.clicked.connect(self.reverse)
 | 
			
		||||
 | 
			
		||||
        self.qr_code_button = QPushButton(self)
 | 
			
		||||
        self.qr_code_button.setGeometry(380, 435, 50, 50)
 | 
			
		||||
        self.qr_code_button.setGeometry(360, 435, 50, 50)
 | 
			
		||||
        qr_icon = QIcon(os.path.join(self.btn_path, "qr-code.png"))
 | 
			
		||||
        self.qr_code_button.setIcon(qr_icon)
 | 
			
		||||
        self.qr_code_button.setIconSize(self.qr_code_button.size())
 | 
			
		||||
| 
						 | 
				
			
			@ -5708,8 +5719,8 @@ class PaymentDetailsPage(Page):
 | 
			
		|||
            ("", "cuadro150x50", (200, 155), (150, 50)),
 | 
			
		||||
            ("Amount", None, (10, 220), (150, 50)),
 | 
			
		||||
            ("", "cuadro150x50", (200, 220), (150, 50)),
 | 
			
		||||
            ("Hit this icon to copy paste the address:", None, (15, 305), (500, 30)),
 | 
			
		||||
            ("", "cuadro400x50", (20, 375), (400, 50)),
 | 
			
		||||
            ("Hit this white icon to copy paste the address:", None, (15, 305), (500, 30)),
 | 
			
		||||
            ("", "cuadro400x50", (20, 350), (400, 50)),
 | 
			
		||||
            ("Hit this icon to Scan the QR code:", None, (15, 450), (360, 30)),
 | 
			
		||||
        ]
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -5718,7 +5729,7 @@ class PaymentDetailsPage(Page):
 | 
			
		|||
            label.setGeometry(position[0], position[1], size[0], size[1])
 | 
			
		||||
 | 
			
		||||
            if "Hit" in text:
 | 
			
		||||
                label.setStyleSheet("font-size: 17px;")
 | 
			
		||||
                label.setStyleSheet("font-size: 16px;")
 | 
			
		||||
                label.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeft | QtCore.Qt.AlignmentFlag.AlignVCenter)
 | 
			
		||||
            else:
 | 
			
		||||
                label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
 | 
			
		||||
| 
						 | 
				
			
			@ -5736,7 +5747,7 @@ class PaymentDetailsPage(Page):
 | 
			
		|||
            (20, 90, 400, 50),
 | 
			
		||||
            (200, 155, 150, 50),
 | 
			
		||||
            (200, 220, 150, 50),
 | 
			
		||||
            (20, 375, 400, 50),
 | 
			
		||||
            (20, 350, 400, 50),
 | 
			
		||||
        ]
 | 
			
		||||
 | 
			
		||||
        for x, y, width, height in line_edit_info:
 | 
			
		||||
| 
						 | 
				
			
			@ -5749,7 +5760,7 @@ class PaymentDetailsPage(Page):
 | 
			
		|||
        copy_button_info = [
 | 
			
		||||
            (430, 90, 0),
 | 
			
		||||
            (360, 220, 2),
 | 
			
		||||
            (450, 290, 3),
 | 
			
		||||
            (480, 290, 3),
 | 
			
		||||
        ]
 | 
			
		||||
 | 
			
		||||
        for x, y, field_index in copy_button_info:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue