From 0168d8923d2e1dd02cefa07a777731c2758d4333 Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 14 Jun 2018 16:17:06 +0200 Subject: [PATCH] [minor] tighten PyLoT tabs layouts --- PyLoT.py | 5 +++++ pylot/styles/bright.qss | 6 +++--- pylot/styles/dark.qss | 6 +++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/PyLoT.py b/PyLoT.py index 456f7671..afa17c7d 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -637,6 +637,11 @@ class MainWindow(QMainWindow): array_tab.setLayout(self.array_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 self.tabs.addTab(wf_tab, 'Waveform Plot') self.tabs.addTab(array_tab, 'Array Map') diff --git a/pylot/styles/bright.qss b/pylot/styles/bright.qss index 71e5c5a3..5f3de6a7 100644 --- a/pylot/styles/bright.qss +++ b/pylot/styles/bright.qss @@ -179,9 +179,9 @@ background-color:transparent; QTabWidget::pane{ background-color:rgba(0, 0, 0, 255); -border-style:solid; -border-color:rgba(245, 245, 245, 255); -border-width:1px; +margin: 0px, 0px, 0px, 0px; +padding: 0px; +border-width:0px; } QTabWidget::tab{ diff --git a/pylot/styles/dark.qss b/pylot/styles/dark.qss index fc866e20..0ca4cd46 100644 --- a/pylot/styles/dark.qss +++ b/pylot/styles/dark.qss @@ -178,9 +178,9 @@ background-color:transparent; QTabWidget::pane{ background-color:rgba(70, 70, 80, 255); -border-style:solid; -border-color:rgba(70, 70, 80, 255); -border-width:1px; +margin: 0px, 0px, 0px, 0px; +padding: 0px; +border-width:0px; } QTabWidget::tab{