mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
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:
parent
4a9937f041
commit
84d0979ffb
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue