From 86abc9fc0f571332be280bb0194b5918f7492781 Mon Sep 17 00:00:00 2001 From: Zsolt Kovari Date: Thu, 17 Aug 2023 12:09:33 +0200 Subject: [PATCH] Apply bg styles consistently, closes #660 --- src/main/python/plotlyst/view/main_window.py | 1 + src/main/python/plotlyst/view/novel_view.py | 2 +- ui/novel_view.ui | 16 ++++++++++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/main/python/plotlyst/view/main_window.py b/src/main/python/plotlyst/view/main_window.py index a855e961e..4e8a43ba5 100644 --- a/src/main/python/plotlyst/view/main_window.py +++ b/src/main/python/plotlyst/view/main_window.py @@ -98,6 +98,7 @@ def __init__(self, *args, **kwargs): palette.setColor(QPalette.ColorGroup.Active, QPalette.ColorRole.Text, QColor('#040406')) palette.setColor(QPalette.ColorRole.ToolTipText, QColor(PLOTLYST_MAIN_COLOR)) palette.setColor(QPalette.ColorRole.PlaceholderText, QColor('#8E9AAF')) + palette.setColor(QPalette.ColorRole.Window, QColor('#EFEFF4')) QApplication.setPalette(palette) if app_env.is_mac(): diff --git a/src/main/python/plotlyst/view/novel_view.py b/src/main/python/plotlyst/view/novel_view.py index 70463d4a1..9f4a2070d 100644 --- a/src/main/python/plotlyst/view/novel_view.py +++ b/src/main/python/plotlyst/view/novel_view.py @@ -127,7 +127,7 @@ def __init__(self, novel: Novel): self.ui.wdgPlotContainer.layout().addWidget(self.plot_editor) self.ui.wdgTagsContainer.setNovel(self.novel) - self.ui.tabWidget.setCurrentWidget(self.ui.tabEvents) + self.ui.tabWidget.setCurrentWidget(self.ui.tabSynopsis) @overrides def refresh(self): diff --git a/ui/novel_view.ui b/ui/novel_view.ui index e0421e576..1f17709c7 100644 --- a/ui/novel_view.ui +++ b/ui/novel_view.ui @@ -32,7 +32,7 @@ - 0 + 4 true @@ -41,6 +41,9 @@ true + + true + Synopsis @@ -461,6 +464,9 @@ + + true + Tags @@ -488,13 +494,16 @@ true + + true + 0 0 626 - 511 + 512 @@ -503,6 +512,9 @@ 0 + + true +