Skip to content

Commit

Permalink
add news icon + navbar button + update history
Browse files Browse the repository at this point in the history
  • Loading branch information
wish13yt committed Jan 18, 2025
1 parent 2966bd6 commit 45f1602
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Binary file added src/assets/icons/news.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 11 additions & 4 deletions src/freakybrowse.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,12 @@ def __init__(self, *args, **kwargs):
pikidiary_btn.triggered.connect(self.pikidiary)
self.navtb.addAction(pikidiary_btn)

news_button = QAction(QIcon(resource_path("assets/icons/news.png")), "News (NewsAPI.org)", self)
news_button.setStatusTip("Read news, right here, right now! (NewsAPI key required)")
#TODO: Add news button function
#news_button.triggered.connect(self.)
self.navtb.addAction(news_button)

# opens the notes stuff
notes_button = QAction(QIcon(resource_path("assets/icons/notes1.png")), "Manage Notes", self)
notes_button.setStatusTip("Manage your notes")
Expand Down Expand Up @@ -946,20 +952,20 @@ def open_info_button(self):
layout.addWidget(below_label1)

version_layout = QHBoxLayout()
version_label = QLabel("Version: 2.3!!!!")
version_label = QLabel("Version: 2.5")
version_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
version_label.setFont(QFont("Arial", 11, QFont.Weight.Normal))
version_label.setStyleSheet("color: white;")
version_layout.addWidget(version_label)
layout.addLayout(version_layout)

title_label2 = QLabel("Sorta History")
title_label2 = QLabel("History")
title_label2.setAlignment(Qt.AlignmentFlag.AlignCenter)
title_label2.setFont(QFont("Arial", 16, QFont.Weight.Bold))
title_label2.setStyleSheet("color: #333333;")
layout.addWidget(title_label2)

info_label = QLabel("FreakyBrowse was made on Oct 13th 2024. It first started out as code stolen from stackoverflow but was updated to work and look better.\nThe first time we started to try to distribute FreakyBrowse, it was flagged as a trojan. It was a false positive from what wish13yt used to turn the code into an exe.\nSince Pyinstaller sucks and gave false positives, we are starting to use the direct python file!!")
info_label = QLabel("FreakyBrowse was made on October 13th, 2024. It first started out as code stolen from GeeksForGeeks but was updated to work and look better.\nThe first time we started to try to distribute FreakyBrowse, it was flagged as a trojan. It was a false positive from PyInstaller. It was originally thought to be auto-py-to-exe, but was actually PyInstaller.")
info_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
info_label.setFont(QFont("Arial", 10, QFont.Weight.Normal))
info_label.setStyleSheet("color: white;")
Expand All @@ -983,7 +989,7 @@ def open_info_button(self):
gpl_label.setStyleSheet("color: #333333;")
layout.addWidget(gpl_label)

info_label2 = QLabel("Everything is GPL-3")
info_label2 = QLabel("Most, if not everything, is GPL-3")
info_label2.setAlignment(Qt.AlignmentFlag.AlignCenter)
info_label2.setFont(QFont("Arial", 10, QFont.Weight.Normal))
info_label2.setStyleSheet("color: white; ")
Expand Down Expand Up @@ -1037,6 +1043,7 @@ def update_rpc_state(self):
print(f"Error disabling RPC: {e}")
# useragent thingy
def useragent_settings(self):
# ID: 12344
useragent_dialog = QDialog(self)
useragent_dialog.setWindowTitle("[Guard] UserAgent Settings")
useragent_dialog.setFixedSize(400, 230)
Expand Down

0 comments on commit 45f1602

Please sign in to comment.