Skip to content

Commit

Permalink
Apply white menu for plot value selector
Browse files Browse the repository at this point in the history
  • Loading branch information
zkovari committed Jul 26, 2023
1 parent 857b423 commit 2698baf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/main/python/plotlyst/view/style/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def apply_white_menu(menu: MenuWidget):
MenuWidget {{
background-color: {RELAXED_WHITE_COLOR};
}}
QFrame {{
.QFrame {{
background-color: {RELAXED_WHITE_COLOR};
padding-left: 2px;
padding-right: 2px;
Expand Down
14 changes: 2 additions & 12 deletions src/main/python/plotlyst/view/widget/scene/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
from qthandy.filter import OpacityEventFilter
from qtmenu import MenuWidget

from src.main.python.plotlyst.common import RELAXED_WHITE_COLOR
from src.main.python.plotlyst.core.domain import Novel, Scene, ScenePlotReference, PlotValue, ScenePlotValueCharge, Plot
from src.main.python.plotlyst.view.common import action, fade_out_and_gc
from src.main.python.plotlyst.view.icons import IconRegistry
from src.main.python.plotlyst.view.style.base import apply_white_menu
from src.main.python.plotlyst.view.widget.button import SecondaryActionToolButton, SecondaryActionPushButton
from src.main.python.plotlyst.view.widget.labels import PlotValueLabel, SelectionItemLabel, ScenePlotValueLabel

Expand Down Expand Up @@ -187,17 +187,7 @@ def _plotSelected(self, plot: Plot):

def _plotValueClicked(self):
menu = MenuWidget(self.label)
menu.setStyleSheet(f'''
MenuWidget {{
background-color: {RELAXED_WHITE_COLOR};
}}
QFrame {{
background-color: {RELAXED_WHITE_COLOR};
padding-left: 2px;
padding-right: 2px;
border-radius: 5px;
}}
''')
apply_white_menu(menu)
menu.addWidget(ScenePlotValueEditor(self.plotValue))
menu.exec()

Expand Down

0 comments on commit 2698baf

Please sign in to comment.