From 1e4e39cc9d40a539c1f8c4da48ea69211174cfb3 Mon Sep 17 00:00:00 2001 From: ryd3v Date: Tue, 10 Dec 2024 10:35:43 -0500 Subject: [PATCH] Update packages, fusion style --- .idea/.gitignore | 8 -- .idea/bitverifypyqt.iml | 17 ---- .idea/inspectionProfiles/Project_Default.xml | 5 -- .../inspectionProfiles/profiles_settings.xml | 6 -- .idea/misc.xml | 7 -- .idea/modules.xml | 8 -- .idea/vcs.xml | 6 -- __pycache__/bech32_utils.cpython-313.pyc | Bin 0 -> 5879 bytes bitverify.py | 73 ++++++++---------- requirements.txt | 22 +++--- 10 files changed, 42 insertions(+), 110 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/bitverifypyqt.iml delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml create mode 100644 __pycache__/bech32_utils.cpython-313.pyc diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/bitverifypyqt.iml b/.idea/bitverifypyqt.iml deleted file mode 100644 index 2baa8e0..0000000 --- a/.idea/bitverifypyqt.iml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 8d66637..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 1c06dca..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 71b9301..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/__pycache__/bech32_utils.cpython-313.pyc b/__pycache__/bech32_utils.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49767965fb7743300a28718ef9e9755d5bfcb13f GIT binary patch literal 5879 zcma)AT~Hg>6~0%y`d$4Xu)*Ni;9A%g24rF=n1VeR+bE8$)U1`N!Hq^p0?UCF+!g+5 z(?+S=4AgF{bmCSS=K-2bBai)n+dlBn=_Kt-ANs&roxIC>3L|vVIvVcZo3y`jG`H+Nwfepi&mf((FW8i3P5dQm1u7uS11!i2YlN_ zCs4<@%j;gl<-AnoPfIhCQGIQl(&ESZ3sAXBE)hmW0^3s9)&Sdbuqn?><3_JZwVals z$yh=fU*lo$8ctm^0J%>BUbAWmho#75JRDYS;qYWKHZy^BdpJBj6PYOXxWeJF1d~$} z2`Mfmq1$xw^q~Lfi>g_FpI3K=!*VK;N<_nvREi}=XHs!F9A;M7W*r`)w)!q7C*wZm z8%m`7Go!xIMCxjsCB|+{-Iz}KM&r@TM_&xjq!JTy`_v7F{MHDbSO#g3cSynEOrI$@ zT{nlAyVR{VO;3HB-8go=XMF6%)YaIvBl6KJQdj32m!t8oPR>NSClVhW`NQF8iCr*{ z;Myps^`8K_OMD>93sj<_K{5nM4e|F9B5^^3$hE=gB_3*g8_XAtZ7?gywZUm5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BEkUew6CJH8F%zEq(f**yHRnd;$ZB z902k;M=AXa+4+UZK&xg`Ul4e~FEpVoZ7x(bq#aL97V3IhOX*AWsl`OAo>ud;|EbeJ ZPdv4`Xww&-8t86y&==O5j8y+;@gKs=f&%~m literal 0 HcmV?d00001 diff --git a/bitverify.py b/bitverify.py index 91d9eaf..a2e1153 100644 --- a/bitverify.py +++ b/bitverify.py @@ -1,3 +1,4 @@ +# Version V1.0.3 from hashlib import sha256 from PyQt6.QtGui import QIcon @@ -80,44 +81,8 @@ 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") @@ -125,11 +90,39 @@ def toggle_theme(): 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) @@ -137,11 +130,8 @@ def toggle_theme(): 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) @@ -150,7 +140,6 @@ def toggle_theme(): central_widget.setLayout(main_layout) main_window.setCentralWidget(central_widget) -toggle_theme() main_window.show() app.exec() diff --git a/requirements.txt b/requirements.txt index f951f6d..98d4f7f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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