[minor] tighten PyLoT tabs layouts

This commit is contained in:
Marcel Paffrath 2018-06-14 16:17:06 +02:00
parent 46a6cdcc00
commit 0168d8923d
3 changed files with 11 additions and 6 deletions

View File

@ -637,6 +637,11 @@ class MainWindow(QMainWindow):
array_tab.setLayout(self.array_layout) array_tab.setLayout(self.array_layout)
events_tab.setLayout(self.events_layout) events_tab.setLayout(self.events_layout)
# tighten up layouts inside tabs
for layout in [self.wf_layout, self.array_layout, self.events_layout]:
layout.setSpacing(0)
layout.setContentsMargins(0, 0, 0, 0)
# add tabs to main tab widget # add tabs to main tab widget
self.tabs.addTab(wf_tab, 'Waveform Plot') self.tabs.addTab(wf_tab, 'Waveform Plot')
self.tabs.addTab(array_tab, 'Array Map') self.tabs.addTab(array_tab, 'Array Map')

View File

@ -179,9 +179,9 @@ background-color:transparent;
QTabWidget::pane{ QTabWidget::pane{
background-color:rgba(0, 0, 0, 255); background-color:rgba(0, 0, 0, 255);
border-style:solid; margin: 0px, 0px, 0px, 0px;
border-color:rgba(245, 245, 245, 255); padding: 0px;
border-width:1px; border-width:0px;
} }
QTabWidget::tab{ QTabWidget::tab{

View File

@ -178,9 +178,9 @@ background-color:transparent;
QTabWidget::pane{ QTabWidget::pane{
background-color:rgba(70, 70, 80, 255); background-color:rgba(70, 70, 80, 255);
border-style:solid; margin: 0px, 0px, 0px, 0px;
border-color:rgba(70, 70, 80, 255); padding: 0px;
border-width:1px; border-width:0px;
} }
QTabWidget::tab{ QTabWidget::tab{