Skip to content

Commit

Permalink
Update packages, fusion style
Browse files Browse the repository at this point in the history
  • Loading branch information
ryd3v committed Dec 10, 2024
1 parent ec3ffae commit 1e4e39c
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 110 deletions.
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions .idea/bitverifypyqt.iml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

Binary file added __pycache__/bech32_utils.cpython-313.pyc
Binary file not shown.
73 changes: 31 additions & 42 deletions bitverify.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Version V1.0.3
from hashlib import sha256

from PyQt6.QtGui import QIcon
Expand Down Expand Up @@ -80,68 +81,57 @@ def check_file():
msg.exec()


is_dark_mode = False


def toggle_theme():
global is_dark_mode
if is_dark_mode:
app.setStyleSheet("""
QPushButton {
border-radius: 10px;
height: 30px;
background-color: #3b82f6;
}
QLineEdit {
border-radius: 10px;
height: 30px;
}
""")
else:
app.setStyleSheet("""
QWidget {
background-color: #18181b;
color: #FFFFFF;
}
QPushButton {
background-color: #3b82f6;
border-radius: 10px;
height:30px;
}
QLineEdit {
background-color: #505050;
border-radius: 10px;
height: 30px;
}
""")
is_dark_mode = not is_dark_mode


app = QApplication([])
app.setStyle("Fusion")

main_window = QMainWindow()
main_window.setWindowTitle("BitVerify")
main_window.setWindowIcon(QIcon('icon.ico'))
main_window.resize(400, 200)

input_field = QLineEdit()

# Define button styles
button_stylesheet = """
QPushButton {
background-color: #3b82f6;
color: white;
font-size: 14px;
border-radius: 10px;
height: 30px;
}
QPushButton:hover {
background-color: #52525b;
}
QPushButton:pressed {
background-color: #2563eb;
}
QPushButton:disabled {
background-color: #A0A0A0; /* Gray for disabled state */
color: #FFFFFF;
}
"""

# Create buttons
validate_btn = QPushButton("Validate")
clear_btn = QPushButton("Clear")
toggle_theme_btn = QPushButton("Toggle Theme")
check_file_btn = QPushButton("Check File")

# Apply button styles
validate_btn.setStyleSheet(button_stylesheet)
clear_btn.setStyleSheet(button_stylesheet)
check_file_btn.setStyleSheet(button_stylesheet)

# Layout and connections
button_layout = QHBoxLayout()
button_layout.addWidget(validate_btn)
button_layout.addWidget(clear_btn)
button_layout.addWidget(check_file_btn)

validate_btn.clicked.connect(lambda: show_popup(is_valid_bitcoin_address(input_field.text())))
clear_btn.clicked.connect(lambda: input_field.clear())
toggle_theme_btn.clicked.connect(toggle_theme)
check_file_btn.clicked.connect(check_file)

button_layout.addWidget(toggle_theme_btn)

main_layout = QVBoxLayout()
main_layout.addWidget(input_field)
main_layout.addLayout(button_layout)
Expand All @@ -150,7 +140,6 @@ def toggle_theme():
central_widget.setLayout(main_layout)

main_window.setCentralWidget(central_widget)
toggle_theme()
main_window.show()

app.exec()
22 changes: 11 additions & 11 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
altgraph>=0.17.4
base58>=2.1.1
packaging>=24.0
pefile>=2023.2.7
pyinstaller>=6.5.0
pyinstaller-hooks-contrib>=2024.3
PyQt6>=6.6.1
PyQt6-Qt6>=6.6.2
PyQt6-sip>=13.6.0
pywin32-ctypes>=0.2.2
setuptools>=69.1.1
altgraph==0.17.4
base58==2.1.1
packaging==24.2
pefile==2024.8.26
pyinstaller==6.11.1
pyinstaller-hooks-contrib==2024.10
PyQt6==6.7.1
PyQt6-Qt6==6.7.3
PyQt6_sip==13.9.0
pywin32-ctypes==0.2.3
setuptools==75.6.0

0 comments on commit 1e4e39c

Please sign in to comment.