Skip to content

Commit

Permalink
Apply theme to glossary page
Browse files Browse the repository at this point in the history
  • Loading branch information
zkovari committed Oct 3, 2024
1 parent c061d93 commit ef550c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/python/plotlyst/view/widget/world/glossary.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def __init__(self, novel: Novel, parent=None):
self._novel = novel
vbox(self)
self.editor = GlossaryItemsEditorWidget()
self.editor.setStyleSheet('background: #ede0d4;')
self.editor.btnAdd.clicked.connect(self._addNew)
self.editor.editRequested.connect(self._edit)
self.glossaryModel = GlossaryModel(self._novel)
Expand Down
3 changes: 2 additions & 1 deletion src/main/python/plotlyst/view/world_building_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from PyQt6.QtSvg import QSvgRenderer
from PyQt6.QtWidgets import QWidget, QGraphicsColorizeEffect
from overrides import overrides
from qthandy import bold, incr_icon, incr_font
from qthandy import incr_icon, incr_font
from qthandy.filter import OpacityEventFilter

from plotlyst.common import PLOTLYST_SECONDARY_COLOR, RELAXED_WHITE_COLOR
Expand Down Expand Up @@ -179,6 +179,7 @@ def __init__(self, novel: Novel):
self.ui.pageMap.layout().addWidget(self.map)

self.glossaryEditor = WorldBuildingGlossaryEditor(self.novel)
self.ui.wdgGlossaryParent.setStyleSheet('QWidget {background: #ede0d4;}')
self.ui.wdgGlossaryParent.layout().addWidget(self.glossaryEditor)

link_buttons_to_pages(self.ui.stackedWidget, [(self.ui.btnMilieuView, self.ui.pageMilieu),
Expand Down

0 comments on commit ef550c9

Please sign in to comment.