From 84d0979ffb06599e2cf58947b6187ace98cc5bed Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Thu, 21 Feb 2019 02:16:13 -0500 Subject: [PATCH] Set editor theme stylesheet to QTextEdit only. This prevents any child widget from inheriting the same stylesheet, more specifically, the context menu of the full screen editor will now appear normal instead of being black text on black background, which made it unreadable. Fixes #440 --- manuskript/ui/editors/themes.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/manuskript/ui/editors/themes.py b/manuskript/ui/editors/themes.py index 7ba87156..ea7b328e 100644 --- a/manuskript/ui/editors/themes.py +++ b/manuskript/ui/editors/themes.py @@ -249,12 +249,14 @@ def setThemeEditorDatas(editor, themeDatas, pixmap, screenRect): # editor.setFont(f) editor.setStyleSheet(""" - background: transparent; - color: {foreground}; - font-family: {ff}; - font-size: {fs}; - selection-color: {sc}; - selection-background-color: {sbc}; + QTextEdit {{ + background: transparent; + color: {foreground}; + font-family: {ff}; + font-size: {fs}; + selection-color: {sc}; + selection-background-color: {sbc}; + }} """.format( foreground=themeDatas["Text/Color"], ff=f.family(),