diff --git a/cromulant/config.py b/cromulant/config.py index c056525..2aea5df 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -38,6 +38,10 @@ class Config: hit_message: str = "Took a hit" song_path: Path logo_path: Path + context_menu_background_color: str = "rgb(22, 22, 22)" + context_menu_text_color: str = "white" + context_menu_hover_background_color: str = "rgb(36, 36, 36)" + context_menu_hover_text_color: str = "white" @staticmethod def prepare() -> None: diff --git a/cromulant/game.py b/cromulant/game.py index bc76fdd..d0c1e08 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -89,11 +89,13 @@ class Game: container.setAlignment(Qt.AlignTop) title_label = QLabel(title) + title_label.setTextInteractionFlags(Qt.TextSelectableByMouse) title_label.setStyleSheet("font-weight: bold;") title_label.setWordWrap(True) Window.expand(title_label) message_label = QLabel(message) + message_label.setTextInteractionFlags(Qt.TextSelectableByMouse) message_label.setWordWrap(True) Window.expand(message_label) diff --git a/cromulant/window.py b/cromulant/window.py index e5a9d01..0153984 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -87,6 +87,16 @@ class Window: color: {Config.text_color}; font-size: {Config.font_size}px; }} + + QMenu {{ + background-color: {Config.context_menu_background_color}; + color: {Config.context_menu_text_color}; + }} + + QMenu::item:selected {{ + background-color: {Config.context_menu_hover_background_color}; + color: {Config.context_menu_hover_text_color}; + }} """.strip() Window.app.setStyleSheet(style)