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
This commit is contained in:
Youness Alaoui 2019-02-21 02:16:13 -05:00 committed by Curtis Gedak
parent 4a9937f041
commit 84d0979ffb

View file

@ -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(),