From b7ce8e0ff65cf77b345e0e1782de0dfc692d1fdf Mon Sep 17 00:00:00 2001 From: gamerYazilimci67 Date: Sat, 16 Nov 2024 17:55:56 +0300 Subject: [PATCH] Update v1.9 | Fixed bookmarks --- anka-browser.py | 7 ++++++- public/browser/bookmarks.txt | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/anka-browser.py b/anka-browser.py index 5997fff..7f306a5 100644 --- a/anka-browser.py +++ b/anka-browser.py @@ -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) @@ -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) diff --git a/public/browser/bookmarks.txt b/public/browser/bookmarks.txt index e69de29..139597f 100644 --- a/public/browser/bookmarks.txt +++ b/public/browser/bookmarks.txt @@ -0,0 +1,2 @@ + +