Skip to content

Commit

Permalink
2px white line in the top has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharindam committed Oct 29, 2019
1 parent f1f9914 commit 2d31555
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion quartz_browser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Download Manager with pause/resume support
Youtube Video and HTML5 video downloader.
Changelog :
2.3.7 2px white line in the top has been removed
2.3.6 fixed : crash due to absence of .config directory
2.3.5 pytube is now optional
2.3.4 useragent changed to fix youtube lags
Expand Down Expand Up @@ -52,5 +53,5 @@
#


__version__ = "2.3.6"
__version__ = "2.3.7"

11 changes: 6 additions & 5 deletions quartz_browser/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def initUI(self):
############################### Create Gui Parts ##############################
self.centralwidget = QWidget(self)
self.setCentralWidget(self.centralwidget)
grid = QGridLayout(self.centralwidget)
grid.setSpacing(1)
grid.setContentsMargins(0,2,0,0)
self.grid = QGridLayout(self.centralwidget)
self.grid.setSpacing(1)
self.grid.setContentsMargins(0,2,0,0)

self.toolBar = QWidget(self)
horLayout = QHBoxLayout(self.toolBar)
Expand Down Expand Up @@ -253,12 +253,12 @@ def initUI(self):
self.addTab()
self.applysettings()
#
grid.addWidget(self.toolBar, 0,0, 1,1)
self.grid.addWidget(self.toolBar, 0,0, 1,1)
for widget in [self.addtabBtn, self.back, self.forw, self.reload, self.homeBtn, self.videoDownloadButton,
self.pbar, self.find, self.findprev, self.cancelfind, self.addbookmarkBtn, self.menuBtn,
self.bookmarkBtn, self.historyBtn, self.downloadsBtn]:
horLayout.addWidget(widget)
grid.addWidget(self.tabWidget, 1, 0, 1, 1)
self.grid.addWidget(self.tabWidget, 1, 0, 1, 1)

#------------------------------------------------------------------------------------------
# Must be at the end, otherwise cause segmentation fault
Expand Down Expand Up @@ -873,6 +873,7 @@ def applysettings(self):
def enableKiosk(self):
webkit.KIOSK_MODE = True
self.menu.clear()
self.grid.setContentsMargins(0,0,0,0)
self.toolBar.hide()
self.showFullScreen()

Expand Down

0 comments on commit 2d31555

Please sign in to comment.