Skip to content

Commit

Permalink
Apply bg styles consistently, closes #660
Browse files Browse the repository at this point in the history
  • Loading branch information
zkovari committed Aug 17, 2023
1 parent 7b2cf36 commit 86abc9f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main/python/plotlyst/view/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion src/main/python/plotlyst/view/novel_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
16 changes: 14 additions & 2 deletions ui/novel_view.ui
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
<number>4</number>
</property>
<property name="centered" stdset="0">
<bool>true</bool>
Expand All @@ -41,6 +41,9 @@
<bool>true</bool>
</property>
<widget class="QWidget" name="tabSynopsis">
<property name="relaxed-white-bg" stdset="0">
<bool>true</bool>
</property>
<attribute name="title">
<string>Synopsis</string>
</attribute>
Expand Down Expand Up @@ -461,6 +464,9 @@
</layout>
</widget>
<widget class="QWidget" name="tabTags">
<property name="relaxed-white-bg" stdset="0">
<bool>true</bool>
</property>
<attribute name="title">
<string>Tags</string>
</attribute>
Expand Down Expand Up @@ -488,13 +494,16 @@
<property name="widgetResizable">
<bool>true</bool>
</property>
<property name="relaxed-white-bg" stdset="0">
<bool>true</bool>
</property>
<widget class="TagsEditor" name="wdgTagsContainer">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>626</width>
<height>511</height>
<height>512</height>
</rect>
</property>
<property name="sizePolicy">
Expand All @@ -503,6 +512,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="relaxed-white-bg" stdset="0">
<bool>true</bool>
</property>
</widget>
</widget>
</item>
Expand Down

0 comments on commit 86abc9f

Please sign in to comment.