Skip to content

Commit

Permalink
Update v1.9 | Fixed bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
gamerYazilimci45 committed Nov 16, 2024
1 parent 420c30d commit b7ce8e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion anka-browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,15 @@ def __init__(self):
top_layout.addWidget(self.url_bar)
top_layout.addWidget(self.settings_button)

self.load_bookmarks(top_layout)
bookmarks_layout = QHBoxLayout()
bookmarks_layout.setContentsMargins(0,0,0,0)

self.load_bookmarks(bookmarks_layout)

main_layout = QVBoxLayout()
main_layout.setContentsMargins(0,0,0,0)
main_layout.addLayout(top_layout)
main_layout.addLayout(bookmarks_layout)

main_layout.addWidget(self.tabs)

Expand Down Expand Up @@ -297,6 +301,7 @@ def load_bookmarks(self, top_layout):
if url:

bookmark_button = QPushButton(url)
bookmark_button.setFixedWidth(150)
bookmark_button.setCursor(QCursor(Qt.CursorShape.PointingHandCursor))
bookmark_button.clicked.connect(lambda checked, url=url: self.add_new_tab(QUrl(url), url))
top_layout.addWidget(bookmark_button)
Expand Down
2 changes: 2 additions & 0 deletions public/browser/bookmarks.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@


0 comments on commit b7ce8e0

Please sign in to comment.